With this project, I use an Adafruit 16-channel PWM Servo HAT to control 8 LEDs. That is a basic test for PWM control by PCA9685 on the HAT. By that, the HAT is ready to control up to 8 DC motors or 16 servos.
PWM signals are attached to ULN2803A Darlington Transistor Array to pins 1B – 8B. Pins 1C – 8C are attached to cathode of 8 LEDs. Make sure to reduce current to the LED when attache anode to power +.
On RPi UI you will get 9 sliders, eight of them are for controlling each LED separately and the 9th slider controls all the LEDs.
Comments
Please log in or sign up to comment.