RGB123 matrix not working anymore #544
-
Posted at 2014-05-15 by Owen Hello, I've tried debugging the following: Pin B15 is broken? NO. I can use a WS2812 strip on pin B15 and they work fine Some wrong with Espruino? don't think so as I've tried on my second espruino and same results?. Any ideas what I should try next? this is driving me mad. |
Beta Was this translation helpful? Give feedback.
Replies: 11 comments
-
Posted at 2014-05-15 by @gfwilliams Just tried it here and it still works fine on 1v62. Honestly not sure what to suggest. I used 1v62, copied the code from that page exactly and plugged my RGB123 in exactly as you did and it worked perfectly. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-05-15 by @gfwilliams It's still worth checking the power supply - maybe putting a bigger capacitor across GND and VBat. While Arduino may work, it'll be outputting 5v which may mean the display isn't quite as picky as it is for Espruino. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-05-15 by Owen What size of capacitor would you suggest? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-05-15 by @gfwilliams I'd say 47uF or over. I've got a 470uF on mine, which is probably overkill. How did it stop working though? Was it all wired up and going, and one day is stopped - or did you plug everything in and this time it didn't work? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-05-15 by Owen Something that could have caused it. It was all wired up correctly and working in the PIN stated above and while turned on I unplugged the matrix GND/5V from Espruino and plugged them directly into a 5v 0.5A wall adaptor . I don't power is the problem as I can power the matrix from either Arduino/Espruino/5v adaptor including the controller it's self. So it has to be something to do with the B15 data out? But if so then why does the WS2812 strip work Ok on B15? It's is becoming a real mystery. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-05-15 by DrAzzy Is the Espruino ground tied to the ground of the LED matrix? It should be. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-05-15 by Owen @drazzy it is yes. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-05-16 by Owen Hi guys, |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-05-16 by DrAzzy The reset is probably because as it gets plugged in there's a brief current surge that's resetting the Espruino? It didn't do that on my Espruino though (I have the 8x16 too RGB123 too), at least not powering it off VBAT (I didn't try on 3.3 - that's probably not high enough voltage for the LEDs). Is this what you're seeing?
What code are you using? I'd use the simple example, where they don't use the graphics library (in order to take any other issue out of the equation, and to ensure that you don't try to turn on too many pixels for your power source to handle - which is easy to do, since each LED on full power will pull 50ma, and you have 128 of them) - something like this:
Also check with a different pin for good measure (SPI1/A7 is a better choice than SPI2, because SPI2 is used for the SD card, so you'll get garbage on your WS2812's if you access the SD card)
I can't come up with any explanation consistent with your observation that WS2812 strip on Esp. GND, VBat and B15 works, other than bad connections. I'd ohm out all the connections, and make sure everything was actually making contact. I've had dupont connectors that didn't make proper contact with certain headers, or ones that I had to push down the wire on to get it to make contact, and it'll drive you mad if you're not on guard for it. This could also jive with your report that the problems started when you hooked it up to an external power supply (maybe you forced the connector over pins a little too large, or something like that - and it works on the arduino because the pins it has are slightly different and make better contact. Or you cracked a solder joint hooking it up, so now power doesn't make contact if the wires are angled a certain way). But yeah, I think it's likely a connection issue, as boring as that is. Edit 1: Ugh - I thought I could use markdown to make tables here? Edit 2: The more I think about this, the more I wonder if your test code is just trying to turn on too many LEDs at too high a brightness, triggering the power source to shut down (or momentary voltage droop that resets the WS2812's so they forget that you just told them to turn on - that's what Gordon uses the cap across power and ground on the panel to prevent)... and if you're using test code that doesn't turn on so many LEDs on the arduino, that'd explain that, and if you're running off espruino on 3.3v so the leds barely turn on, that would dramatically lower current, maybe making it possible to run the test code? It's the most plausible explanation I can come up with, short of a connection issue. (as an aside, that 5v @0.5A supply you were using is woefully insufficient for a panel of that size. ) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-07-15 by DrAzzy Uh, is there a missing post here? The topic listing says there was a post here today, but I can't see it... |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-07-15 by @gfwilliams Ahh, yes - there was a spam post that got removed. First one in ~12 months though, so not bad going! |
Beta Was this translation helpful? Give feedback.
Posted at 2014-05-16 by DrAzzy
The reset is probably because as it gets plugged in there's a brief current surge that's resetting the Espruino? It didn't do that on my Espruino though (I have the 8x16 too RGB123 too), at least not powering it off VBAT (I didn't try on 3.3 - that's probably not high enough voltage for the LEDs).
Is this what you're seeing?
What code are you using? I'd use the simple example, where they don't use the graphics library (in order to take any other issue out of the equ…