I have been trying to get this led strip to work with my project
I have followed this https://www.youtube.com/watch?v=WpaXMcmwyeU and his first example but nothing lights up.
I am relatively new at control board programming but I just can see why the LED wont light up
I purchased these lights https://www.amazon.co.uk/dp/B0BP6W8NQV? ... asin_title cut a small section 6 leds off the end and used the existing wiring
LED 5V goes to pico pin 40 VBUS,
LED Ground goes to pico pin 3
LED data goes to pico pin 34 (gpio 28)
The code is simple
but I get nothing, the pico is not dead as I have has it running a vibration sensor on another GPIO pin!
any thoughts
I have followed this https://www.youtube.com/watch?v=WpaXMcmwyeU and his first example but nothing lights up.
I am relatively new at control board programming but I just can see why the LED wont light up
I purchased these lights https://www.amazon.co.uk/dp/B0BP6W8NQV? ... asin_title cut a small section 6 leds off the end and used the existing wiring
LED 5V goes to pico pin 40 VBUS,
LED Ground goes to pico pin 3
LED data goes to pico pin 34 (gpio 28)
The code is simple
Code:
#Example 1 - Control individual LEDfrom neopixel import Neopixelimport utimeimport randomnumpix = 6strip = Neopixel(numpix, 0, 28, "RGB")red = (255, 0, 0)red = (255, 0, 0)orange = (255, 50, 0)yellow = (255, 100, 0)green = (0, 255, 0)blue = (0, 0, 255)indigo = (100, 0, 90)violet = (200, 0, 100)colors_rgb = [red, orange, yellow, green, blue, indigo, violet]delay = 0.5strip.brightness(42)blank = (0,0,0) while True: print("Started") strip.set_pixel(random.randint(0, numpix-1), colors_rgb[random.randint(0, len(colors_rgb)-1)]) strip.set_pixel(random.randint(0, numpix-1), colors_rgb[random.randint(0, len(colors_rgb)-1)]) strip.set_pixel(random.randint(0, numpix-1), colors_rgb[random.randint(0, len(colors_rgb)-1)]) strip.set_pixel(random.randint(0, numpix-1), colors_rgb[random.randint(0, len(colors_rgb)-1)]) strip.set_pixel(random.randint(0, numpix-1), colors_rgb[random.randint(0, len(colors_rgb)-1)]) strip.show() utime.sleep(delay) strip.fill((0,0,0))
but I get nothing, the pico is not dead as I have has it running a vibration sensor on another GPIO pin!
any thoughts
Statistics: Posted by atr232000 — Sun Dec 01, 2024 1:08 pm