Introduction.
CandyBar SparkFun Wish List
- USB Cable Extension – 6 Foot
- Polarized Connectors – Crimp Pins
- CAT 6 Cable – 3ft
- Ribbon Cable – 6 wire (15ft)
- SparkFun USB Mini-B Cable – 6 Foot
- MicroSD Card with Adapter – 8GB
- LED RGB Strip – Addressable, Bare (1m)
- Foam PCB Tape – 3M VHB Acrylic 1″ (1 yard)
- FadeCandy NeoPixel Driver – USB-Controlled Dithering
- Wall Adapter Power Supply – 5V DC 2A (USB Micro-B)
- Raspberry Pi – Model B+
- Hook-Up Wire – Silicone 12AWG (Red, 10m)
- Hook-Up Wire – Silicone 12AWG (Black, 10m)
- Polarized Connectors – Housing (3-Pin)protection.×1 meter segments).
If you want to add more LEDs, you will need to add more power. Dan ended up using five of these supplies to power, one for each of the five FadeCandies controlling the 2300 LEDs in the sculpture.
Image courtesy of danjuliodesigns.com..
#!/usr/bin/env python
# Light each LED in sequence, and repeat.
import opc, time
numLEDs = 480
client = opc.Client(‘fadecandy.local:7890’)
while True:
for i in range(59, , –1):
pixels = [ (,,) ] * numLEDs
pixels[i] = (255, 255, 255)
client.put_pixels(pixels)
time.sleep(0.01)
for i in range(60, 119):
pixels = [ (,,) ] * numLEDs
pixels[i] = (255, 255, 255)
client.put_pixels(pixels)
time.sleep(0.01)
for i in range(179, 120, –1):
pixels = [ (,,) ] * numLEDs
pixels[i] = (255, 255, 255)
client.put_pixels(pixels)
time.sleep(0.01)
for i in range(180, 239):
pixels = [ (,,) ] * numLEDs
pixels[i] = (255, 255, 255)
client.put_pixels(pixels)
time.sleep(0.01)
for i in range(299, 240, –1):
pixels = [ (,,) ] * numLEDs
pixels[i] = (255, 255, 255)
client.put_pixels(pixels)
time.sleep(0.01)
for i in range(300, 359):
pixels = [ (,,) ] * numLEDs
pixels[i] = (255, 255, 255)
client.put_pixels(pixels)
time.sleep(0.01)
for i in range(419, 360, –1):
pixels = [ (,,) ] * numLEDs
pixels[i] = (255, 255, 255)
client.put_pixels(pixels)
time.sleep(0.01)
for i in range(420, 479):
pixels = [ (,,) ] *.