THE CREATIVE PROCESS

I first got inspired by the old wood base that I got laying around at my workplace. I could easily see how I could make some kind of humanoid that would be attached to it. I began by choosing the component for the eye , I first wanted to use big red LED eyes but when I stumble upon the small incandescent light bulb I thought they would be a much better choice since they went well with the style of the base. I knew I needed a transistor to switch the lamp on and the shape of power transistor were just perfect for the mouth so I draw one black and used it.

I wanted it to also be interactive so I got inspired by an electronic laboratory that is given at the college where I work. They used this thread ; https://playground.arduino.cc/Main/CapacitiveSensor?from=Main.CapSense

to make a touch capacitive sensor out of aluminium foil. The obvious choise for the foil was to be the hand. I tested everything on breadboard, made a few adjustments and build the sculpture part by part, wire by wire. As I was adding the component , their shapes made me thinks of different part of the body ; the 7805 looked like spiky hair, the crystal looked like a sternum and the MCU socket looked like a spine.

HOW IT WORKS

As for functionnality , the circuit is pretty simple.  When you put your hand near the foil you become one plate of a capacitor, the other plate being the aluminium foil. The details of the capacitive sensor circuit are explained in the link already provided. But  here is the explanation given in the electronic lab that made me think of using the capacitive sensor circuit in the first place; A digital pin of the Arduino, placed in INPUT mode, has a small capacity.  When another pin sends a short signal to the pin in INPUT mode, the voltage on the pin does not instantly decrease to 0 because its capacity makes it discharge like a capacitor. The time constant of this discharge is increased to a measurable value by placing a high resistance between the pins.

THE CODE

I used the arduino code in the link already provided and add a few lines of code that would turn on a digital pin when the capacity was over 100 ( the unit are arbitrary) and turn it off when it was over that same value again.

static bool state = false;
static bool lastState = false;
static bool lightSwitch = false;
long start = millis();
long total1 =  cs_4_2.capacitiveSensor(30);

state = total1 >= 100;

if ((state == true) and (lastState == false)){
lightSwitch = !lightSwitch;
digitalWrite(12,lightSwitch);
}
lastState = state;

SCHEMATIC

more pictures in the file section.