Here I demonstrate a basic LED-based Touch Lamp using an Arduino microcontroller. I will implement this on a real 120V AC lamp in the future, using a relay and supporting electronics to turn the lamp on and off by switching power to it directly from the wall outlet.
~GS http://ElectricRCAircraftGuy.blogspot...
-Latest TouchLamp code on Github (NOT ready for final release, but here is my current copy): http://bit.ly/1oYTh4J
-UPDATE 18 Oct 2017: this code really is pretty awful and ugly looking. Someday I'll clean it up and make it so much better and easier to use. When I get the chance I'd like to get it down to where it looks so simple a child could do it.