The SparkFun PicoBuck LED Driver is an exceptionally versatile board designed to drive high-power LEDs with ease. It is capable of controlling up to three separate channels of LEDs and is suitable for a variety of lighting projects, from DIY home decor to industrial applications. The PicoBuck is popular for its simplicity and efficiency, accepting a wide range of input voltages and providing built-in PWM control for adjustable brightness.
Pin Number | Name | Description |
---|---|---|
1 | VIN | Input voltage (6V to 20V) |
2 | GND | Ground connection |
3 | EN | Enable pin (active high) |
4 | PWM | PWM brightness control input |
5-7 | OUT1-OUT3 | LED output channels |
// Define the PWM pin connected to the PicoBuck
const int pwmPin = 9; // Must be a PWM-capable pin
void setup() {
// Set the PWM pin as an output
pinMode(pwmPin, OUTPUT);
}
void loop() {
// Increase brightness gradually
for (int dutyCycle = 0; dutyCycle <= 255; dutyCycle++) {
analogWrite(pwmPin, dutyCycle);
delay(10);
}
// Decrease brightness gradually
for (int dutyCycle = 255; dutyCycle >= 0; dutyCycle--) {
analogWrite(pwmPin, dutyCycle);
delay(10);
}
}
Q: Can I drive LEDs that require more than 350mA? A: No, the PicoBuck is designed to drive LEDs up to 350mA per channel. Exceeding this limit may damage the board or the LEDs.
Q: Is it possible to chain multiple PicoBuck boards together? A: Yes, you can chain multiple boards for additional channels, but ensure that each board has its own power connection and that the PWM signals are synchronized.
Q: How do I adjust the current limit for each channel? A: The current limit is set by onboard resistors. To adjust the current, you would need to change these resistors to the appropriate values based on the desired current limit.
Q: Can I use the PicoBuck without a PWM signal? A: Yes, if you do not require dimming, you can tie the PWM pin to VIN for constant full brightness.