Hello everyone,
It´s my first time in this forum, so please tell me if I´m doing something wrong.
The problem I´m facing is to implement the comunication of a raspberry pi and a PIC MCU that will be about 50m apart.
The serial port in Raspberry uses TTL at 3.3v, while the serial in the MCU uses TTL at 5.0v.
Right now I can use the serial port in my computer to comunicate to any then (individualy) using the MAX3232 IC. The baudRate is 4800.
The protocol I´m using is of my own, it's basicaly a small string that starts with the sender, is folowed by the destinator and then the command.
Something like [BSETO042TON] meaning that BSE(base) is sending a message to 042 telling to TON (turn on). In my work-bench evereyhing work's fine.
The question is how to use the same protocol but in a longer distance?
From what I´m reading RS-485 is the way to go, but how can I implement it?
Thank you verry much for taking the time to help me.
Kind regards
It´s my first time in this forum, so please tell me if I´m doing something wrong.
The problem I´m facing is to implement the comunication of a raspberry pi and a PIC MCU that will be about 50m apart.
The serial port in Raspberry uses TTL at 3.3v, while the serial in the MCU uses TTL at 5.0v.
Right now I can use the serial port in my computer to comunicate to any then (individualy) using the MAX3232 IC. The baudRate is 4800.
The protocol I´m using is of my own, it's basicaly a small string that starts with the sender, is folowed by the destinator and then the command.
Something like [BSETO042TON] meaning that BSE(base) is sending a message to 042 telling to TON (turn on). In my work-bench evereyhing work's fine.
The question is how to use the same protocol but in a longer distance?
From what I´m reading RS-485 is the way to go, but how can I implement it?
Thank you verry much for taking the time to help me.
Kind regards
