anabolyc / arduino-attiny85-rgb-lamp-vs-remote

1 stars 0 forks source link

Arduino based RGB night lamp controlled by Atmel attiny85

Motivation

Non-remote controlled version

I used this article for technical inspiration. Basically Attiny85 has 2 timers, providing 2 pwms each. Unfortunately pins for those pwms overlapping, so getting 4-th pwm is tricky. But 3 is enough for me, so that works quite ok.

I used smd led for this one (KY-009 module), but actually it is not brilliant, it is not very powerfull and colors are not very bright.

pcb front pcb back

Remote-controlled version

I decided to assemble version that is possible to switch on and off remotely using RF433 radio module. Although module itself is building and working fine with Attiny85, it is using Timer0, therefore blocking 2 pwms. Timer0 works in CTC mode, so basically it is always 50% pwm (sort of) and i can only change frequency by adjusting radio channel speed. So trick here is

pcb front pcb back panda lamp led inplace

Remote control unit

I used capacitive sensor library, which turns any 2 pins into touch sensing button. So my button is just piese of aluminium foil covered by plastic tape. From my experience it works perfect!

button pcb front pcb back

PCB and schematics

Links

Video

Video is demonstrating color changes as well as remote control being tested

Watch the video at Youtube DSC_0047