mattdibi / yampad

Feature-packed open source macropad
MIT License
326 stars 53 forks source link

LEDs not working #13

Closed alytle closed 3 years ago

alytle commented 3 years ago

Hey Mattia,

Thanks for creating this project! I had a ton of fun with my build, as it's one of my first such projects. I managed to get everything working as expected, with the exception of the RGB lights.

I know you're busy and can't dive into fixing everyone's build, but do you have any high level suggestions on how to go about debugging the RGBs? Right now I can toggle the RGB on/off and see the status change on the OLED, but I'm getting no lights.

I had a few diodes which weren't properly secured, and those were easy to detect and repair because everything worked except for that switch, but the RGB is tougher because I'm getting nothing at all. I assume it's some sort of circuit where I have a broken connection somewhere?

These are the LEDs I used: https://www.digikey.ca/en/products/detail/sparkfun-electronics/COM-16346/11630211 and I was careful (I think) to properly align them.

I'll include a picture of my board case you can see something obviously wrong. Feel free to mock my terrible soldering. :)

Thanks again and I appreciate any suggestions!

20201103_102820

mattdibi commented 3 years ago

Hi,

sorry for taking so long to answer. Since the LEDs are daisy chained (see schematic for details) I think that the connection is broken at some point and preventing any of them to light up. Check with a multimeter if they're receiving power and if signal il properly reaching every one of them.

Here you can find the pinout of the LEDs. Using a multimeter you should see 5V between VDD and VSS. The Dout from a LED should go to the Din of the subsequent LEDs. Here you can see how they should connect.

Hope this helps.

alytle commented 3 years ago

Thanks! I really appreciate the help. I'll take a stab at it on the weekend and see if I can figure out what went wrong. Hopefully it might help others.

alytle commented 3 years ago

I had a look at the voltage across the RBGs. The VSS/VDD gives me 4.77V across all the LEDs. What's the correct way to measure DIn/Dout? I tried testing it across the individual RGBs and get inconsistent numbers, but that probably makes sense if it's supposed to be between LEDs.

Thanks again!

mattdibi commented 3 years ago

What's the correct way to measure DIn/Dout? I tried testing it across the individual RGBs and get inconsistent numbers, but that probably makes sense if it's supposed to be between LEDs.

These pins are used for data so you'll need an oscilloscope to see what's actually passing between them. I suggest you to check only continuity between them and the pin that is driving them.

mattdibi commented 3 years ago

A correction:

Since the LEDs are daisy chained (see schematic for details) I think that the connection is broken at some point and preventing any of them to light up.

In reality the LEDs should light up to the point the chain is broken. This may suggest that the chain is broken on the very first connection (Arduino A3/F4 pin -> DIN LED0), I would suggest a continuity check right on this connection.

Double checking the first pic you posted the F4 pin seems to lack some solder, try adding some solder on that connection.

detail

alytle commented 3 years ago

Hey, thanks for continuing to assist. I did add some solder to F4, though it was actually better in reality than it looked. I got no lights at first, but when I used the meter to test from F4 to Din on LED0, I suddenly got lights on RGB0 & 1! So it looks like I have my voltage pins soldered correctly but I've got a break in my data pins. I added more solder to Din on RGB0 and now these two work properly, without the meter bridge.

I was able to manually turn on all the rest of the LEDs using the meter. Some came on in groups, others individually. I find it a bit strange that I was perfect with the voltage, but so bad with the data pins. Is this because the data signal flows through the caps? They are by far the hardest when you're new to soldering, so perhaps a bunch of my caps are not connected properly?

Now that I've got a heartbeat I'll keep plugging away. So far I think the following info would be useful for others who try this build and run into similar issues:

mattdibi commented 3 years ago

Is this because the data signal flows through the caps?

Nope. Look at the schematic for details.

I’m glad you found what was wrong with the board. Have fun with it ;)