What is RS485? How to use it? Is this difficult? You will get answers to these and many other questions in this episode. In half an hour you will learn how RS485 works, what is needed to build such a bus, what transceivers to choose (and what they are), and finally, of course, we will try to send something.
Some people will probably ask why RS485 when we have WiFi, BT and other inventions? As always, the answer is not one-size-fits-all, there are applications in which it is better to use RS485 and there are those in which other methods of data transmission work better. Of course, at the end I will show how we can transfer data between AVR and PC and ARM and PC and what problems we may encounter.
00:00 - Start
00:26 - What is RS485?
03:31 - Hardware needed to implement RS485
03:56 - RS485 transceivers - what you need to know!
09:51 - Construction of the RS485 transceiver
11:58 - Construction of the RS485 bus
14:59 - Are terminators necessary?
16:38 - Nuances of UART implementation in MCU
17:06 - Fail-safe and bus standby
20:16 - Fail-safe transceivers
21:19 - Bus, terminators and network construction...
22:16 - What about the mass?
24:43 - Which cable should I use?
26:09 - Shielded twisted pair
27:36 - Let's try to run it...
29:54 - We are adding another transceiver
30:34 - Code for ARM and software control of RE/DE
32:32 - Does it work?
17 авг 2024