New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LEDs failing to light up. #90
Comments
The lighthing up you see there is just from random input you send to the matrix; it is not wonder that it lights up something randomly, but it won't give any insights in cable/connector issue. Only that the panel is doing 'something'. The software doesn't know much if there is anything electrically going on wrong - it only sends data, never looks at inputs. So it can't do debugging diagnostic (you might uncomment DEFINES+=-DSHOW_REFRESH_RATE in lib/Makefile to give some confirmation that it does something). Can you give me the output of a The Makefile should make sure to recompile when the flags change, but it might be a good idea to To debug, I would measure the OE bit to see if it is giving a signal with a scope; if you don't have that, you should see some average value that is not 0v or 5V with a multimeter when the led-demo is running (see the images in the README to see where to expect the signal; you need to essentially measure between GND and OE- on the lowest row. Make sure to not accidentally short things while measuring). OE is the most interesting signal to look at because even if the other cables are broken, this would make it flicker somehow. Next up in that list would be the CLK signal (one pin up in the connector compared to the OE) - it will indicate if data is clocked in. Both of these signals are better measured with a scope though. Also, I'd start with a fresh raspbian on a separate SD card and do a fresh checkout/compile of the rpi matrix code there and test. The camera you mention in the Adafruit thread I don't know, so I have no experience if that would influence things. I could imagine if it does something that influences the pin-muxing. |
Thanks for the detailed suggestions. I'll see if I can get access to a scope and/or multimeter. I've been regularly using I'll try a fresh reinstall now. Here's my diff, against an up to date checkout: diff --git a/lib/Makefile b/lib/Makefile
index dacf2b0..61b6e50 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -40,7 +40,7 @@ DEFINES+=-DRGB_SLOWDOWN_GPIO=1
# If you have an Adafruit HAT ( https://www.adafruit.com/products/2345 ),
# you need to use this option as the HAT swaps pins around that are not
# compatible with the default mapping.
-#DEFINES+=-DADAFRUIT_RGBMATRIX_HAT
+DEFINES+=-DADAFRUIT_RGBMATRIX_HAT
# Uncomment if you want to use the Adafruit HAT with stable PWM timings
# The newer version of this library allows for much more stable (less flicker) |
The diff looks perfect. Not sure if I can debug anything more remotely. To continue your quest, I suggest to
|
Have now tried a new IDC cable and a fresh install of raspbian on a formatted sd card. Just to clarify, the lighting up I see is definitely not random. If I run demo -D 0 and produce the flickering by jostling the connector, I can see the shape of the rotating coloured square it's just interrupted. I don't know if that helps narrow down the issue. I'm going to try to track down a scope later on today for some measurements. |
Maybe the connector on the panel is loose. Try to re-solder all the pads of the connector. |
Here are the OE- and CLK signals measured from the base of the LED panel connector with everything plugged in fully. |
One thing I just noticed having measured the other signals on the panel: |
Yep, Try unplugging the cable and measure the equivalent signals directly at the HAT output. If you see them there, then the cable might be badly crimped (shorting If you don't see it at the HAT output either, look at the equivalent output of If you don't even see it there, the Pi GPIO output at least for that pin is probably fried. What is the voltage swing you see on the scope ? I should be roughly 5V. |
Yup no signal on the Pi at BCM pin 22, just a 3.3V up trace (is that what you mean by voltage swing?). I presume the only fix for a fried pin is ordering a new Pi? |
I also tried setting that pin to 0 with the python RPi.GPIO library and the gpio command line tool but no matter what it's stuck at 1. |
Yeah, sounds like your Pi is fried. |
Yup, just got a new Pi and it's working beautifully now. Thanks for all the debugging help, I learned a lot. Sorry for the waste of time! |
This may not be an issue with your software but I'm at a loss after a long thread in the Adafruit forums so I just want to make sure http://forums.adafruit.com/viewtopic.php?f=47&t=84544
Basically, the matrix has started only managing to light up at all if I jiggle the connector while it's making partial contact. And then, understandably sporadically.
As soon as I stop moving the connector, or if I push it in fully, the lights go out.
Here's a video showing what it looks like while running the demo
sudo ./led-matrix -r 32 -c 2 -D 0
https://www.youtube.com/watch?v=5H9m9QuiyqE&feature=youtu.be
The hardware all seems fine (but may not be in some invisible way) and I have tried reinstalling the raspberry pi OS to a state where it was working previously.
Is there any way I can collect some debug information to see if everything is operating as expected from the software point of view? Or is this a symptom you recognise at all?
The text was updated successfully, but these errors were encountered: