New Project - LEDan...
 
Notifications
Clear all

New Project - LEDancer

118 Posts
23 Users
0 Reactions
74.6 K Views
jrock64
Posts: 1099
(@jrock64)
Noble Member
Joined: 19 years ago
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


Reply
Posts: 6720
Topic starter
(@p-short)
Illustrious Member
Joined: 20 years ago

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.


Reply
jrock64
Posts: 1099
(@jrock64)
Noble Member
Joined: 19 years ago

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


Reply
Posts: 6720
Topic starter
(@p-short)
Illustrious Member
Joined: 20 years ago

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.


Reply
Posts: 6720
Topic starter
(@p-short)
Illustrious Member
Joined: 20 years ago

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.


Reply
jrock64
Posts: 1099
(@jrock64)
Noble Member
Joined: 19 years ago

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


Reply
Posts: 6720
Topic starter
(@p-short)
Illustrious Member
Joined: 20 years ago

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.


Reply
Posts: 6720
Topic starter
(@p-short)
Illustrious Member
Joined: 20 years ago

The boards arrived today, I'll take another look at this problem in the next day or two.


Reply
Posts: 6720
Topic starter
(@p-short)
Illustrious Member
Joined: 20 years ago

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.


Reply
Posts: 6720
Topic starter
(@p-short)
Illustrious Member
Joined: 20 years ago

See if this works...edited with NOTEPAD, hopefully if fixes the problem (not tested, just a blind fix).


Reply
Page 6 / 12
Share: