Bedside lamp with touch function
foot size ~12cm x 12cm
corpus ~ 19cm x 11cm
the task a controller has to do is nearly negligible: waiting for a touch event and then change the PWM output (or turn off)- therefore I've used a ATTiny85 which I think is filled with 18% code only- a Tiny25/45 would be sufficient as well.
SW is written in Arduino and programmed via USBASP (so no bootloader needed).
The touch area itself has been simply realized by using a full copper-covered pcb mounted on the other side of the "wooden"-Toucharea
The code can be found as usual on my GitHub
while power-up, a reading is done to get a reference signal. This will be subtracted later on. In case you turn on the lamp and touch already the sensitive area, the function will not run properly. Maybe one could implement another function to read the reference periodically or after a special touch sequence