Introduction: HACKED Ikea Paper Lamp.

My wife has been talking about getting one of those really chinsy plug in the wall night lights for the nursery. Seeing as how I had a number of extra LED strips, a lamp that was already located in the nursery,  microcontrollers, and SCR's kicking around I told her I'd make her something better. I strapped an LED strip to the center pole of an IKEA paper lamp. Attached the capacitive touch sensor to the pole. Wham-Bam, LED touch sensitive hacked lamp.
I used the same circuit outlined HERE in a previous instructable, except I used an Attiny 8, and an SCR instead of an SSR.
 

Comments

RonaldG (author)2014-11-18

Hi Timbit1985,

I selected ATtiny85 (internal 8Mhz clock) and successfully burned this bootloader into my ATtiny85-20PU. Uploaded the blink sketch, works at expected. However, I receive the following error when attempting to upload your sketch:

'PORTD' was not declared in this scope

sketch_nov18c.ino:70:47: error: invalid suffix "Mhx" on integer constant

sketch_nov18c.ino: In function 'uint8_t readCapacitivePin(int)':

sketch_nov18c:68: error: 'PORTD' was not declared in this scope

sketch_nov18c:69: error: 'DDRD' was not declared in this scope

sketch_nov18c:70: error: 'internal' was not declared in this scope

sketch_nov18c:70: error: expected `)' before numeric constant

sketch_nov18c:80: error: 'PORTC' was not declared in this scope

sketch_nov18c:81: error: 'DDRC' was not declared in this scope

sketch_nov18c:83: error: 'PINC' was not declared in this scope

I assume its an internal register issue.

Thank you in advance.

Best regards, Ron

About This Instructable

5,762views

9favorites

License:

Bio: Everywhere I go, there I am.
More by timbit1985:How to grow wild mushrooms mycelium from spores (experimental)Perfectly Simple Pork Tenderloin (Sous-Vide)Rapid motor sheave/pulley removal (HVAC)
Add instructable to: