A smart light control for pet cages with simple and easy to use WebUI and API.
- conifgurable output channels
- Low cost ESP8266 powered
- WebUI
- RTC for automatic mode
- easy to use http-get api
- weekly schedule for each channel
Partlist for a two channel configuration
- ESP8266 module (I used the NodeMCU V3 board)
- 2 channel relais card
- DS1307 RTC module
- 12V power supply (12V for the led strips, min 5V)
- some wood/plastic odds for mounting the stuff
- luster terminals
- [OPTIONAL] I used a small 5V step down converter for the esp and relays
- [OPTIONAL] the 3d printed case (located at
documentation/cage_light.skp
- Sketchup) - [OPTIONAL] 2 push buttons for on off switching
- [OPTIONAL] 2 pullup resistors for the 2 buttons
- [IF REQUIRED] CR2032 Battery for the RTC Module
- soldering stuff
- hot glue
- wires, ....
- micro usb cable
- a 3D Printer for the case (optional)
Print the both stl-files (/documentation/cage_light_case_box.stl
and /documentation/cage_light_case_top.stl
). Good settings are 0.3mm layerheight, 0.4mm nozzle (i used a 0.5mm), no support, no raft.
Please feel free to modify the Sketchup File to you needs. The basic case is a bit oversized eg. to build in the power supply or more relais.
- Open the downloaded sketch (
src/cage_light
) and see the pin config or change it! - connect the input of the step down converter to the power supply
- connect the output of the step down converter to the
VI
andGND
of the ESP8266 board - connect the step down converter to
VCC
andGND
of the relays board - connect
3.3V
andGND
from the ESP8266 board to the power pins of the RTC module - connect the I2C interface from the RTC module to the in the config set pins of the ESP8266 board
- connect the in the config set pins for the relay outputs of the ESP8266 board to the channel input of the relais
- Please add a port forwarding for port 80 in you router
-
a dyndns provider if you have not a static ip adress and you want to access the system from outside of your lan
-
WIP
- i have several of this units at different locations so i have create a own simple dyndns service for this. it called RB DNS and the cage light firmware after version 24b support it https://github.com/RBEGamer/RB_DNS_SERVICE please change the ip in the configuration to your own rb_dns_server configuration
- WIP
- add the esp8266 board url to the additional board in your arduino ide : http://arduino.esp8266.com/stable/package_esp8266com_index.json
- download the sketch located at
src/cage_light/
- [ edit the pin config to your connected pins (first lines) ]
- upload the sketch to the ESP8266 board
- show at startup over the serial port the given IP of the board (or check your router)
The middle of the luster terminal was disconnected from the relais and connected to GND
so no additional GND
-Terminal needed
See the TODO List located at /TODO.MD