RS485. How to read a magnetic door switch
RS485. How to read a magnetic door switch
(OP)
Hi
I am new to RS485 and have it working to read temperature sensors etc.
I have a few magnetic door switched to determine if a door is open or closed.
How can I read these with RS485?
I assume I need some other device between the switch and the RS485 bus,
but have searched various suppliers etc and cannot find anything.
Any ideas how this is normally done?
Thanks in advance
I am new to RS485 and have it working to read temperature sensors etc.
I have a few magnetic door switched to determine if a door is open or closed.
How can I read these with RS485?
I assume I need some other device between the switch and the RS485 bus,
but have searched various suppliers etc and cannot find anything.
Any ideas how this is normally done?
Thanks in advance





RE: RS485. How to read a magnetic door switch
RS485 is a communications protocol so it isn't used to detect switch positions. You will need some sort of microcontroller to 'communicate' what it's seeing on its inputs that are watching the switches.
Check with:
BB-electronics
Under serial connectivity.
or:
Black Box
Keith Cress
kcress - http://www.flaminsystems.com
RE: RS485. How to read a magnetic door switch
Yes I understand that I need some device between the RS485 wires and the Magnetic door switch.
Just cannot find them. Will look for 'Serial Converters'
Does anyone know any off the shelf units to read switches etc?
I have used 1-Wire before and that has very cheap devices to do this, but I have to use RS485 for this.
I can see RS232-to-RS485 converters and USB-to-RS485 Converters.
Should I be looking for a RS485-to-TTL ? Can you connect the switch to the TTL pins?
Thanks for your help.
RE: RS485. How to read a magnetic door switch
Is this for school? Student posting is not allowed.
TTFN
I can do absolutely anything. I'm an expert!
homework forum: //www.engineering.com/AskForum/aff/32.aspx
FAQ731-376: Eng-Tips.com Forum Policies forum1529: Translation Assistance for Engineers
RE: RS485. How to read a magnetic door switch
I am just trying to lean how RS485 works. I have done some testing with a 1-Wire system to read temperature devices and read magnetic door switches.
I want to try this with RS485.
I know the device (DS2406) to use with 1-Wire.
Is there a commercial device to use for RS485 that can be used to read a few devices, temp, switch etc?
I am searching for Analog Serial Converters and think this is the kind of device I need.
Thanks again.
RE: RS485. How to read a magnetic door switch
You can read about RS-485: http://www.rs485.com/rs485spec.html and other sites. RS-485 is simply a description of an electrical interface that uses a differential pair of lines to communicate and to mitigate common-mode noise. The serial protocol is a separate thing completely, as the standard 8-bits plus start bit serial protocol is interface agnostic, and can run on RS-232, RS-422, RS-485, or a number of other interfaces.
Since RS-485 is simply a differential electrical interface, you can simply connect an RS-485 compatible driver input (http://www.ti.com/product/sn65hvd1780-q1) to a pullup resistor and attach your switch thereon. This will cause the RS-485 driver to toggle the state on its output, which you can use an RS-485 receiver to decode and run into any I/O pin and detect the logic state changes. BTDT.
RS-485 as the conduit for serial communications is a complete other layer of complexity. The thing of note here is that RS-485 was intended to support multiple masters and slaves, while RS-422 was intended primarily for a single master with multiple slaves. Thus, and RS-485 driver must have a tri-state mode to disconnect it from the bus when another master is attempting to gain access to the bus.
TTFN
I can do absolutely anything. I'm an expert!
homework forum: //www.engineering.com/AskForum/aff/32.aspx
FAQ731-376: Eng-Tips.com Forum Policies forum1529: Translation Assistance for Engineers
RE: RS485. How to read a magnetic door switch
www.mccdaq.com
http://www.mccdaq.com/serial-data-acquisition/CB-S...
RE: RS485. How to read a magnetic door switch
There you go a "contact monitoring module".
CB-7053
Keith Cress
kcress - http://www.flaminsystems.com
RE: RS485. How to read a magnetic door switch
Thanks again for your help.