ChickenDoor
TARGET: Move the chicken house doors 2 times per day. Estimate battery lifetime: 8 month with AAA battery(x8).
VERSION HISTORY
- 1st Version: Digispark STD with LED to have some information. Not very userfriendly. To add a screen we should use digispark pro.
- 2nd Version: Digispark pro with screen (code not optimised).
- 3st Version: Digispark pro with screen and light sensor. After test, Tune the light sensor is very difficult, black cloud may close the door.
- 4th Version: Actually the better version, base on south french Ephemeris. Code optimised, add watchdog sleep mode, add a push button to enter in debug mode and to wake up the screen.
FOURTH VERSION DISGISPARK PRO VERSION & PUSH BUTTON: less 15€
- ATTiny167 Digispark Pro
- RTC DS3231 (Real Time clock)
- Switch button
- Battery holder 4 battery 1,5 v (x2)
- Oled screen 128x64 I2C SPI serial.
Description
Startup view.
Press button after boot to enter in debug mode.
Press 8secondes to wake up the screen when need. (screen shutdown after boot to reduce power consuming).
CONNECTION
Connection for the digispark pro
Connection for the Servomotor MG995
3D PRINT
Motor support:
1/2 wheel
How it’s work:
Push software to Digispark following instruction, connect all component following instructions. The system is ready !
Note: If the RTC have power lost, software update it time automaticaly. Oled screen & RTC use the same SDA and SCL connection to DIGISPARK. RTC DS3231 allow to have Temp information. I have put an relay to avoid battery consuming to maintain the servomotor position. FYI Servomotor have only 180° angle, i have create a 3D print wheel to open the door.
I’m available if any question.
Have fun !
ARNAUD TOCABENS.