Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
LinkBack Thread Tools Display Modes
Old 28th April 2004, 07:57 AM   (permalink)
Default RS485 project help.

guys i'm monitoring something using some sensors connected to an 89C51 MCU.

what i want to do is send the collected data to my computer located 100 to 200 meters away.

how many RS232 to RS485 devices do i need? is it two? one for the 89C51 and another for my computers serial port?

how about the wire? im planning to use a CAT5e UTP cable.

here's the link of the converter circuit that i will use.

http://chaokhun.kmitl.ac.th/~kswichi.../PC_Rs485.html

do you think this circuit is enough? considering it is already opto-isolated to protect my serial port.

what else should i need for my project? how do i terminate the cables?
j3Riks is offline  
Old 28th April 2004, 03:26 PM   (permalink)
Default

I have made a couple of RS232 to RS485 converters, but I have never daisy chain them, but you will only need to address each device and that is it. I believe you will also need a resistor end. I am not an expert on that by no means, I just built something that worked and went on with my life :P

But the attached article might be of great advice to you, one thing I did notice was that the circuit you show has the DTR and the RTS lines controlling the flow. There are RS485 circuits that use 4 pairs of twisted wires, one for receiving and one for sending, that is called Full comunications I belive. Then there is the half comunication, which uses only one pair, for both TX and Rx.

With that last configuration, you will need that data flow control, but PC (under windows) will not control the DTR and RTS lines good enough, so at higher baudrates it might not work to control the flow. A good way ("more complicated") way to control the flow is by using the start bit of the RS232 transmition to enable the Tx line.

Good Luck

Ivancho
Attached Files
File Type: zip microsys_art_RS485.zip (40.4 KB, 50 views)
ivancho is offline  
Old 30th April 2004, 04:43 PM   (permalink)
Default RS232 to RS485 and native RS485 ?

See http://www.electro-tech-online.com/v...ighlight=rs485

Also, as you appear to be using a homebrew at one end (89C51 MCU) why have RS232 there at all ? produce the RS485 directly with a 75176 and then just one converter need be built for the computer end of the link.

Opto isolation is nice but probably not essential, are the comms lines likely to take a lightning strike?
__________________
I need a memory upgrade ...
My head is full !
mechie is offline  
Old 2nd May 2004, 10:39 AM   (permalink)
Default

@mechie

yes i already figured out that i only need a converter at the PC side.

how do i terminate the cable(CAT5 UTP)? i saw that the converter circuit already has a 120 ohm terminator resistor. so i will just need to terminate the cable at the 89C51.

its my first time to do this kind of stuff so i really don't know the right things to do.

do i only need to add the 120 ohm termination and it will already function?[/quote]
j3Riks is offline  
Old 2nd May 2004, 01:36 PM   (permalink)
Default RS485 question

yes i already figured out that i only need a convertor at the PC.

how do i terminate the cable? CAT5 UTP

i think the converter already has a 120 ohm resistor terminator so i just need to put another one at the other end of the cable.

is this what i just need to do to make it work?

this is my first time to do this. please help me.

BTW im using Java to control the serial port.

what i just want to do is retrieve the data collected by the 89C51 to my PC.
j3Riks is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 11:09 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker