D
DaveM
Guest
<mike_l_rossREMOVE@REMOVEsbcglobal.net> wrote in message
news:X75fg.88483$H71.86022@newssvr13.news.prodigy.com...
I don't think you need low power relays... your money would be better spent on a
proper interface between the AVR port and the relays. A simple transistor
between the AVR output and the relay would let you use your existing relays and
would amount to a few cents per relay.
You didn't indicate whether the AVR output is high or low when the relay should
turn on, so first, I'll assume that it's low. In that case, use a PNP
transistor (such as a 2N2907). Connect it as such:
Please view in a fixed-width font such as Courier.
+----------+ +5V
| | |
| | |
| AVR | |
| | |
| | |
| | | E
| | 10K /
| | +------+ |/
| +--------+ +------| 2N2907
| | +------+ B |\
| | \
| | |C
| | |
| | |
| | +-+-+
| | | |
| | | |
| | | | Relay coil
| | | |
| | | |
| | +-+-+
| | |
| | |
| | --+--
| | ---
| | -
+----------+
In case the AVR output is high when the relay should be on,
use an NPN transistor (such as a 2N2222) like this:
+5V
|
|
+-+-+
| |
+----------+ | |
| | | | Relay coil
| | | |
| AVR | | |
| | +-+-+
| | |
| | |C
| | 10K /
| | +------+ |/
| +--------+ +------| 2N2222
| | +------+ B |\
| | \
| | |E
| | |
| | |
| | --+--
| | ---
| | -
| |
+----------+
Total cost per output: about $0.50 US
Cheers!!!!
--
Dave M
MasonDG44 at comcast dot net (Just substitute the appropriate characters in the
address)
Some days you're the dog, some days the hydrant.
news:X75fg.88483$H71.86022@newssvr13.news.prodigy.com...
I'm trying to use my little AVR to control up to 12 120VAC loads, up to 5
amps. Does anyone know of a cheap (< $5 US) relay (SPST-NO) that only
needs 40 mA or less to activate? My Tyco T77 relays need 90 mA at 5VDC to
pull in the contacts, it turns out, so the processor dies. The lowest I've
found on-line is 60 mA. I don't have a harsh environment, or rapid
switching requirements, just need a simple on-off relay. I'm switching
banks of lights, should look cool if I can get it to work. Thanks for any
advice.
Mike Ross
--
I don't think you need low power relays... your money would be better spent on a
proper interface between the AVR port and the relays. A simple transistor
between the AVR output and the relay would let you use your existing relays and
would amount to a few cents per relay.
You didn't indicate whether the AVR output is high or low when the relay should
turn on, so first, I'll assume that it's low. In that case, use a PNP
transistor (such as a 2N2907). Connect it as such:
Please view in a fixed-width font such as Courier.
+----------+ +5V
| | |
| | |
| AVR | |
| | |
| | |
| | | E
| | 10K /
| | +------+ |/
| +--------+ +------| 2N2907
| | +------+ B |\
| | \
| | |C
| | |
| | |
| | +-+-+
| | | |
| | | |
| | | | Relay coil
| | | |
| | | |
| | +-+-+
| | |
| | |
| | --+--
| | ---
| | -
+----------+
In case the AVR output is high when the relay should be on,
use an NPN transistor (such as a 2N2222) like this:
+5V
|
|
+-+-+
| |
+----------+ | |
| | | | Relay coil
| | | |
| AVR | | |
| | +-+-+
| | |
| | |C
| | 10K /
| | +------+ |/
| +--------+ +------| 2N2222
| | +------+ B |\
| | \
| | |E
| | |
| | |
| | --+--
| | ---
| | -
| |
+----------+
Total cost per output: about $0.50 US
Cheers!!!!
--
Dave M
MasonDG44 at comcast dot net (Just substitute the appropriate characters in the
address)
Some days you're the dog, some days the hydrant.