budude wrote:By any chance are you running it with the programmer installed? I programmed my FAST tubes with a chip clip as well (DIP version) and initially saw some odd ghosting/extra LEDs on and it figured out it was because I had left the PICkit installed. Once I took off the clip all was well.
Not a chance, that clip does not stick that tight. I actually breath a sigh of relief each time the chip is recognized.
I will not rule out bad solder joints at this point as this one has be soldered and resoldered too many times.
The solder paste I used had sat on my bench for over a year, and it beaded strange, so there could be some current leakage there too.
Will find out this weekend when I do a clean build with the correct parts.
Joel
Here is a new version of the firmware. It's a test version to see if the ghosting present on jrock's video can be eliminated.
The latest LEDancer-20111020 code made no difference.
Got my replacement parts and built up a new controller, and it made no difference
Looked again and it appeared that the ghosting only occurred on the first 28 LEDs
Built a second stick in case of bad solder joints, no difference,
Tried a stick of only 28 to omit the second half entirely, no difference
Fell back on my debugging skills, document everything, look for the pattern.
<PRE>
Channel Ghosts Pins
1 21, 27 8-7, 6-7, 5-7
2 8, 28 8-6, 7-6, 5-6
3 5, 15 8-5, 7-5, 6-5
4 10, 16, 22 8-4, 7-4, 6-4, 5-4
5 11, 17, 23 8-3, 7-3, 6-3, 5-3
6 12, 18, 24
7 13, 19, 25
8 2, 28
9 3, 15
10 4, 16, 22
11 5, 17, 23
12 6, 18, 24
13 7, 19, 25
14 20, 26
</PRE>
The pins are for the FAST stick, they would be flipped for the LEDancer
Interpreting the table
When LED #1 was on #21 and #27 also partially lit.
To light #1 pin 8 is + and pin 7 is - but pin 6 and 5 are also receiving +
To light #2 pin 8 is + and pin 6 is - but pin 7 and 5 are also receiving +
I did not complete the table but the pattern is obvious.
The unused pins on port B, PIC pins 10-13 are leaking High allowing the dim LEDs
Hope this helps you solve this.
Joel
It's likely a timing issue, perhaps related to the switch from common cathode to common anode. I didn't notice any ghosting when I was testing a common-cathode setup on a solderless breadboard. Right now I'm waiting for some LED strips to come in later this week, although I'll post new firmware in the meantime if anything comes to mind.
Here is a shot in the dark, changing the COMMON_EPILOGUE_RETURN macro, based on thought that it is caused by brief timing problem when switching from driving one anode to driving the next.
Not good.
Most were on full, the rest were on 50%
All were on to some degree.
No visible control by vixen, all LEDs stayed at the same intensity.
Joel
OK, I think that the boards should be here later this week, I'll try again then when I have some hw reasonable close to what you have to test on.
The boards arrived today, I'll take another look at this problem in the next day or two.
OK, I got things assembled and set up earlier today, and I observed the same ghosting. Also, I think that I know what the problem is, although I can't verify it now because I'm not at home. The extra outputs are turning on because the built-in pull-up resistors for PortB are on by default at power-up, and the firmware never disables them. These pull-up resistors would turn on the 2N3904 transistors enough to cause the ghosting, I think. I'll test this out later, although the code to disable them is pretty trivial, basically by adding the lines
movlb WPUB
clrf WPUB
clrf WPUA
in the initalization sequence, perhaps right before setting the TRIS registers.
See if this works...edited with NOTEPAD, hopefully if fixes the problem (not tested, just a blind fix).
