Vermes
Advanced Member level 4
This driver can be a comfortable and cheap alternative for radio remote control. The main element of the system is processor Attiny13. ON/OFF is implemented by a radio controlled socket.
The processor's task:
- determine if the system is powered or not,
- control two relays
- depending on needs select individual light point to be on
Available options:
- lamp 1 on
- lamp 2 on
- lamps 1 and 2 on
Options can be changed by turning off the power supply of the system. Processor using CNY17 checks if the power supply was turned off. When turned off, the processor is maintained by 2200uF capacitor. If time period from turning off to another turning on is less than 5 seconds, next section is activated, but when that period was more than 5 seconds, the last light mode is stored to the EEPROM and the program „dies” as a result of discharge of the capacitor.
Due to the fact that the EEPROM has limited number of records, program checks if the same light mode was set before. If yes - it is not saved, if not – it is saved.
The system consists of two boards (power supply and driver module, executive module) connected together by a piece of computer tape with soldered HEADER sockets. It was closed in a housing from AC adapter.
Pictures:
Video of operation:
Link to original thread (useful attachment) – LampSTER - sterownik lampy dwupunktowej