TobKra96 / music_led_strip_control

Audio visualization for LED strips in real-time with web interface on a raspberry pi.
https://tobkra96.github.io/music_led_strip_control/
MIT License
298 stars 64 forks source link

Low output fps, random blinking #79

Closed d0uble-b closed 3 years ago

d0uble-b commented 3 years ago

Hi! I bought a new power supply as you suggested. And i have issues yet. I have low fps output and only the first 7-10 LEDs blinking randomly. The service starts with the system But when i go on mlsc dashboard and select the device and any effect, then nothing happens, all leds are white on the strip. I restarted service and nothing happens. I send ny config. I hope you can help me.

d0uble_b

Config

TobKra96 commented 3 years ago

Hi, what is written on the signal pin of the LED Strip? Di or Do?

Have a great day!

d0uble-b commented 3 years ago

Di

TobKra96 commented 3 years ago

Ok, good.

You can try to test the output with this script here: https://github.com/jgarff/rpi_ws281x/blob/master/python/examples/strandtest.py Download it and execute it with sudo python3 strandtest.py Ensure MLSC is no running in the background. If this works, we have to dig deeper into the software. If this does not work, I would take a deeper look at the hardware setup.

Maybe it is a loose connection. Breadboards and stranded wires can cause bad connections. Do you have other cables, or can you solder them together for a test?

I tested the setup with the same type of poti, you have. It worked for me. You can drag and drop pictures directly inside the post. IMG_20210221_144132 IMG_20210221_144139

d0uble-b commented 3 years ago

Hello I think the problem was caused because my raspberry was dying. Unfortunately it happened. I just tried to turn on and its not worked. I tried all tips what i found on topics and forums but i think its hardware error. So i bought a raspberry pi 4 2gb ram edition and the mlsc worked perfectly like in your video. Thank you for your help and your time. I am sorry but i didn't know about the raspberry's critical error.

I will post some pictures about my project when it will be done.

Polar19 commented 3 years ago

Hallo, ich habe das Problem das mein Led Strip auch die ganze zeit blinkt, aber ich weiß nicht woran das liegt. Ich benutze einen Raspberry 4 mit 4gb ram und ws2811 strips

d0uble-b commented 3 years ago

Use only one usb slot. Use only the microphone. / Brauchen nur eine usb für mikrofon. Lässt andere usb frei.

Polar19 commented 3 years ago

i use only one usb port for the microphone, but it dont work.

Polar19 commented 3 years ago

the led strip flickers a lot. i tried everything with the potentimeter but i dont have any success with that

d0uble-b commented 3 years ago

Did you plug the ground cable into the raspberry?

Polar19 commented 3 years ago

yes

d0uble-b commented 3 years ago

Check the program. Watch the output. My raspberry not always knows my sound card so i have to replug it and restart the program or the pi. Do you get the error message in the console?

Polar19 commented 3 years ago

my microphone works but the led signal not really

Polar19 commented 3 years ago

i dont get any error message

TobKra96 commented 3 years ago

Hi, just a short summary: LEDs just flickering, no solid signal.

Have a great day! TobKra

Polar19 commented 3 years ago
  1. yes i have a potentiometer between the raspberry and the led strip
  2. no i dont tested it with the script, but a day ago it works and it dosent work
Polar19 commented 3 years ago

https://user-images.githubusercontent.com/80054675/110019989-56e65980-7d29-11eb-9d73-d2f218598357.mp4

WhatsApp Image 2021-03-04 at 20 34 12

TobKra96 commented 3 years ago

Ok, have you tried to adjust the poti value? Please try the example to differentiate between a hardware issue and a software issue. https://github.com/jgarff/rpi_ws281x/blob/master/python/examples/strandtest.py

Which gpio pin do you use? Wich Power Supply do you use? LED Strip and Raspberry Pi share the ground connection?

Polar19 commented 3 years ago

i have connected the raspberry to the ground of the led strip and i use the gpio 18

Polar19 commented 3 years ago

i tried to adjust the poti but it dont work

Polar19 commented 3 years ago

how i can test? just copy and paste the code in to the console?

TobKra96 commented 3 years ago

create a new file with nano strandtest.py copy paste the content of the file, adjust the values you need to and execute the script with sudo python3 strandtest.py

Polar19 commented 3 years ago

WhatsApp Image 2021-03-04 at 20 58 24

Polar19 commented 3 years ago

WhatsApp Image 2021-03-04 at 20 58 51

Polar19 commented 3 years ago

there are two differnt sample rate numbers

Polar19 commented 3 years ago

which is right 44100 or 41000

TobKra96 commented 3 years ago

You have to use the sample rate of your mic. Do you have discord? Maybe I can support you with a shared screen.

Polar19 commented 3 years ago

yes

TobKra96 commented 3 years ago

Please use the server: https://discord.gg/qfmDu9jnce

TobKra96 commented 3 years ago

Polars issue was fixed by using another power supply.

ACyberCat commented 2 years ago

Hello I think the problem was caused because my raspberry was dying. Unfortunately it happened. I just tried to turn on and its not worked. I tried all tips what i found on topics and forums but i think its hardware error. So i bought a raspberry pi 4 2gb ram edition and the mlsc worked perfectly like in your video. Thank you for your help and your time. I am sorry but i didn't know about the raspberry's critical error.

I will post some pictures about my project when it will be done.

Are you really sure it's a hardware error and there's no way around it except for buying a new pi?

My RPI 3 used to run mlsc perfectly and one day after a clean reinstall it did the same thing, low output fps with random blinking.

I tried isolating everything till i was left with a 16 led strip running off of RPI power and the exact same issue persisted with no workaround in sight.

Getting my hands on a new pi is near impossible where I currently live due to inflation, so if there is a way around this issue please help me solve it.