Note that there are some explanatory texts on larger screens.

plurals
  1. POProblems controlling a Rainbowduino
    text
    copied!<p>I've just bought a <a href="http://www.seeedstudio.com/depot/rainbowduino-led-driver-platform-plug-and-shine-p-371.html" rel="nofollow noreferrer">Rainbowduino</a> to control a load of individual LEDs (NOT an RGB matrix). All the documentation so far is aimed towards controlling RGB arrays which is <strong>not</strong> what I'm after.</p> <p>If you're unfamiliar with the Rainbowduino it's an <a href="http://en.wikipedia.org/wiki/Arduino" rel="nofollow noreferrer">Arduino</a> clone with 24 constant current channels of 120 mA, 8 super source driver channel of 500 mA each and a wide output voltage adaption from 5 V - 12 V DC. Perfect for driving LEDs. The product webpage is here: <a href="http://www.seeedstudio.com/blog/?page_id=187" rel="nofollow noreferrer">http://www.seeedstudio.com/blog/?page_id=187</a></p> <p>I've connected up 16 LEDs and want to be able to turn each one on and off individually with <code>digitalWrite()</code>. I've uploaded some demo code to the board which isn't really working. I've worked out that the 8 driver source channels are easily controllable with <code>digitalWrite()</code> on pins 3-11. However controlling the other 24 sink channels is more difficult. Apparently they are controlled by 3 shift registers (one each) which I can only access with shiftOut. I've got no idea how this works. Can somebody help point me in the right direction?</p> <p>Half the LEDs are wired into Blue 1-8 and the other half are wired into Green 1-8. The positive legs are wired into VCC1-2 which have been set to HIGH. I'm confident the circuit is wired up correctly, it's the programming I'm having issues with.</p> <p>I've looked over the sample code which is shipped with the Rainbowduino, but I can't make sense of it. How can I fix this problem?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload