DiyLightAnimation

Hardware => Lynx Express => Topic started by: naztrain on November 19, 2011,

Title: Two little issues (resolved, dead PIC)
Post by: naztrain on November 19, 2011,
I built my first LE and it is 75% operational.  I have two problems, but I'm not sure how to resolve or troubleshoot them.

Channel 6 LED remains dimly lit while the LE has power.  It reads 1.5 volts across the LED, but at no time will Channel 6 actually turn on.

Channels 10-12 LED does not light, and the channels themselves does not turn on either.

Neither problem is resolved by swapping the Optos for one that works.

Other than that, the LE seems to function as normal (the test program works just fine, barring the individual channel failures).

I feel like this could be a soldering problem, though I can't see any bridges or gaps anywhere, and I was pretty convinced when I was soldering that I had not left anything like that anywhere.  I'm going to do a more thorough search once I have some real daylight again.  In the mean time, does anyone have any ideas that I'm not thinking of?

Thanks!
Title: Re: Two little issues
Post by: rrowan on November 19, 2011,
Check the soldering around the pic and or make sure the pins are not bent.
Channels 10-12 could you put the leds in backwards?

Make sure you use a magnifying glass while looking at the soldering

Rick R.
Title: Re: Two little issues
Post by: naztrain on November 19, 2011,
I did another check of the PIC, it still doesn't look like any solder problems, but I'll check again tomorrow with sunlight.  I reversed one of those LEDs, but I'm still 99.99% positive that I put them in right.  :(
Title: Re: Two little issues
Post by: bisquit476 on November 20, 2011,
An easy check for the LED's is to get a watch battery (I use the CR2032), put one leg on one side, one on the other, if it lights the LED, the polarity is correct, look at which side is which so you see what side is the positive. If it doesn't light, spin the LED around, and try again (to verify the LED works). I generally test all the LED's before I put them in place. (Yes, even with the Aeon, all 72 LED's got tested) I figure it's easier to test first, instead of re-soldering later.
Title: Re: Two little issues
Post by: rm357 on November 21, 2011,
Try re-flashing the firmware in the pic. Dim led 6 and a slow display on the three 7_segment displays are common indicators for something not going quite right when the pic was programmed...

Rm
Title: Re: Two little issues
Post by: naztrain on November 24, 2011,
Yikes, school got very much in the way there for a while.

Alright, so I tested the line to channel ten from the PIC, which reads 0 volts always. 

The Express communicates just barely with Vixen, but not with the DMX deck, which makes me think it's the Pic (for instance, a channel test on Vixen will turn the channels on at 30% power when the percent on Vixen reads 97%, which is true for channels 1-9.  The others are unresponsive).  How can I go about getting it reprogrammed?  I don't have a PicKit2.  Would it be best to buy one or send the pic to someone?

Title: Re: Two little issues
Post by: combustionmark on November 24, 2011,
I would buy a pickit 3, Is this the only express board you have? If you have another, try the suspect chip in the other express. A little odd that dmx deck doesn't work, did you select the correct com port under setup? If you have to reprogram the chip, try finding someone near by that has a pickit.

Good Luck
Title: Re: Two little issues
Post by: jess_her on November 24, 2011,
Hummm, if channel 10 at the pic (pin 18 at the pic) is 0 VDC then the AC output  (where the lights plug in) should be 100% on.  The Pic's channel control side is just a variable switch and all it's doing is grounding the Opto 3023 to turn on the tric.  Pin 18 on the pic 2.6 VDC(can't remember but it's close) is off, 0VDC is on. You have two different types of power on this board AC and DC your reference ground should be here for the DC (pic voltages). Skip to the end of the thread.
http://diylightanimation.com/index.php?topic=6489.0

I'm with combustionmark check your com port setup, I used Bill's how to video http://vimeo.com/8593544    very helpfull.
If your going to jump in neck deep with this stuff then I would get the  pickit 3 with the J1sys adapter boards   

http://www.ebay.com/itm/ICSP-Adapter-ZIF-Kit-w-PICkit-3-USB-Programmer-/230588168695?pt=LH_DefaultDomain_0&hash=item35b02039f7

You can program with just the pickit 3 through the on board  ICSP header but for me I like the zif boards.

 
Title: Re: Two little issues
Post by: naztrain on December 01, 2011,
Alright, the picKit3 arrived, I reprogrammed the thing and the LE ran the test sequence perfectly.

However, it still has some concerns about communicating through DMX.  It seems to hang at various sporadic times and light values, sometimes remaining stuck on, other times remaining stuck off, or at half power or anywhere inbetween.

The LEDs seem to accurately reflect the same output as on the 120V lines, so my problem is happening somewhere between the LEDs and the computer.

I'm going to reflash the pic again and see if that helps for some reason... but if anyone has any suggestions in the mean time, do tell!

Thanks!

Title: Re: Two little issues
Post by: naztrain on December 01, 2011,
More info:

After erasing the pic and doing a blank check, it says the blank check failed.  I'm wondering if that means the pic itself is bad.  It has no problems erasing, writing, or verifying.

The DMX light turns on when expected, and the signal is passed when other controllers (SSR4s) are put inline afterwards. 

Would any of the other chips cause this to happen?  If so, which?

Thanks!
Title: Re: Two little issues
Post by: jess_her on December 01, 2011,
read down this thread  last two or three posts might have your answer.

http://diylightanimation.com/index.php?topic=6728.0

check for these resistors right above the pic
Yellow, Violet, Red, Gold

It's hard to get a feel for whats wrong,
we know its passing DMX on  but it may not be getting good data to the LE
1) is the wireless jumper in?
2) good solder joints at the RS485 socket between the DMX in and the termination jumper?
3) good 5v power? checked with a meter? but I think you said you have display digits.
4) check the thread for the resistor value.
let me know


2) check the solder joints at the termination jumper
Title: Re: Two little issues
Post by: naztrain on December 01, 2011,
Those symptoms seem to match mine, though I don't have access to the board right now to do any kind of further testing.

The jumpers are correctly placed (I even tried various combinations just to be sure something weird wasn't happening, though admittedly the board doesn't seem to do anything differently with or without the termination jumper, so I'll go back and re-solder it just to be sure.)

I'll re-solder the sockets as well, just to be sure.


I don't recall anything fishy about the 4.7 resistor, but I do recall that the blue (120 ohm) resistor's color code was not the same as the description in the wiki, though it matched the picture in the wiki so I assumed it should work.  Could that cause this kind of issue?

I didn't test it with a meter, but the 5v LED is lit.

I'll look into that as soon as I can (later this afternoon).  Thanks!
Title: Re: Two little issues
Post by: jess_her on December 01, 2011,
 on item 2) I meant to say solder on the wireless jumper.

The termination resistor colors called out  brown, red, brown, black
the resistor are brown, red, black, black,  brown

It sound like you have a DC volt meter. Just for fun can you check the 5V.
This is the power for your rs485.
Don't mean to hover here but this is  for your DMX data.
The green  5V led is on but for me I'd check it with a meter.
ground side of your meter to bottom (4 hole) left side of your wireless module thought hole.
plus side of your meter to the right side third down of your wireless module thought hole.
 
4.7 K ohm resistor at the top of the pic   Yellow, Violet, Red, Gold
47     ohm resistor, if installed at the same place will cause a programming issue  Yellow, Violet, black, Gold.

Last thing for now  are you programing through the ICSP header or do you have an adapter board?    Some adapter boards need jumpers installed.

Go to go to work I'll check in tonight 11 pm.


Title: Re: Two little issues
Post by: naztrain on December 01, 2011,
Preliminary update:

The resistors all seem to be outputting the value mentioned in the wiki.

My 5V reading is accurate.

I'm using the ICSP header.  However, I did feel a bit lost while actually programming the PIC.  I'm using the software provided with the PicKit3.  Is there a download of a specific programmer software I can use?  The one I'm using looks absolutely nothing like the one in the Wiki.  Could I simply have programmed it incorrectly after it had been flashed incorrectly the first time?

I have 2 new PICs I ordered today just in case I do need a replacement.  I also picked up two RS485 's from my Electrical engineering supply room at my university in case one of them is dead, though I'm hesitant to use them because they are printed differently from the ones on the Mouser list.  These have "MM238E   DS751768M" printed on top.

The shop lists them as follows: 
"IC-DS75176    $2.00    IC-Transciver Mult. RS485/422, $2.00"

Are these valid replacements (assuming I need to use them)?

Title: Re: Two little issues
Post by: naztrain on December 01, 2011,
Well, I resoldered most of the pre-pic components (including the pic socket itself) and now the test program runs fine until the end, where LED2 no longer lights up and now there is no response from the express AT ALL from the computer end (whereas previously it had some erratic responses).  I tried re-flashing the pic again and this time it said there was an error:

"Address: 000015f2 Expected Value: 00ffffff Received Value: 00fffffe"

I then tried it again with the same result, and a third time and it programmed correctly, but with the same result (test works, but LED 2 does not remain lit and there is no communication with the computer).  The DMX light does remain lit.

I'm lost.
Title: Re: Two little issues
Post by: rrowan on December 01, 2011,
Are you using mplab or pickit standalone program?

If mplab then you need to get the standalone program. Link in the wiki to http://www.diylightanimation.com/wiki/index.php?title=Software#Programming_.26_Drivers

Rick R.
Title: Re: Two little issues
Post by: naztrain on December 01, 2011,
Alright, I fixed the LED2 problem.  I had the lower-left chip backwards  <fp.  I don't know why I didn't notice it before...

I'm currently using MPlab.  I'll download the other one and try from there.

Thanks!!!
Title: Re: Two little issues
Post by: naztrain on December 01, 2011,
Alright, I tested the standalone software.  Now we're back to erratic responses to DMX from vixen (slightly synchronized to the music).
Title: Re: Two little issues
Post by: naztrain on December 01, 2011,
By the way, after erasing, the verify fails, and this is the error code:

"Address 0x4E4, read 0xFFFFF7, expected 0xFFFFFF"

Am I wrong to assume it's probably a PIC with a bad memory location?
Title: Re: Two little issues
Post by: jess_her on December 02, 2011,
K now were getting somewhere.  Yes I do think you might have a bad pic.
Check this thread out reply #8   this will tell you how the programing sequence should go.
Title: Re: Two little issues
Post by: jess_her on December 02, 2011,
so the chip in the bottom left, H11AA1???    Press reset on the board. Will 60HZ show up at the end of the boot???

Tired going to bed will check in the AM
Title: Re: Two little issues
Post by: naztrain on December 02, 2011,
Yeah, that's the one.  It was backwards the entire time, but for whatever reason it just barely started affecting anything.  Up until I was troubleshooting yesterday it read 60hz, but as soon as I noticed the LED2 not turning on, it showed 50hz.  When I corrected the chip orientation it returned to normal and now displays 60hz. 
Title: Re: Two little issues
Post by: jess_her on December 02, 2011,
I was just curious how the H11AA1 would react when installed backwards.
THX for checking .     Is that tread helping with  programming  of the pic using MPE utility?   
I'd ignore everything except reply # 8.
Title: Re: Two little issues
Post by: naztrain on December 02, 2011,
I'm not sure which thread you're talking about, but rrowan pointed me in the right direction and I feel fairly confident that I'm using the software correctly.  I'm a CS major and I'm presently in a class where we're programming microcontrollers.  I get the feeling that I have been programming it correctly the whole time but that the target (pic) is slightly fried.
Title: Re: Two little issues
Post by: jess_her on December 02, 2011,
yep' I think your right.  Sorry about the thread I thought I pasted the link.
Title: Re: Two little issues
Post by: naztrain on December 03, 2011,
So is there anything I can measure to make sure I don't fry my next pic?  Is there a chance I still have something wrong on my board that's frying it?  I ordered 2 new PICs, but I don't have time to waste frying another (assuming I did the frying in the first place instead of receiving a defective PIC).
Title: Re: Two little issues
Post by: RJ on December 04, 2011,
If you are choosing the pic in the pickit software manually and chossing wrong or setting the voltage manually you could program the chip with to high a voltage.

Should be about 3.3v no more than 3.6 listed on the programming utility in the voltage box. 

Solder bridge could be shorting out something damaging the pic.

RJ

Title: Re: Two little issues
Post by: naztrain on December 09, 2011,
Thanks, guys!  I got it going.  It was indeed the pic (and wouldn't you know it, the day I fixed the LE, the Dongle died so I had to repair that in order to see if the LE worked).  It's been a nightmare but you guy's helped me through!

Thank you and have a very Merry Christmas!