Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Need Help with a circuit

2004-08-12 by Paul Maddox

Daniel,

>  I was wondering if someone would mind looking at the
> schematic (http://www.dpicts.com/Tiny15L-LaserDetector.jpg) and
> telling me what I am doing wrong?

Ok, do yourself a favour and save your AVR from going 'BANG'.
Put a diode across the relay coil, the wrong way round.

When you put power through a coil it builds up a charge (much like a
capacitor), when you remove it this charges reverses and you get a large
negative voltage going back down the wires.
Its only a matter of time before this breaks down the AVR and blows it up
(or just the pin on the port)

Second thing, use a transistor to drive the relay, the AVR just won't be
able to sink the current and turn on the relay, unless you've got an
expensive.
Just use an emitter follower (don't forget that diode though).

Paul

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.