Maker Pro
Maker Pro

Feather M4 Express + PropMaker Wings + WS2812b LED

Daniel_Fdrvc

Mar 24, 2024
3
Joined
Mar 24, 2024
Messages
3
Guys, i need help. Im new to electronics and do everything how i find on youtube/google. What im doing wrong that my simple 4 led strip (non neopixel) dont whant to light up. I asked ChatGPT to write simple python code to light up all led when controler is turned on:

Code:
import board
import neopixel

# Define the pin for the data line
led_data_pin = board.D5

# Number of LEDs in the strip
num_leds = 4

# Create NeoPixel object
pixels = neopixel.NeoPixel(led_data_pin, num_leds)

# Function to turn on all LEDs with a specific color
def turn_on_all_leds(color):
    pixels.fill(color)

# Example usage:
# Turn on all LEDs with white color when the microcontroller starts
turn_on_all_leds((255, 255, 255))

But nothing happened. I checked the connection of the red (5 V) and black (gnd) wires to a simple LED lamp and it works. I think something is wrong with the yellow (din) connector, but I don't know what and how to check. Or maybe everything is wrong. I loaded the neopixel library into the controller and tried many different solutions. Nothing has helped me, but I don't want to give up. I hope for your help. I have attached pictures of my newbie wiring.
 

Attachments

  • IMG_4198.jpg
    IMG_4198.jpg
    337.6 KB · Views: 11
  • IMG_4200.jpg
    IMG_4200.jpg
    294.3 KB · Views: 11
Last edited by a moderator:

Bluejets

Oct 5, 2014
6,916
Joined
Oct 5, 2014
Messages
6,916
draw a complete circuit of what you have and include power supply.
 

Martaine2005

May 12, 2015
4,949
Joined
May 12, 2015
Messages
4,949
I’m not sure what you’re doing but the ‘Feather’ board looks like nothing is soldered properly.
Therefore nothing will work.

Martin
 

Bluejets

Oct 5, 2014
6,916
Joined
Oct 5, 2014
Messages
6,916
As an addition to Martaine .......
Below is an example of "good" joints.......yours are not.
 

Attachments

  • GoodSolderedJoints.jpg
    GoodSolderedJoints.jpg
    44.3 KB · Views: 3

Harald Kapp

Moderator
Moderator
Nov 17, 2011
13,716
Joined
Nov 17, 2011
Messages
13,716
Looks like you connected the LED strip to 3 V instead of 5 V
1711346134988.png
The LED strip needs 5 V supply.
 

Harald Kapp

Moderator
Moderator
Nov 17, 2011
13,716
Joined
Nov 17, 2011
Messages
13,716
5 V is where you input 5V to the feather module.
The module will not provide 5 V if it is not supplied by 5 V. As far as I can see from the pinout the only 5 V input would be via USB, then you can tap the USB pin (next to pin 13) for 5 V, but only a few 100 mA (< 500 mA). This should be sufficient for 4 LEDs.

If you want your setup to be battery operated, it will not work with the battery connected to the feather module. Instead use a USB power bank to power the module via the USB connector, then you will also have the 5 V.
 

Daniel_Fdrvc

Mar 24, 2024
3
Joined
Mar 24, 2024
Messages
3
Guys, you won't believe, but problem was in libraries... i used 8 version libraries on 9 version circuitpython... When installed correct libraries the lights came on. Thank you all!
 
Top