Marc's Public Blog - Arduino Hacking


All | Aquariums | Arduino | Btrfs | Cars | Cats | Clubbing | Computers | Diving | Electronics | Exercising | Festivals | Flying | Halloween | Hbot | Hiking | Linux | Linuxha | Monuments | Museums | Outings | Public | Rc | Sciencemuseums | Solar | Tfsf | Trips



>>> Back to post index <<<

2023/04/07 Managing a chicken coop door and checking water level with RC Plane Servo and ESP8266
π 2023-04-07 01:01 in Arduino, Electronics
I have these adorable silkie chickens, but have better things to do than to let them out every morning and close the coop at night after they get back in, so that was the first thing I had to fix. I had enough random hardware at home to open the door with a high torque RC servo:


once I got the servo validated, I connected it to an ESP8266 as a wifi controller
once I got the servo validated, I connected it to an ESP8266 as a wifi controller

Here is the basic end result:

The one downside of the ESP8266 is at least the one I have with the firmware I'm using, does not have super reliable Wifi connectivity, so my server keeps track of it being there or not, and can remotely power cycle it as needed. Not ideal, but it works...

There are predators (hawks at least), so I had to add a full net around the area:



cute chickens
cute chickens

This is the door in action after I added a switch to control it locally and wrote code on my home controller to talk it is via wifi:

The last thing I wanted to add was a water level monitor, especially because I had issues with the dispenser leaking, and ending up without water, is bad obviously. My first plan was a predictable total failure;

looks wonderful, but it's not meant to stay in the water and the board, failed
looks wonderful, but it's not meant to stay in the water and the board, failed

2nd try with pins
2nd try with pins

oh look, lots of metal ended up in the water, of course!
oh look, lots of metal ended up in the water, of course!

So yeah, all those classes in middle school about electrolysis are not just to bore you, it is a real thing, and sending current to sense the water through conductors causes ions to move and metal too:


So, I tried again with new conductors and changed my code not to check for water constantly but only 20 seconds every hour. That's thankfully enough that it mostly stopped the issue I had:


And obligatory cute chickens and chicks videos:


More pages: June 2024 August 2023 June 2023 May 2023 April 2023 March 2022 January 2022 January 2021 December 2020 March 2020 January 2020 May 2019 April 2019 March 2019 January 2019 July 2018 May 2018 April 2018 January 2018 June 2017 April 2017 January 2017 February 2016 January 2015 September 2013 January 2012 December 2011 May 2011 January 2011

>>> Back to post index <<<

Contact Email