12V RGB LED Strips
LEDs! Bright, colourful fun things that are often seen as tacky, or simple – but that just means you haven't experimented with the nature of light itself!
In this recipe we use basic 12V RGB LED strips, which are also known as LED Tape in some circles.
Knowing this limitation, 12V RGB LED strips are nonetheless great options for having controllable lighting in your work. Working with light often requires you to consider the absence of light, i.e. the shadow, and this, as with any craft, is as much an art and creative endeavour as it is a technical one.
You will definitely need a wall-wart transformer that can supply sufficient power to your LED strip.
A typical 12V RGB LED will draw up to 20mA (0.02A). Therefore, a typical 60-LED-per-meter strip will draw a maximum of 1.2A. They do add up, so make sure you choose the right 12V power supply accordingly!
Video on how to cut 12V LED strips
You can swap out the light sensor with any other analog sensor in your kit, so long as you modify the code to suitably adjust the scaling of the sensor readings in relation to the desired output.
The code is getting the ambient light sensor to drive the Red, Green and Blue channels simultaneously, which means the LED strip will be generating a ‘white’ light by combining Red/Green/Blue colours.
To keep kit costs low your equipment list includes only one N-Drive MOSFET. If you connect this to the Red channel you'll get a simple Red LED strip that responds in Red intensity to the ambient light sensed. Order extra N-Drives on your own, if you find that your experimentation is leading you to use RGB LED strips.
(learn how to import them in the Build IDE):