Project showcase

Ceci N'est Pas Une Ampoule [This Is Not a Lightbulb] © GPL3+

It's not a light bulb, it's three LEDs attached to what (sort of) looks like a light bulb. All controlled by a mini-touch kit.

  • 3,736 views
  • 1 comment
  • 25 respects

Components and supplies

About this project

These two dimensional fluorescent bulbs are actually three white LEDs. The 'bulb' is a laser cut and engraved piece of acrylic. Stuck to one side of the acrylic is a piece of sticky copper, which is connected to a touch sensor. The light turns on with a simple touch, and off again with another touch. All the electronics are contained in the box base, with a hole for the AB to USB cable to plug into a wall transformer or other USB power source.

The mini-touch kit was provided to me by the DFRobot corporation. https://www.dfrobot.com/product-594.html

Code

Code for touch light toggleArduino
//Maddy McGee
int light;
int sensor;
int lastVal;
boolean on;

void setup(){
  light = 2;
  sensor = 14;
  Serial.begin(9600);
  Serial.println("Start");
  pinMode(light,OUTPUT);
  pinMode(sensor,INPUT);
  lastVal = 0;
  on = false;
}

void loop(){
  int val = digitalRead(sensor);
  if(lastVal==0 && val==1)
    on= !on;
  if(on)
    digitalWrite(light,HIGH);
   else
    digitalWrite(light,LOW);
  Serial.println(val);
  lastVal = val;
}

Schematics

Lightbulb Schematic
The questionmarked box is a stand in for the touch sensor
Lightbulb ugkdbh6vra

Comments

Similar projects you might like

Colors of Photons

Project showcase by Eva Konya and Janos Magyar

  • 5,845 views
  • 4 comments
  • 27 respects

Programming 8x8 LED Matrix

by SAnwandter1

  • 237,039 views
  • 45 comments
  • 220 respects

Reactive Sound Color Changing Cube!

Project tutorial by Najad

  • 13,202 views
  • 26 comments
  • 81 respects

LED Cube

Project tutorial by Praditha Alwis

  • 11,400 views
  • 0 comments
  • 18 respects

LED Color Sequencer

Project tutorial by Team thefantasticode.Group

  • 8,533 views
  • 16 comments
  • 30 respects

MKR1000 RGB Strip Controller

Project showcase by Keith Mitchell

  • 8,128 views
  • 0 comments
  • 12 respects
Add projectSign up / Login