Electrical – How to connect LED driver to arduino

arduinoled-drivermosfetpwm

How do I connect 2 of these LED drivers to Arduino?

http://www.starchips.com.tw/pdf/datasheet/SCT2024V01_03.pdf

This is what I have so far, im connecting each output to a N-channel mosfet.
Im not sure about the other pins form the datasheet.

enter image description here

Best Answer

Connect up to SCK, MOSI, and a pin for Latch. I wouldn't use SS in this case due to the load/ pin wanting to be low most of the time. To send in data:

SPI.transfer(byte1);
SPI.transfer(byte2);
digitalWrite (load, HIGH); // latches the data
digitalWrite (load, LOW); // updates the output register

OE/ connects to Gnd unless, or a PWM pin for brightness control.

analogWrite (PWMpin, 10);  // lower for brighter, higher for dimmer