DIY Smartphone Controlled Chicken Feeder

by CrazyScience in Circuits > Wireless

5272 Views, 52 Favorites, 0 Comments

DIY Smartphone Controlled Chicken Feeder

Automatic feeder.JPG
a1.png
chicken feeder.JPG

Hi readers, In this Instructables i will show you how I made this Smartphone Controlled Chicken Feeder, This is a very interesting project as we are applying hobby electronics to some real-world applications.

If you own a pet say it is a cat or a dog you might know those pets need food every now and then! It's the same with almost every animal.

I domesticate 2 chickens and due to my busy schedule, I was feeling difficult to manage my time to feed them again and again, even though they get plenty to eat on the farm they need to be fed with something extra too right?

So I made this smartphone-controlled feeder that dispenses the food whenever you slide a button on your phone.

This device can also be used to dispense food to cats, dogs, and other pets if you make minor modifications in the feeder slot area.

In my case since I will be filling the feeder with rice it works pretty fine, if you are adding larger-sized treats for your pets you might need to increase the size of the feeder area tap.

With this being said let us head over to build part of this project, you can also watch the video given at the end of this instructable.

Supplies

a2.png
a3.png
a19.png
a15.png

NodeMCU

You may think why I used this board.

Its because it is a low-cost microcontroller based on the ESP8266 Wi-Fi module, which allows for easy integration with smartphone applications.

Micro Servo Motor

This is used for precise rotational control that dispenses measured amounts of chicken feed.

Smartphone

The phone controls the feed as per the command given to the pet feeder.

Container

Top container(plastic bottle) stores the feed whereas the Bottom or base container(used date box) shows the chicken feed.

Power Supply

I will be using my 4000mah power bank as a power source for the NodeMCU and servo motor, this ensures using this device for long hours.

Hot glue

To couple things up

Circuit Diagram

circuit diagram.jpg
a4.png
a5.png
a6.png
a7.png
a8.png
a9.png

The circuit is very simple for this project.

We are using the Nodemcu board and the micro servo is directly connected to this board.

There are 3 pins on a micro servo, Positive, negative, and Signal.

Positive is connected to the 3v pin of Nodemcu, negative to Gnd, and signal to the D1 pin of MCU.

I will be using jumper wires to make the connections, with these simple steps our circuit will be completed.

Arduino Code

a10.png
arduino code.jpg
a11.png
a12.png
a13.png
Promo.png
pcb.png
coupons.png
blind boxes.png

After the circuit connection, connect the board to Arduino IDE via a USB cable.

If you did not use Nodemcu before make sure to select the type of board by going to tools-board and Nodemcu.

Install the libraries ESP8266 and servo.

Enter your wifi credentials, I used wifi(portable hotspot) from my mobile.

Select the type of port and click on upload.

After the code is uploaded to the board switch on the mobile hotspot, with the USB cable still connected to Nodemcu it will automatically connect to the mobile hotspot.

Go for connected devices on your phone and note down the IP address of the Nodemcu board.

Paste the same IP address on the browser and you will see a slider, Adjust this slider to move the servo.

Want to make your projects more interesting by using PCBs, But don't know where to buy?

I would recommend getting it from PCBWAY

Why them? They have provided me with the best PCB and The quality is just amazing compared to other providers in the market

Its definitely the right time to use their service as they are raining offers due to 9th-anniversary check offers here https://www.pcbway.com/activity/anniversary9sales.html

Free coupons, Anniversary sales, and blind boxes are live, Checkout the free coupons they are offering upto 200$

Don't miss to check their blind boxes, with this game you can try your luck by participating in their lucky draw.

How to play? Just click here and open any of the boxes! also, earn coupons by sharing the links with your friends, refer the last visual of this step for the same

Do you remember my last 3D-printed project? I got the prints from here https://www.pcbway.com/rapid-prototyping/

Building the Body

a14.png
a16.png
a17.png
a18.png
a20.png
a22.png
a23.png
a26.png
a25.png
a27.png

I cut the slots in the base container that holds most of the things, the 2 slots were made on the lid part so other things can be added later.

To make the servo holder where the feed tap happens, feed tap means opening and closing of the servo mechanism to supply and stop the feed.

I made a hole taking the size of the plastic bottle(where the feed will be stored).

The size of the cap is marked and later cut, now the inside of the cap is also cut.

In the end fix the cap whose base was removed on the servo holder, seal the edges with hot glue.

Building Feed Tap Mechanism

a28.png
a29.png
a30.png
1.png
3.png
2.png
4.png

Micro servo is the part that controls the feed rate when the slider on the smartphone is moved.

The horns of the servo should be attached properly to avoid any spillage of the feed, so I added a screw to the horn that keeps the horn intact with the shaft of the servo.

Later from the leftover piece of servo holder, I made the feed blocker, just glue this to the servo horn and add hot glue to make it firm.

Add this to the inside of the servo holder, I wanted to elevate the servo to keep it leveled, so I made use of a small disc and to the top of it, I added a micro servo.

Make sure to check for the servo positions before gluing.

Assembly

5.png
6.png
7.png
8.png
9.png
10.png
11.png
12.png
13.png
15.png

Now we can move to assemble all the spare components together.

Start by gluing the servo holder to the base of the bottom box, you can use hot glue for this purpose.

Now to avoid spilling internally I added a piece of cardboard that also in return slides the feed to the corner of the bottom box so that chickens can easily feed over them as it becomes more visible.

I glued the piece using hot glue and behind this part, I have placed the power bank and the Nodemcu board.

The box I used had a simple clip mechanism that will allow me to open and close the lid whenever I need.

In this way, I can plug and unplug the power supply from the power bank whenever necessary.

How to Use

16.png
17.png
18.png
19.png
20.png
21.png
22.png
23.png

Using this chicken feeder is very simple.

Before topping up with the feed connect the power supply from the power bank to the Nodemcu board

If your mobile hotspot is on the Nodemcu board will automatically connect with your phone.

Open the IP address in the browser

Move the servo slider gently, now the feed tap will open, now you can load the feeder with food.

In my case, I filled it with rice.

Attach the feeder, and keep your device where your chickens live the most.

I have only 2 chickens so one full bottle is enough for a couple of days.

This was all about making your own chicken feeder, if you have any questions ask me in the comments. Thank you.

Video of Smartphone Controlled Chicken Feeder

How to make Smartphone Controlled Chicken Feeder

You must definitely check this video that shows how happy my chickens were with their new food-feeding device!

You also can watch the same video with this link if your browser doesn't load videos directly https://youtu.be/pzYsQFiOU3g

Have a great day and thanks for reading.