chrischrischris
- Joined Feb 18, 2012
- 317
Hi Jbrienza.
I agree with Phil-S. An easier method may be worth considering. I've been looking at doing a similar project, except my concept uses a couple of AA batteries, a small solar panel to trick charge and a couple of small servo motors.
I intend on using a DS3231 real time clock module to act as the timer. It only costs around AU$2. You can use a couple of libraries that have already been written to load the current time and set the daylight savings time where you live. Then via code, you can tell the door to lock and unlock at the relevant time of day each week (pending dusk/dawn times you find on the net).
Alternatively, you can use an LDR that you can find on eBay for around 10 cents each. Again via code, this can be easily triggered to "open" the door when it gets light and close the door when it starts getting dark. In your code, you could put a ckeck in place to ensure that on a day when a thunderstorm is about to happen and it gets darker, the door waits for a minimum time (say 6pm) before it will close - otherwise poor Colette will get locked out of her house before she wonders home.
How I'd like to set my coup up is that maybe the door swings open via a chicken standing on a platform inside the coup. I can see the platform on say about a 5 degree angle, with one edge touching the ground and the other up say 50mm. Stepping on it pulls a wire that pulls the door open. A similar platform is on the outside as well.
To stop one platform or the other operating, a small cheap servo motor locks one or the other platform from dropping on its hinge. Another motor locks or unlocks the door to stop the nasty foxes getting in. As the meerkat add says... "Simplesssss".
I agree with Phil-S. An easier method may be worth considering. I've been looking at doing a similar project, except my concept uses a couple of AA batteries, a small solar panel to trick charge and a couple of small servo motors.
I intend on using a DS3231 real time clock module to act as the timer. It only costs around AU$2. You can use a couple of libraries that have already been written to load the current time and set the daylight savings time where you live. Then via code, you can tell the door to lock and unlock at the relevant time of day each week (pending dusk/dawn times you find on the net).
Alternatively, you can use an LDR that you can find on eBay for around 10 cents each. Again via code, this can be easily triggered to "open" the door when it gets light and close the door when it starts getting dark. In your code, you could put a ckeck in place to ensure that on a day when a thunderstorm is about to happen and it gets darker, the door waits for a minimum time (say 6pm) before it will close - otherwise poor Colette will get locked out of her house before she wonders home.
How I'd like to set my coup up is that maybe the door swings open via a chicken standing on a platform inside the coup. I can see the platform on say about a 5 degree angle, with one edge touching the ground and the other up say 50mm. Stepping on it pulls a wire that pulls the door open. A similar platform is on the outside as well.
To stop one platform or the other operating, a small cheap servo motor locks one or the other platform from dropping on its hinge. Another motor locks or unlocks the door to stop the nasty foxes getting in. As the meerkat add says... "Simplesssss".



