1

enter image description hereenter image description hereenter image description hereYo, My name is Fabi,

Like 2 Months ago i started this "Project". I wanted to controll my LED Strip using my Pi. And this pi should host a Local webpage so i could control my led strip using any device in my Network. But unfortnetly im not very good at using Transistors, Cables, Grounds and stuff like that.

THE MAIN PROBLEM

I have wired everything correctly i think (i checked it like 20 times), i rewired everthing 4 to 5 times, too and it still doesnt work how it should. So there is this software called PIGPIO, and basically, if i want to controll a certain pin on the pi i have to type "pigs p (the pin in this case 17) 255(for the intensitiy of the color 0 till 255). Thats what i know, and i also understood. But if iam typing this into the console, the led still has the same color i dont know how to fix it.

please help !111!!!!1!1 :D

Thanks

NKFabian
  • 13
  • 3
  • 1
    A LED strip is not normally controlled by sending PWM. Could you edit your question and include the model of LED strip you have bought. Also a clear photo or photos showing the wiring between the Pi and the LED strip will be useful. – joan Dec 10 '19 at 20:48
  • 1
    working on it i just took some pictures, thanks for the fast response :) – NKFabian Dec 10 '19 at 20:49
  • 2
    Add a link to the LED strip that you are using. – CoderMike Dec 10 '19 at 20:54
  • 1
    https://www.amazon.de/gp/product/B07XQ995VG/ref=ppx_yo_dt_b_asin_title_o08_s00?ie=UTF8&psc=1 – NKFabian Dec 10 '19 at 20:55
  • Hi@NKFabian, Ah, let me see. Your Amazon LED strip has a 24 key remote, so there is no need to DIY: (3) LED strip RGB 10m SMD 5050 [24Key IR Remote] €30 - Amazon 2019dec https://www.amazon.de/gp/product/B07XQ995VG/ref=ppx_yo_dt_b_asin_title_o08_s00?ie=UTF8&psc=1. – tlfong01 Dec 11 '19 at 03:26
  • But if you wish to DIY, I suggest to start with Lady's newbie friendly tutorial: (1) The Magic of NeoPixels - Lady Ada 2013Papr https://learn.adafruit.com/adafruit-neopixel-uberguide/the-magic-of-neopixels. – tlfong01 Dec 11 '19 at 03:28
  • NeoPixel is a bit hard to control. You might like to the following LED strip question's answer with a long list of references for DIY newbies: (1) Raspberry Pi and car led ground effects - 2019mar https://raspberrypi.stackexchange.com/questions/98555/raspberry-pi-and-car-led-ground-effects/98603#98603. – tlfong01 Dec 11 '19 at 03:30
  • Your LED strip is 5050 based. You can find AdaFruit's 5050 NeoPixel Stick LED strip description and tutorials: (4) NeoPixel Stick - 8 x 5050 RGB LED with Integrated Drivers - AdaFruit $6: https://www.adafruit.com/product/1426. I have a couples of LED x 8 strips in hand. Show us the link to the tutorial your are following, and I can check out if they are compatible to Rpi4B buster Thonny python 3.7.3 (Sorry, I have no older versions of Rpi to reproduce your trouble). – tlfong01 Dec 11 '19 at 03:34
  • In case you are using WS2812 to DIY your LED strip, you might like to refer to the SparkFun tutorial which is as good as Lady Ada: (1) https://imgur.com/gallery/Y4px8kF. Also refer to the following WS2812 Datasheet for wiring and control signals: (2) https://www.kitronik.co.uk/pdf/WS2812B-LED-datasheet.pdf. Good luck and cheers. PS - Your 5050 guy is actually same as WS2828. – tlfong01 Dec 11 '19 at 04:33
  • You may find the WS2812 LED datasheet hard to read. You need to first understand the NRZ (Non Return to Zero) encoding protocol. Then you should find the datasheet "simple" ! :) https://en.wikipedia.org/wiki/Non-return-to-zero – tlfong01 Dec 11 '19 at 04:40
  • If your LED strip is WS28xx based it can not be driven by pigpio. You will need to find the precise controller chip of your strip to work out how to drive it. – joan Dec 11 '19 at 09:37
  • 1
    Tutorial:https://dordnung.de/raspberrypi-ledstrip/ – NKFabian Dec 11 '19 at 16:43
  • 1
    You said 'the led still has the same color' what colour do you see? What happens if you unplug the red, green, blue cables in turn feeding the LEDs? – CoderMike Dec 11 '19 at 23:03
  • 1
    Your photo of the GPIO connections on your Pi has different connections than the tutorial that you are following ! – CoderMike Dec 11 '19 at 23:07

1 Answers1

1

You appear to have got confused between the pin numbering of the GPIO connections on the Pi. There are several conventions including BCM (Broadcom pin number, commonly called "GPIO") and Physical (Number corresponding to the pin's physical location on the header).

The tutorial is using the BCM numbering however you have placed your connections in the Physical pin locations.

The following site should help you relocate your GPIO connections to the correct BCM locations.

https://pinout.xyz

CoderMike
  • 6,972
  • 1
  • 10
  • 15