Time to build out how the arduino controls a relay. I got a 5v relay from Radio Shack to play with.
arduino_relay.png [ 48.88 KiB | Viewed 1976 times ]
It's a but more complicated than I thought. Then I realized I'd need to supply power to the relay AND the sensor from the arduino. Good thing the arduino has a 5v and 3.3V...
So I got this bad boy. All of the circuitry and diode is in the box
So to test things out...
The wiring is a lot less complicate than before.
I then put the whole thing in a power box. For easy connection, I used a telephone 6 pin connector to connect to the arduino.
Hook everything up to a power outlet.
And then test everything out on a desk lamp.
Here's the sensor with the new silicone membrane.