NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.
Microcontroller Programming » LED Array Kit - Costum Solution (Not working)
November 06, 2016 by lnino |
Hey guys, my LED Array kit has been in my drawer for a long while, but now I have decided to finish this Project. I have been through the tutorial and had everything up and running on my breadboard. Then I thought I should create a custom PCB and put it in a nice Frame. Now I have soldered my custom PCB and used the same Controller of the Breadboard. (Same Code as well) It is the running snake code for testing purpose. This was running great on the breadboard. But now on the PCB all LEDs which are connected to PCx are making Problems. In Detail the colums which are connected to PC0,PC1,PC2,PC3,PC4,PC5 have an issue. In more detail only the LEDs which the Anode leg. The issue is that the LEDs are lighting for one second, then they get dark. LEDs on PDx are working fine. I marked with red colour on the last photo which columns and LED leg are making Problems. Any ideas why it acts like that?
|
---|---|
November 07, 2016 by scootergarrett |
I think I would need to see a picture (or a circuit diagram or both) and some code to help with this. |
November 07, 2016 by lnino |
Oh of course you will get the code. I thought every Nerdkit member has also bought the LED Array kit. :-) So this is the official Nerdkit Code which I got when I bought the LED Array kit. I hope it is okay to post it here. Which Pictures do you mean? In my post is the Eagle-Schematic, Eagle-PCB, Front Foam and Back Foam. What else do you need? Makefile:
Code:
|
November 09, 2016 by sask55 |
It appears from you pictures and description that the LED on the C port are lighting up with one off the LED polarities but not the other. I think that is an indication that the pins on the C port are either not being energized when they should or possibly not sinking any current when they should. Without knowing the orientation of the LEDs on the display board I cannot determine which set of LEDs is not working. This is a bit of a wild guess on my part but I would start by grounding Pin 22 on the micro. It appears to be not connected to anything on your PC board. Grounding that pin cannot cause any issues and there may be a possibility that the pins on the C port used that ground to sink current. On the data sheet that I have it is not clear what that pin 22 GND may be responsible for. This does not explain why they are on for a second then go out but I would eliminate the possibility that the pins have no internal GND connection to sink current. |
November 09, 2016 by sask55 |
Following the recommended practice in the data sheet (Pin 20) AVCC should be connected to the VCC supply even if you are not using the ADC. I would solder a couple of pieces of wire between pins on the back of your PC board to see if there is any change in the operation of the setup. Let use know if you find a solution. Darryl |
November 15, 2016 by Ralphxyz |
lnino, nice to see you. sorry I just viewed your post. If you have not got this straighten out I would restore your breadboard setup which you said you had working! Possible/hopefully you will see the error if it works. I would go by the Nerdkit instructions, do not reference any of your work. Hi Darryl and scootergarrett nice to see you also. I have been doing some posting over at Rick's forum. Ralph |
November 15, 2016 by lnino |
Thank you so much guys. Today I had the time to try your suggestions with my solder iron. The only differences between the breadboard and my PCB was the missing VREF, AVCC and AGND. I soldered some wires at the back of the PCB and now it works like charm. :-) Thanks for sask55 for pointing out the mistake. Now I can go forward building the frame. :-) I will keep you updated about the progress. |
November 15, 2016 by sask55 |
Your welcome I think your PC board could likely come in handy for any project that may have a permanent or semi permanent set up. It would be a relatively simple change to include the connections to the AVCC AGND on the Eagle PCB board schematic. Since you now have a unused wire connection terminal on the PC board now I would also make use of it for one more possible micro pin connection maybe pin 21 (Vref) would be handy. By making these changes to the schematic if you ever have more boards printed the new boards could have potential for any long term use type projects without having to solder any wires on the back. Glad to here things are working Darryl |
Please log in to post a reply.
Did you know that reading a double floating point variable with scanf requires "%lf" for "long float"? Learn more...
|