Smart Chicken Feeder

by CodersCafeTech in Circuits > Arduino

211 Views, 3 Favorites, 0 Comments

Smart Chicken Feeder

IMG_1049.JPG

This project is a game-changer for both backyard chicken enthusiasts and professional poultry farmers. Leveraging cutting-edge cellular IoT technology, this innovative system revolutionizes chicken care, allowing you to feed and monitor your flock from anywhere in the world.

Imagine effortlessly managing your chickens remotely with just a few clicks on a sleek, user-friendly web dashboard. The Smart Chicken Feeder utilizes the robust Particle IoT platform, simplifying the process of building, deploying, and managing connected products. Thanks to Particle's reliable connectivity solutions and powerful cloud services, your Smart Chicken Feeder is always online and accessible.

One of the feeder's standout features is its dual-feed mechanism. This clever design lets you switch between different types of feed, ensuring your chickens receive a balanced diet with minimal effort. Additionally, the feeder is equipped with advanced temperature and humidity sensors, providing intelligent climate control to keep your chickens comfortable and well-cared for at all times.

The Smart Chicken Feeder with Intelligent Temperature Control is not just a product; it's a revolution in poultry management, offering convenience, reliability, and peace of mind. Whether you're near or far, your chickens are just a click away from receiving the best care possible.

Supplies

Micro Controller - Particle B524 SoM

IMG_0903.JPG
IMG_0912.JPG

The B-SoM powers this project. The B-SoM is our flagship IoT module for cellular-connected products. It runs on the Particle IoT Platform-as-a-Service — included for free for your first 100 devices — and includes a free global embedded SIM card and data plan. Optimized for mass production and scale, the B-SoM is designed to be integrated directly into your circuit board design, plugging an M.2 NGFF connector on your board, allowing the module to be changed or upgraded easily.

To use this module we should need to use the B-Series Eval board a simple breakout board for Particle's B series of cellular IoT modules, to utilize module.

Configuring B524 With Particle

IMG_0921.JPG
IMG_0928.JPG
Setup.png
Console.png

Setting up the evaluation board is straightforward: plug the cellular antenna into the U.FL connector labeled CELL on the SoM, plug the module into the evaluation board, turn on the SoM power switch, and connect the evaluation board to the computer via the micro USB cable.

Head over to setup.particle.io and create an account if you don't have one. This will allow you to configure your device and connect it to the Particle cloud.

When you follow the process correctly, you can see your device online in the Particle cloud.

Installing Particle Work Bench

Workbench.png

We can code the Particle board in two ways: either through the Particle Web IDE or through the Particle Workbench. For the sake of simplicity, we are using the Particle Workbench. To install the Workbench, you need Visual Studio Code. It's very easy—just have a look at this. Then we created a new project named "Smart Coop".

Sensors and Actuators

IMG_0942.JPG
IMG_0944.JPG
IMG_0946.JPG

To measure the temp and humidity we used a DHT11 sensor. The DHT11 sensor measures temperature and humidity, making it ideal for environmental monitoring. It has a temperature range of 0-50°C with an accuracy of ±2°C, and a humidity range of 20-90% RH with an accuracy of ±5% RH. The sensor operates on a power supply of 3.5-5.5V DC and communicates via a single-wire digital interface. It provides readings at a rate of one per second, ensuring timely data for controlling the environment.

The Relay module is used to control the power supply to the tungsten bulb based on temperature readings. It operates on a 5V trigger voltage and can switch higher voltages up to 250V AC or 30V DC, with a current handling capacity of up to 10A. The module has three main connections: VCC, GND, and an input signal from the microcontroller. When the temperature drops below a set threshold, the microcontroller sends a signal to the relay to close the circuit, turning on the bulb to provide heat. Once the desired temperature is reached, the microcontroller signals the relay to open the circuit, turning off the bulb.

The SG90 continuous rotation servo is used to dispense food at regular intervals. It operates on a voltage range of 4.8-6V, with a speed of approximately 110 RPM at 6V and a torque of 1.2 kg-cm at 4.8V. The servo is controlled by a Pulse Width Modulation (PWM) signal, where the pulse duration determines the speed and direction of rotation. It has three connection wires: VCC for power, GND for ground, and a signal wire for receiving control pulses from the microcontroller. By adjusting the PWM signal, the microcontroller can control the continuous rotation of the servo to dispense food as needed.

Testing

IMG_0970.JPG
Schematic_Smart-Coop_2024-06-19.png
Website.png

Before proceeding further, we finalized the code by connecting the components with jumper wires as per this schematics

In testing we only connected one servo due to over-current draw, in the future we will also add another servo.

We are actually using 2 libraries for measurement from the DHT11 sensor, they are Adafruit_SensorDHT, and ntp-time library for keeping time synced with the internet clock.

The project website is developed using HTML, JavaScript, and CSS, providing a user-friendly interface to monitor and control the smart coop.

Case

f360.png
Archimedes screw.png
IMG_0958.JPG

We used Fusion 360 to design custom cases for the electronic and feeding units, ensuring they fit perfectly within the cage. An Archimedes screw mechanism, connected to the servo motor, is used to dispense the food efficiently. A dual-feeder setup is employed to increase food availability and minimize the risk of food shortages.


Preparing Feeder Unit

IMG_0973.JPG
IMG_0979.JPG
IMG_0983.JPG

First, we attached the servo motor to the feeder unit, ensuring it is securely in place to handle the rotation needed for the Archimedes screw mechanism.

Then we connected the Archimedes screw to both the servo motors.

Electronics

IMG_0984.JPG
IMG_0992.JPG
IMG_0996.JPG
IMG_1001.JPG
IMG_1004.JPG
IMG_1012.JPG
IMG_1019.JPG

To power the evaluation board, we used a High-Link power supply, which provides 1 amp of current at 5V. This ensures a stable power supply for all electronic components.

This High-Link power supply is attached to the green dotted PCB with a screw terminal block, providing a secure and reliable connection.

Next, we placed the electronic components one by one and connected them according to the schematics. This includes the DHT11 sensor, relay, and other necessary components to ensure seamless operation.

After finishing the assembly, you will have four wires remaining: two for the AC power supply and two for the heating bulb. The AC wires will be connected to a three-pin plug, providing the necessary power to the entire system.


Attaching the System to Cage

IMG_1030.JPG
IMG_1035.JPG

With all components assembled and connected, we can attach everything to our coop to make it smart.