| Author |
Message |
Guest Guest
|
| Jun 11, 2008 7:24 am |
|
|
hey guys
i need to build a rs485 network using microcontrollers
my question is how to i connect them
do i connect each node's pins directly to the transiever's pins?
another question: is it possible to have both rs232 and rs485 communication sessions using a microcontroller?
for example,...i have a master microcontroler in rs485 network which communicates with a PC through rs232 highway |
|
lammert Site Admin
Joined: 13 Mar 2007 Posts: 146 Location: Netherlands and Kazakhstan
|
| Jun 16, 2008 12:09 pm |
|
|
| You can find a general network scheme for connecting multiple RS485 devices here. Microcontrollers can communicate by RS485 and RS232 simultaneously, as long as they have multiple serial ports available. |
|
Guest Guest
|
| Jun 18, 2008 10:37 am |
|
|
i think i didn't clarify my question:
what i'm trying to say is:
the master uController scans all the slave uControllers on rs485 network and stores the received bytes then after that it can start communication with the PC through rs232 highway...does that also need uController with multiple serial ports?
regards, |
|
agu Guest
|
| Oct 24, 2008 7:15 am |
|
|
search for the schema to connect a µcontrolleur (serial TTL levels) to a RS485 bus or a CAN bus
use of a MAX485??? |
|
3ld3rm4l490n Guest
|
| Jan 11, 2010 1:43 am |
|
|
| I think I can help you. I've designed a system with one MCU as master and 79 MCUs as slaves. In this system I scan for the state of all 79 slaves and send the information to a PC via RS232. The MCU I've used as master only has one UART but I've developed a technique to "multiply" the serial ports and I have 4 serial ports on my MCU, one rs232 to communicate with PC and three rs485 buses to have all the 79 slaves all four in a single UART. If you want I can send you the schematics to achieve this |
|
evil New User
Joined: 25 Mar 2010 Posts: 1
|
| Mar 25, 2010 4:37 pm |
|
|
3ld3rm4l490n, can you by any chance give us more information on the schematics of your system, and some coding perhaps?
Thanks |
|
bskumar7080 New User
Joined: 13 Oct 2010 Posts: 2
|
| Oct 13, 2010 7:12 am |
|
|
| Quote: | 3ld3rm4l490n
think I can help you. I've designed a system with one MCU as master and 79 MCUs as slaves. In this system I scan for the state of all 79 slaves and send the information to a PC via RS232. The MCU I've used as master only has one UART but I've developed a technique to "multiply" the serial ports and I have 4 serial ports on my MCU, one rs232 to communicate with PC and three rs485 buses to have all the 79 slaves all four in a single UART. If you want I can send you the schematics to achieve this |
Can you give schematic and code |
|
mostafa.elkoumy New User
Joined: 06 Feb 2012 Posts: 1
|
| Feb 06, 2012 7:22 pm |
|
|
| I am also need the code and the circuit for one master and multiple slaves .. plz |
|