Audio Project Amplifier Speaker Loudspeaker Kit
diyAudio.com diyAudio Forums Archive > Top > Source > Digital
 
RS232 Relay Control (Logic) - Click HERE for Original Thread
Morbid
Hi im trying to build a software-controlled AC relay switches,
the idea is to control by buttons on 2-7 AC slots.
any schematic or idea??
open source software?

i know the principle.
to build relay operated by a logic status...
i need rs232 - > data -> bit decoder (or logic gates) -> bit to 5V -> 5v operate relay (220VAC) - > status change


thanks, Chen.
jobstens
Hello !

Here is a circuit, that receives serial data and outputs them parallel. It also could send parallel data in serial format. You don't need to build the transmitter if you don't use it. Both units could operate on independent baudrates.
The circuit outputs all data on the serial line. You just have to send a serial byte (terminal program, basic program or something) to switch the outputs.


Regards

Jobstens
Morbid
hi! thanks,
the 4094 is a register shift isnt it?

its the output decoder? i'll have logic 1 (5V) at 0-7 outputs by the command i send?
jobstens
Moin !

the 4094 is a register shift isnt it?
Yes, see datasheet below ...

its the output decoder?
The 4094 it's the mainpart of the receiver. the both 4017 and the 4081 are only to detect the startbit and counting the bits.

i'll have logic 1 (5V) at 0-7 outputs by the command i send?
the circuit outputs ~0V at L and ~5V at H (If I remember right).
You only need to connect a transistor that drives the relay. I think that the IC couldn't drive a relay.

You know that whole stuff with diode ?
(some basics:
http://www1.jaycar.com.au/images_uploaded/relaydrv.pdf
http://www.kpsec.freeuk.com/compone...lay.htm#protect
http://www.ami.ac.uk/courseware/mic...cro05diode.html
)



Datasheets:

4017 - 5-stage Johnson counter
http://www.semiconductors.philips.c...4017B_CNV_3.pdf

4021 - 8-bit static shift register
http://www.semiconductors.philips.c...4021B_CNV_3.pdf

4060 - 14-stage binary ripple counter with oscillator
http://www.semiconductors.philips.c...T4060_CNV_2.pdf

4081 - Quadruple 2-input AND gate
http://www.semiconductors.philips.c...4081B_CNV_3.pdf

4094 - 8-stage shift-and-store bus register
http://www.semiconductors.philips.c...4094B_CNV_3.pdf

LT1181 - dual RS232 driver/receiver pairs
http://www.linear.com/pdf/11801afb.pdf

If you like, you could replace the LT1181 by a MAX232 or something like that ... (if you do that, you have to compare the datasheet!)


Regards

Jobstens
Morbid
thanks! i made some transmitter programming circuit with the MAX232, and i guess its easier to get one here instead of the other chip mentioned....thanks :)

Page generated in 0.02534008026123 seconds with 17 queries,
spending 0.00696564 doing MySQL queries and 0.01837444 doing PHP things.

Powered by: Search Engine Indexer and vBulletin
Copyright ©1999-2008 diyAudio.com

Please support our sponsor.