Live data from Hacker News

DIY ESP32 based chicken coop door. Control based on time, light or via app

github.com

21–30 of 62 posts

Re: DIY ESP32 based chicken coop door. Control based on time, light or via app

#21
post #5

I have a door from Run-Chicken, mechanically it's still good but the electronics went out in it. I'd love to have something like this running it, going to give it a shot.

If you can rip out the old motor and tie a string to the door (drill a hole in the piece that moves?), you can get a standalone motor from chicken guard. (You’d want the pro model or cheaper; their new all-in-one would have you replace the old door)

Re: DIY ESP32 based chicken coop door. Control based on time, light or via app

#22
post #8
post #6

Earlier quoted context omitted.

As for neighbors, just don't get a rooster. Hens do make some noise but they're not bad at all. As for foxes, you can use a mobile coop+run. Move it once per day to provide fresh grass and distribute the fertilizer byproduct.

Yeah, if I did it I'd want the area to be fenced in because one of my neighbors is nosy. It's a 1/4 acre plot, so not exactly a huge amount of land. I know that my neighbors down the street have chickens because I occasionally hear them, but their yard is completely fenced in. I only know them well enough for casual greetings when we see them in passing, and there's a language barrier preventing more in depth convers…

Do you think there is a reason they are getting away with ignoring the rules? Maybe you could too - just ask the neighbours first?

Re: DIY ESP32 based chicken coop door. Control based on time, light or via app

#23
post #18

A project I've always toyed with in my head is a fancier version that would count / verify the checks have all entered the coop at closing time and warn you if not. With my parents coop occasionally a chicken will decide to brave the night outside, often to disastrous consequences. Figuring out how to build a low-energy version is challenging, but necessary since the whole system runs off small solar panels and a 12v…

I haven't played with rfid tags or bluetooth beacons myself but I could imagine a solution build around one of the two technologies. I think it should consist of an entry tunnel with two sensors, one at each end. The tunnel and the two sensors could be used to determine the direction the chicken goes. It the chick first triggers the inner and then the outer sensor it is checked out and when it goes the other way its checked in.

Re: DIY ESP32 based chicken coop door. Control based on time, light or via app

#24
post #13

Earlier quoted context omitted.

I looked up the ordinance, and I was wrong about a few things. Livestock or poultry may be kept provided that there are no more than 4. So I was wrong about the limit -- it's less than five and not five or less. Also: * I need to have a 1 acre parcel, and I have only a bit over 0.25 * It needs to be 25 feet from all property boundaries and fenced in, which limits placement options So my options, for this plot, are ni…

I have 12 on a 1/2 acre plot, about 2/3rds of which is backyard they can access (so call it 1/3 acre of roaming). That amount seems more than ample, though these are pretty bougie chickens. Four in even 1/8 acre should be fine.

The minimum square footage per “cage free” chicken is only 1.5 sq ft, (in California, which passed a ballot initiative to increase it to that number)

https://ballotpedia.org/California_Proposition_12,_Farm_Anim...

So, 1/8 acre could hold 3,630 “cage free” chickens, in theory (I am not condoning this).

In you don’t need much space to keep chickens happy. However, they produce a lot of dust, and can’t be kept in a house.

Re: DIY ESP32 based chicken coop door. Control based on time, light or via app

#25
I did this in the Raspberry Pi 1 era.

* Pi for timing/wifi/status/webserver.

* Opened at 8am, closed at civil twilight. Or whenever I hit the button on the webserver, or the switch board.

* Limit switches.

* Mechanical swing lock for raccoon protection

* Electric drill + rope for the vertical sliding door

* Relay for direction, power mosfet for the drive controller.

* Intermediate board between the 3.3v controller and the 12V power board.

* Lead acid battery + charger for the power.

The door was pretty hefty, and was _solid_. 1/2 or 3/4 ply IIRC. The drill wound up being a mistake, because the power was too high, managed to fry some relays before I got everything worked out. The limit switches were generally pretty good, but they were also pretty well protected by the door design.

The best bug was that the wifi worked really well during the day, but not at night. Turns out that the LOS between the wifi dongle and the AP went through the roost, and chickens absorb enough wifi signal to drop it off the net. So one 3m usb cable later, and the dongle was on the other side of the roost. Solid networking from then on.

Sadly I left it in the coop when moving out.

Re: DIY ESP32 based chicken coop door. Control based on time, light or via app

#27
post #19

A design with limit switches instead of counting turns seems like it would be much more reliable. e.g. https://www.floweringelbow.org/automated-door-from-an-old-wi... That way the software can be nearly stateless: 1. Check time and determine desired state (open or closed) 2. Compare desired state against limit switches and run motor until the limit switch is hit (or it times out which is an error) On the other hand,…

Chickens are incredibly dirty animals. The limit switches would probably be fouled (fowled?) pretty quickly. Commercial versions of this can measure motor load (via current), but still require manual calibration. I wonder if they thought they could get away with manual calibration, but couldn’t make it reliable. I think these people are the market leaders: https://www.chickenguard.com/ Note that the commercial versio…

Yeah, it would be interesting to get an update on FloweringElbow's implementation to see how often the lower limit switch is getting fowled :p .

I think it's also possible to design it such that both upper and lower limit switches are placed higher up on the edge of the door, rather than strictly at the top and bottom, which should help with the fouling.

Practically though, any automated system will be vulnerable to fouling/blockage and require regular maintenance to keep the mechanism clear and clean enough to avoid premature corrosion (chicken poop being pretty acidic). In my opinion, it's a pipe dream to have a fully automated coop in a backyard setting and not eventually/occasionally have failures that require manual intervention or lead to neglect and losses due to predation. Better to think of such systems as tools to relax the timing requirements for manual care. Instead of doing all the work at the right times, one can confirm that the animals are out/fed/watered/in/etc as part of doing the normal morning/evening rounds/chores.

Re: DIY ESP32 based chicken coop door. Control based on time, light or via app

#28
One problem I see with this is not stranding chickens outside if they didn't return fast enough; I guess you could count by breaking a light beam, or stepping on a plate.

Second would be adding a good lock to the door -- raccoons are very crafty, and love stealing eggs

Re: DIY ESP32 based chicken coop door. Control based on time, light or via app

#29

I did this in the Raspberry Pi 1 era. * Pi for timing/wifi/status/webserver. * Opened at 8am, closed at civil twilight. Or whenever I hit the button on the webserver, or the switch board. * Limit switches. * Mechanical swing lock for raccoon protection * Electric drill + rope for the vertical sliding door * Relay for direction, power mosfet for the drive controller. * Intermediate board between the 3.3v controller an…

> Turns out that the LOS between the wifi dongle and the AP went through the roost, and chickens absorb enough wifi signal to drop it off the net.

That sounds like a chicken motion detection system to me.

Post reply on HN