NightLight

ATmega328P node with an LT3652 solar charge controller
rpu_bus
Posts: 150
Joined: Sun Sep 18, 2016 6:07 pm

NightLight

Postby rpu_bus » Wed Jul 19, 2017 1:08 pm

RPUno has some current sources that can be used to light LED strings. Analog has two 22mA sources, Digital has one 22mA source and the ICP has a 17mA source. Use the pluggable Digital IO's 3,10,11,12 for LED control, i.e. to sink a current source. Most of the examples use digital 13 as an I2C status, and the Day-Night state machine is using digital 4 as a status.

NightLightWiring.png
NightLightWiring.png (10.18 KiB) Viewed 36 times


The logic was mostly taken from Solenoid and allows setting a pre start delay, a runtime, a cycle delay and the mAHr of discharge at which the LED's stop cycling.

https://github.com/epccs/RPUno/tree/master/NightLight

Return to “RPUno”

Who is online

Users browsing this forum: No registered users and 1 guest