Dobhal
Posts: 18
Joined: Thu Apr 25, 2013 1:24 pm

Connect LED strip to Gertboard

Fri Apr 26, 2013 2:24 pm

Hi all
This could be a dumb question but i am a complete noob. I want to connect a LED strip (externally powered - 12V) , my question is how can i connect this with my gertboard so that i can control the same with some programme. Also i want to know how what is the linux command to download the GPIP library ?
thansk
Dobhal

domesday
Posts: 258
Joined: Fri Oct 21, 2011 5:53 pm
Location: UK

Re: Connect LED strip to Gertboard

Fri Apr 26, 2013 2:56 pm

If you just want to tun an LED strip on and off then you would connect your 12V supply to the open collector and then connect the LED strip to switch it on and off.

btidey
Posts: 1634
Joined: Sun Feb 17, 2013 6:51 pm

Re: Connect LED strip to Gertboard

Fri Apr 26, 2013 7:31 pm

There are LED Strips with just a 12V supply as already mentioned and all you can do is turn them on and off, or dim them with a Pulse width modulated On Off. These strips can take a fairly large current (e.g 1.2A per metre) so I would be looking at a HexFet to turn them on and off, if you wanted to handle more than 0.5 metre. Devices like IRF3205 have very low on resistance and could easily handle a 5metre strip. You do want to drive the HexFet gate fairly hard (>8V) so you could use one of the open collector outputs on the Gertboard with a pull up resistor to the 12V line.

The second sort of LED strip, which is more interesting, is where each pixel in the strip has its own control and you drive values down a serial bus to control the intensity and color of each pixel in the strip. The SPI serial from the RPI is ideal for this as you need to send quite a lot of values quickly to get dynamic control of all the pixels. This is the sort of method used by Boblight to give ambient lighting around a TV based on the video.

Return to “HATs and other add-ons”