CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Off topic = PIC -> ULN2803A -> Relay
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Guest








PostPosted: Wed Jul 13, 2005 3:41 pm     Reply with quote

PCM programmer wrote:
Quote:

When I touch the ground side of the probe to the negative pole of the
relay (even without the probe tip touching the circuit) - the relay also
energizes.
The ground lead on your scope probe is connected straight to the
earth ground in your mains wall socket. So if you connect ground
to the (-) side of your relay coil it will conduct current and energize.


Or you can float the scope?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Jul 13, 2005 4:08 pm     Reply with quote

I assume he did it by accident. The (-) side of the relay coil
connects to the output of the ULN driver chip. You should never
touch the scope ground to it.
hillcraft



Joined: 22 Sep 2003
Posts: 101
Location: Cape Town (South africa)

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Thu Jul 14, 2005 12:04 am     Reply with quote

Quote:
Key thing is, 'where does the energy go'. When you switch off the solenoid driver IC, there is a lot of energy stored in the inductor, that needs to go somewhere. The protection diodes in the driver, prevent it generating a massive overvoltage spike, and killing the driver IC, by diverting it into the 5v rail. Now if the loads on the 5v rail are small, and dependant on the capacitance values present, the result will be to raise the voltage of this rail. You can work out how much it will go up, from the inductance involved, the effective serial resistance of the diode and traces, and the capacitance present on the system. The odds are that in your case, the voltage increase is enough to spike the ICD-2. The diodes don't protect either the 5v rail, or the '5v bus'. All it protects is the 2004.


I have seen circuits where a zener diode was placed between the common pin of the uln and the power rail. Will this not effectively stop the rail from being raised?

Could you, and if you could, how would you use a transorb diode to protect the power rail from such spikes?
Ttelmah
Guest







PostPosted: Thu Jul 14, 2005 2:14 am     Reply with quote

Realistically, it is probably 'better' to use the transorb to absorb the spike in the first place. Just like the Zener approach you have seen, the transorb can be placed from the trap diode junction, and provided it's voltage rating is higher than the supply rail being used, it'll only conduct when the spike apears. The transorb can also be used without the diode at all, directly across the relay coil.
Transorbs have the big advantage of being faster than the typical Zener as well.
In the circuit I mentioned, the transorbs are only the 'backup', as part of routine protection round the processor, I either have transorbs, or a crowbar protection on the 5v rail. The latter would obviously be 'problematic', since if it triggers, it will blow the supply fuse, and shut down the power, but the former will help to ensure that the 5v rail never goes significantly above it's design voltage. However with the capacitor, inductor and resistor, the voltage on the supply rail only shows mV of change when the relays are switched, so the transorb never ends up taking the energy.
The energy has to go somewhere, and I'd always advocate dumping it earlier, rather than latter, since this reduces the chances of 'unexpected' effects...

Best Wishes
Guest








PostPosted: Tue Feb 14, 2006 10:32 am     Reply with quote

PCM programmer wrote:
Quote:

When I touch the ground side of the probe to the negative pole of the
relay (even without the probe tip touching the circuit) - the relay also
energizes.
The ground lead on your scope probe is connected straight to the
earth ground in your mains wall socket. So if you connect ground
to the (-) side of your relay coil it will conduct current and energize.
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Tue Feb 14, 2006 12:45 pm     Reply with quote

Ttelmah wrote:
Quote:

The energy has to go somewhere, and I'd always advocate dumping it earlier, rather than latter, since this reduces the chances of 'unexpected' effects...


Absolutely TRUE.
There is an old engineering design adage that tell NOT to share the power supply between logic circuits and peripherals.


Humberto
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group