Provide just enough food for animals at just the right time, automatically
Here is (the beginnings of) a description of my attempts at automating the feeding of donkeys in the morning without going out into the barn before they bray annoyingly.
At first I thought of the design as like dropping balloons from the ceiling or red liquid at a Carrie” movie remake.
This video shows an Arduino controlling the door to chicken coop that, rather than using a simple timer to open and close the chicken coop doors, a computer considers sunrise and sunset times.
We’ve thought of several options. I’m looking for the lowest cost, least hassle, and most reliable. The less moving parts the better. Movements would occur on a timed schedule:
- A feed bag filled and then raised and lowered by a hoist
- A box that is lowered to the ground by one motor
- A box that dumps food on the ground from the ceiling. One motor raises and lowers the box. Another opens the trap door containing food.
How much feed?
Two donkeys get half a “flake” each at 5am and 5pm. A half flake is 4 inches thick x 20 inch square, weighing 4 to 5 pounds.
We can’t leave a lot of food laying around because they eat everything they can reach.
Thus, I need a way to hold their hay for release automatically at a set time.
Bag of feed
The one with the least moving parts seems to be a netting bag used to slow down how quickly horses and other equine eat.
It is lowered and raised by an electric hoist. The 125 Watt motor shown below can lift up to 110 pounds 40ft with a single line. A double-line configuration can lift 220 lbs 20ft. But it can be kinda slow, at 16.4 ft./minute.
The project is to add to the manually controlled toggle switch on the yellow box with an actuator controlled by a Pi or Arduino that runs on a timer.
A later phase would add consideration of Sunrise/Sunset times for a specified Latitude.
The Pi case would need to have some dust filter and a fan powerful enough.
Small Push-Pull Solenoid - 12VDC $7.95
https://www.adafruit.com/product/2776 https://www.sparkfun.com/products/11015 Mini Push-Pull Solenoid - 5V https://www.alibaba.com/product-detail/0626L-pull-push-type-solenoids_60076297489.html?spm=a2700.7724838.2017115.29.4a7c4d4f8DIlrS https://www.robotshop.com/en/5v-solenoid.html iot-solonoid-mini.jpg has a series resistance of 5.1Ω and inductance of 2359.25µF. Although rated at 5V, sending 9v pulse to the solenoid to give it some extra kick. 18v for about 25ms It has a white JST connector. https://www.youtube.com/watch?time_continue=15&v=W9j6ZRsOUrI 13V https://www.youtube.com/watch?v=vdDJG125rTE
The platform with an open box (feed tray) would be lowered by something like a garage door opener.
The advantage of this approach is that food is not on the ground, which causes some waste and is less hygienic (if that matters).
The video in this blog describes tweeks to a garage door opener.
This post talks about a trap door held by a pin attached to a solenoid. A quick pulse releases it. A transistor or MOSFET to drive the release to protect the Arduino from excess current or spikes.
This project is similar to a hanging table held up by pulleys.
The parts listed below are used to construct a platform with a box to hold hay (material). The box is raised by four ropes (one on each corner). There is a panel on 3 sides to hold material in. For loading, the platform is lowered. Due to the weight, the box is raised and lowered by a garage door opener. There is a door on the front side that opens to let the material slide out. So material can slide out of the platform, the front box edge is tilted down and up by a separate stepper motor controlled by an Arduino or Pi computer that controls the angle depending on the time of day (minutes before/after sun up).
Parts and cuts
[__] $30 from Home Depot one finished sheet of 3/4 inch pine plywood - 4x8 foot or 48 x 96 inches used for framing.
At 2.5 pounds per square foot, the whole sheet weights about 84 lbs.
[__] Have the yard make 4 cuts. Cut it in half along the long edge for a 48x48 inch square shelf, then cut the four 12x48 slats for the walls and door.
QUESTION: Does this provide enough volume to hold enough feed? We would need enough space to hold enough for a single meal for two donkeys. Maybe 3.
Make a 45 degree edge on each of the 3 side boards.
[__] $0.58 from Home Depot 14 galvanized steel L brackets. Attach 3 each of 3 to attach the 3 sides to the base.
[__] 192 wood screws (4 each for 14 brackets), 1/2 inch long with tapered head.
[__] 4 corner metal braces (drilling holes in baseboard would weaken it?)
[__] 4 eye rings on the top of the sides for ropes to attach to the box.
[__] Hinges on the edge for the front door.
[__] gear motor actuator to lock and release latch.
[__] Install the door release with a cable to the Arduino.
A hoist for a bicycle of about 100 lbs. is $20 from Amazon. Two sets should support 200 lbs, right? But that may not be enough for the platform.
[__] 4 sets of block and tackle pulleys for 1/2 inch diameter size rope. $21 each from Amazon.
The four wheels provides 7:1 lifting ratio power for 2 tons of working load capacity.
[__] Bolts on the ceiling to hold the pulleys should be braced to support that.
Additional bracing may be needed for your ceiling.
Check with a construction specialist.
[__] 4 ropes to lower the platform almost to the ground. Although the height is about 10 feet each, about 4 times that is needed to go through the pulleys. So we get a standard size rope of 100 feet (30.48 meters).
The 1/2 inch climber ropes are about $30 used, $40 new on Ebay
- Measure the weight of the platform with ropes at maximum load. The estimate is 100 pounds max.
How to move the rope electronically?
[__] TODO: Stepper motors sized to handle the weight.
[__] Sensors to detect slippage.
[__] Arduino board to signal the stepper motor.
[__] Power supply
How it works (I think)
The shelf is raised and lowered by four ropes, one on each corner.
During the dumping (feed) operation, only one side is fully lowered so whatever is on it slides off.
The release if a vertical door is needed to hold enough stuff without spilling over.
We use two sets of pulleys, one for each side. Pulleys enable a smaller motor to be used.
Safety wire cables keep the shelf from crashing to the floor ?
Like a garage door, lasers sense whether there is something in the way before the platform is lowered.
Two stepper motor controls each of 2 sides of the platform. Both would operate to raise or lower. Only one would operate to dump contents.
A bell sounds before the food is dumped so the donkeys know to avoid the dump. Right.
Sensors identify if conditions are safe - the position of the various parts (motor) and whether each is still working.
There would be logic on the Ardunio board that to not do something if sensors indicate.
In “productive mode”, when it’s time (5 minutes before dawn each day), the shelf is emptied automatically by lowering one side and releasing a latch.
There should be a manual alternative to lower the shelf and open the door. That’s in case of loss of electricity or when the computer part doesn’t work.
In “test mode”, we would press a button to raise it; another button to lower it; and a third button to dump the food. This could be a multi-purpose button where one tap raises, two taps lowers it, and a long press to dump from above.
- Blue wire DC-
Servo vs. Stepper Motors
The Arduino website explains Servos have integrated gears and a shaft that can be precisely controlled. Standard servos allow the shaft to be positioned at various angles, usually between 0 and 180 degrees. Continuous rotation servos allow the rotation of the shaft to be set to various speeds. The Servo library supports up to 12 motors on most Arduino boards and 48 on the Arduino Mega. On boards other than the Mega, use of the library disables analogWrite() (PWM) functionality on pins 9 and 10, whether or not there is a Servo on those pins. On the Mega, up to 12 servos can be used without interfering with PWM functionality; use of 12 to 23 motors will disable PWM on pins 11 and 12.
This video explains: A stepper motor is used in applications requiring about 2000 rpm or less where you need a lot of torque at the low end, where as a servo motor is typically used for your higher speed applications that are more dynamic and require more acceleration and deceleration typically 2000 rpm and higher.
A servo is always built with a feedback mechanism.
YouTube video: Practical Insight in selecting stepper motors for your build describes the difference between NEMA (National Electrical Manufactures Association) stepper motor numbers:
NEMA 17 is 1.7”
holds 53 ounces of weight
NEMA 23 is 2.3” takes a #10 machine screw
holds 425 ounces (26.5 pounds)
NEMA 34 is 3.4” takes a 1/4” screw
holds 1232 ounces (77 pounds)
More on IoT
This is one of a series on IoT:
IoT Acronymns and Abbreviations on Quizlet
- IoT Apprentice school curriculum
- IoT use cases
- IoT reminders prevent dead mobile battery
- IoT text to speech synthesis
- IoT AWS button
- Intel IoT
- IoT Raspberry hardware
- IoT Clouds
- Samsung IoT Cloud
NOTE: Pages about GE’s Predix have been removed.