loading
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.
 
<p>Hi Timbit1985, </p><p>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:</p><p>'PORTD' was not declared in this scope</p><p>sketch_nov18c.ino:70:47: error: invalid suffix &quot;Mhx&quot; on integer constant</p><p>sketch_nov18c.ino: In function 'uint8_t readCapacitivePin(int)':</p><p>sketch_nov18c:68: error: 'PORTD' was not declared in this scope</p><p>sketch_nov18c:69: error: 'DDRD' was not declared in this scope</p><p>sketch_nov18c:70: error: 'internal' was not declared in this scope</p><p>sketch_nov18c:70: error: expected `)' before numeric constant</p><p>sketch_nov18c:80: error: 'PORTC' was not declared in this scope</p><p>sketch_nov18c:81: error: 'DDRC' was not declared in this scope</p><p>sketch_nov18c:83: error: 'PINC' was not declared in this scope</p><p>I assume its an internal register issue.</p><p>Thank you in advance. </p><p>Best regards, Ron</p>

About This Instructable

5,619views

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: