FishFood Dispenser

by Laura Wittevrongel in Circuits > Raspberry Pi

419 Views, 1 Favorites, 0 Comments

FishFood Dispenser

201968746_215240283755300_5018120343420295088_n.jpg

Hey!

I made an automatic FishFood Dispenser for a schoolproject at Howest MCT Kortrijk. The FishFood Dispenser is an automatic waterproof feeder for pond fishes. Set the time you want to feed your fish and the dispenser will feed your fish at that time you set. All this can also be done on a webinterface. Push the button and feed your fish!

This instructable shows you step by step how you make this project yourself.

Get All the Components

You need a lot of components/equipment to start this project. All the components and materials are listed in the following file.

Make the Circuit

Fritzing_FishFood_Dispenser_model_schema.png
Fritzing_FishFood_Dispenser_breadboard.png

Solder

200738377_4057102924381011_5389694833171337529_n.jpg

Solder the following components:

- Speaker + amplifier: make sure the cables between the speaker and the amplifier are long enough. Because the speaker is out of the internal plastic box and inside the housing. The rest (amplifier and audio jack 1.5mm) are inside the internal plastic box.

- Leds: don't forget the resistor and the cable needs to reach the T-cobler of the Raspberry Pi.

- Buttons: same like the leds.

- LDRs: make sure the cables are long enough because 1 is located at the very top of the container and 1 at the bottom of the container.

- DS18B20: don't forget the resistor.

Setup the Raspberry Pi

Download the following software:

- Win32DiskManager: https://win32diskimager.download/

- OS for the Raspberry Pi (desktop and recommended software): https://www.raspberrypi.org/software/operating-sys...

1. Put the micro SD (MINIMUM 8 GB) card into the adapter and put it into your computer.

2. Format the SD card

3. Write the OS on the SD card:

- Extract the raspbian zip file

- Open Win32DiskManager

- Browse for the raspbian img fil

- Click on Write (this will take some time)

4. Now you can SAFELY eject the SD card frm your computer and put it into your Raspberry Pi before connecton the pi to the power.

5. Enable the necessary interfaces with sudo raspi-config:

- SPI

- I2C

- One-wire

6. Add wifi connection:

wpa_passphrase "ssid" "password" >> /etc/wpa_supplicant/wpa_supplicant.conf

Replace ssid to your wifiname and replace the password

Get the Code and Install Packages

You can download the code on this link: https://github.com/WittevrongelLaura/FishFoodDispenser

To get this code running, you need to install a couple of packages.

- pip3 install mysql-connector-pythonpip3

- install flask-socketiopip3

- install flask-corspip3

- install geventpip3

- install gevent-websocket

Reboot after you installed everything: sudo reboot.

Create the Database

EER.png
connectiondb.png

The first thing you need to do is making a new connection over SSH.

Then you need to import the database into your connection.

In the repository, there is a directory called 'database-export'.

There is an .sql file in there. Go execute this file into MySql.
I used Mariadb als DBMS.

The Housing

front.png
back.png
left.png
right.png
up.png
inside.png
plasticbox.png
198851726_584766719153052_1569909065901770612_n.jpg
200273267_156701563168759_6316923123720333666_n.jpg
200860884_123479433159160_293960533438259572_n.jpg
201152450_145928860828108_4698592096970239254_n.jpg

I made the housing in wood (MDF) and I used an extra plastic box inside to protect my circuit from rain/water.

These images shows the drawing of the housing:

The 'container' is a transparant (!) plastic can.
The 'case' is a box made out of wood.

The End

200451499_339737680859697_2921110885965009568_n.jpg
199948734_502622167454942_897897186538733051_n.jpg
200373102_1013273869413377_6771906576174038609_n.jpg
197473956_805675736755079_7326920353909383109_n.jpg
201134519_2920680718207619_8877714447352389780_n.jpg
196852946_2841872929459150_6078788167035498440_n.jpg

This is how I made the housing.

The first pictures are how it's made on the inside.

I it rubbed it in with black silicone.
You can put artificial grass or little stones on the housing to get it perfectily finished.