{"product_id":"mikroe-2821","title":"RS485 3 click","description":"\u003cp\u003e\u003cstrong\u003eRS485 3 click\u003c\/strong\u003e uses \u003ca href=\"https:\/\/download.mikroe.com\/documents\/datasheets\/sn65hvd31.pdf\"\u003eSN65HVD31DR \u003c\/a\u003efrom \u003ca href=\"http:\/\/www.ti.com\/\"\u003eTexas Instruments\u003c\/a\u003e, a tri-state differential line driver and differential input line receiver. The click is intended to be used as UART to RS422\/RS485 communication interface. It is suited for transmitting smaller blocks of data over long distances, using the four-wire bus, allowing for full-duplex communication.\u003c\/p\u003e\n\n\u003cp\u003eIt can be used as a transceiver between UART interface and RS422\/RS485 communication bus. RS485 3 click can be used for controlling various building automation systems, light controllers, sensors and many small embedded devices that can all share the same bus, which can stretch up to 254 nodes and up to 1200m in length.\u003c\/p\u003e\n\n\u003csection id=\"info-description\"\u003e\n\u003ch3\u003e\u003cstrong\u003eHow does it work?\u003c\/strong\u003e\u003c\/h3\u003e\n\n\u003cp\u003eThe main feature of the RS422\/RS485 interface is that the signals can be transmitted and received at distances up to 1200m by using the so-called twisted pairs - basically, the signal and its inverted copy are sent via the twisted pair wires. Because of the length of the twisted pair, it will unavoidably be exposed to the influence of the EMI. The interferences will appear in both wires of the twisted pair equally, but thanks to the opposite polarity of the signals the wires are carrying, the interferences will get canceled at the differential inputs of the SN65HVD31. This way, greater signal communication distances can be achieved than with the regular UART.\u003c\/p\u003e\n\n\u003cp\u003eRS422\/RS485 only specifies electrical characteristics of the transmitter and the receiver. It does not specify or recommend any communications protocol, only the physical layer. The top layer communication protocol of choice can be used, such as the MODBUS or DMX protocols.\u003c\/p\u003e\n\n\u003cp\u003eTo improve the signal stability, RS485 3 click is equipped with the TVS – transient voltage suppression diodes used to protect the circuit from the static electricity discharges and other types of dangerous electrical discharges, that might occur.\u003c\/p\u003e\n\n\u003cp\u003eThere are four onboard screw terminals (RX+, Rx-, Tx+, Tx-) for connecting RS422\/RS485 twisted pair cable, along with two screw terminals (GND) for common ground connection.\u003cbr\u003e\n\u003cbr\u003e\n\u003cimg alt=\"\" src=\"https:\/\/shop.mikroe.com\/img\/cms\/rs485-3-click-inner-img%20(1).jpg\"\u003e\u003c\/p\u003e\n\n\u003cp\u003eTX and RX pins should be used for connecting MCU UART interface. Two resistors (R2 and R5) should be unsoldered if using more than two clicks on the RS422\/RS485 bus.\u003c\/p\u003e\n\n\u003ch3\u003e\u003cstrong\u003eSpecifications\u003c\/strong\u003e\u003c\/h3\u003e\n\n\u003csection id=\"data-sheets\"\u003e\n\u003ctable\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eType\u003c\/td\u003e\n\u003ctd\u003eRS485\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eApplications\u003c\/td\u003e\n\u003ctd\u003eTransceiver between UART interface and RS422\/RS485 communication bus. Controlling various building automation systems, light controllers, sensors and small embedded devices that can all share the same bus.\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eOn-board modules\u003c\/td\u003e\n\u003ctd\u003eSN65HVD31DR 3.3-V Full-Duplex RS-485 Driver and Receiver by Texas Instruments\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eKey Features\u003c\/td\u003e\n\u003ctd\u003eFull duplex four-wire serial communication over a distance up to 1200m, low power stand-by mode, receiver failsafe (detection of the short circuit or disconnection), hot plug capability\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eInterface\u003c\/td\u003e\n\u003ctd\u003eUART\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eInput Voltage\u003c\/td\u003e\n\u003ctd\u003e3.3V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eClick board size\u003c\/td\u003e\n\u003ctd\u003eM (42.9 x 25.4 mm)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/section\u003e\n\n\u003ch3\u003e\u003cstrong\u003ePinout diagram\u003c\/strong\u003e\u003c\/h3\u003e\n\n\u003cp\u003eThis table shows how the pinout on \u003cstrong\u003eRS485 3 click\u003c\/strong\u003e corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).\u003c\/p\u003e\n\n\u003ctable\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003cth\u003eNotes\u003c\/th\u003e\n\u003cth\u003ePin\u003c\/th\u003e\n\u003cth colspan=\"4\"\u003e\u003ca href=\"http:\/\/www.mikroe.com\/mikrobus\/\"\u003e\u003cimg alt=\"Mikrobus logo.png\" src=\"https:\/\/cdn.mikroe.com\/img\/mikrobus\/mikroBUS-logo-black.png\"\u003e\u003c\/a\u003e\u003c\/th\u003e\n\u003cth\u003ePin\u003c\/th\u003e\n\u003cth\u003eNotes\u003c\/th\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e1\u003c\/td\u003e\n\u003ctd\u003eAN\u003c\/td\u003e\n\u003ctd\u003ePWM\u003c\/td\u003e\n\u003ctd\u003e16\u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e2\u003c\/td\u003e\n\u003ctd\u003eRST\u003c\/td\u003e\n\u003ctd\u003eINT\u003c\/td\u003e\n\u003ctd\u003e15\u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e3\u003c\/td\u003e\n\u003ctd\u003eCS\u003c\/td\u003e\n\u003ctd\u003eRX\u003c\/td\u003e\n\u003ctd\u003e14\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003eTX\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003eUART transmit data\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e4\u003c\/td\u003e\n\u003ctd\u003eSCK\u003c\/td\u003e\n\u003ctd\u003eTX\u003c\/td\u003e\n\u003ctd\u003e13\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003eRX\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003eUART receive data\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e5\u003c\/td\u003e\n\u003ctd\u003eMISO\u003c\/td\u003e\n\u003ctd\u003eSCL\u003c\/td\u003e\n\u003ctd\u003e12\u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e6\u003c\/td\u003e\n\u003ctd\u003eMOSI\u003c\/td\u003e\n\u003ctd\u003eSDA\u003c\/td\u003e\n\u003ctd\u003e11\u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003ePower supply\u003c\/td\u003e\n\u003ctd\u003e3.3V\u003c\/td\u003e\n\u003ctd\u003e7\u003c\/td\u003e\n\u003ctd\u003e3.3V\u003c\/td\u003e\n\u003ctd\u003e5V\u003c\/td\u003e\n\u003ctd\u003e10\u003c\/td\u003e\n\u003ctd\u003eNC\u003c\/td\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eGround\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003eGND\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e8\u003c\/td\u003e\n\u003ctd\u003eGND\u003c\/td\u003e\n\u003ctd\u003eGND\u003c\/td\u003e\n\u003ctd\u003e9\u003c\/td\u003e\n\u003ctd\u003e\u003cstrong\u003eGND\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003eGround\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\n\u003ch3\u003e\u003cstrong\u003eRS485 3 click electrical specifications\u003c\/strong\u003e\u003c\/h3\u003e\n\n\u003ctable\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003cth\u003eDescription\u003c\/th\u003e\n\u003cth\u003eMin\u003c\/th\u003e\n\u003cth\u003eTyp\u003c\/th\u003e\n\u003cth\u003eMax\u003c\/th\u003e\n\u003cth\u003eUnit\u003c\/th\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eVoltage at any terminal of the RS485 connectors\u003c\/td\u003e\n\u003ctd\u003e-7\u003c\/td\u003e\n\u003ctd\u003e±5\u003c\/td\u003e\n\u003ctd\u003e12\u003c\/td\u003e\n\u003ctd\u003eV\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eDifferential load resistance \u003c\/td\u003e\n\u003ctd\u003e54\u003c\/td\u003e\n\u003ctd\u003e60\u003c\/td\u003e\n\u003ctd\u003e \u003c\/td\u003e\n\u003ctd\u003e?\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\n\u003ch3\u003eOnboard settings and indicators\u003c\/h3\u003e\n\n\u003ctable\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003cth\u003eLabel\u003c\/th\u003e\n\u003cth\u003eName\u003c\/th\u003e\n\u003cth\u003eDefault\u003c\/th\u003e\n\u003cth\u003eDescription\u003c\/th\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003ePWR\u003c\/td\u003e\n\u003ctd\u003ePower LED\u003c\/td\u003e\n\u003ctd\u003e-\u003c\/td\u003e\n\u003ctd\u003ePower LED indicates that the click is powered on\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\n\u003ch3\u003e\u003cstrong\u003eSoftware support\u003c\/strong\u003e\u003c\/h3\u003e\n\n\u003cp\u003eWe provide a demo application for the RS485 3 click on our \u003ca href=\"https:\/\/libstock.mikroe.com\/projects\/view\/2236\/rs485-3-click\"\u003eLibStock\u003c\/a\u003e page, as well as a demo application (example), developed using MikroElektronika \u003ca href=\"https:\/\/shop.mikroe.com\/compilers\"\u003ecompilers\u003c\/a\u003e. The demo can run on all the main MikroElektronika \u003ca href=\"https:\/\/shop.mikroe.com\/development-boards\"\u003edevelopment boards\u003c\/a\u003e.\u003c\/p\u003e\n\n\u003cp\u003eExamples Description\u003cbr\u003e\n\u003cbr\u003e\nThe application is composed of two sections :\u003c\/p\u003e\n\n\u003cul\u003e\n\u003cli\u003eSystem Initialization - Initializes GPIO pins used for button press detection, and two UART modules: first one used for click and second used for logging.\u003c\/li\u003e\n\u003cli\u003eApplication Task - (Code snippet) Constantly polls the state of GPIO pin used for button press detection. Whenever the press is detected, a predefined message will be sent using RS485 3 click. At the same time, inside the application task, the UART is constantly polled, checking for RS485 3 click activity. Whenever new data on click is received, it will be logged to UART module.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003cpre\u003e\nvoid applicationTask()\n{\n\/\/SENDS DATA\nif (Button( \u0026amp;GPIOA_IDR , 5, 100, 1 ))\n{\nfor (i = 0; i \u0026lt;= 7; i++)\n{\nUART3_Write( SEND_DATA [ i ] );\n}\nUART1_Write_Text(\"Data sent\");\n}\n\n\/\/RECEIVE AND LOG DATA \nif (UART3_Data_Ready())\n{\ntmp = UART3_Read();\nUART1_Write(tmp);\n}\n}\n\u003c\/pre\u003e\n\n\u003cp\u003eThe full application code and ready to use projects can be found on our \u003ca href=\"https:\/\/libstock.mikroe.com\/projects\/view\/2236\/rs485-3-click\"\u003eLibStock\u003c\/a\u003e page.\u003c\/p\u003e\n\n\u003cp\u003eOther mikroE Libraries used in this example:\u003c\/p\u003e\n\n\u003cul\u003e\n\u003cli\u003eUART\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003cp\u003eAdditional notes and information\u003c\/p\u003e\n\n\u003cp\u003eDepending on the development board you are using, you may need \u003ca href=\"https:\/\/shop.mikroe.com\/usb-uart-click\"\u003eUSB UART click\u003c\/a\u003e, \u003ca href=\"https:\/\/shop.mikroe.com\/usb-uart-2-click\"\u003eUSB UART 2 click\u003c\/a\u003eor \u003ca href=\"https:\/\/shop.mikroe.com\/rs232-click\"\u003eRS232 click\u003c\/a\u003e to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika \u003ca href=\"https:\/\/shop.mikroe.com\/compilers\"\u003ecompilers\u003c\/a\u003e, or any other terminal application of your choice, can be used to read the message.\u003c\/p\u003e\n\u003c\/section\u003e\n\n\u003csection id=\"info-downloads\"\u003e\n\u003ch3\u003e\u003cstrong\u003eDownloads\u003c\/strong\u003e\u003c\/h3\u003e\n\u003ca href=\"http:\/\/www.mikroe.com\/mikrobus\/\" target=\"_blank\"\u003e mikroBUS™ Standard specifications \u003c\/a\u003e\n\n\u003cp\u003e\u003ca href=\"https:\/\/download.mikroe.com\/documents\/add-on-boards\/click\/rs485-3\/rs485-3-click-schematic-v101.pdf\"\u003eRS485 3 click schematic\u003c\/a\u003e\u003c\/p\u003e\n\n\u003cp\u003e\u003ca href=\"https:\/\/download.mikroe.com\/documents\/datasheets\/sn65hvd31.pdf\"\u003e SN65HVD31DR datasheet\u003c\/a\u003e\u003c\/p\u003e\n\n\u003cp\u003e\u003ca href=\"https:\/\/libstock.mikroe.com\/projects\/view\/2236\/rs485-3-click\" target=\"_blank\"\u003e LibStock: RS485 3 click library \u003c\/a\u003e\u003c\/p\u003e\n\u003c\/section\u003e","brand":"MikroElektronika","offers":[{"title":"Default Title","offer_id":47400867823899,"sku":"MIKROE-2821","price":2099.0,"currency_code":"INR","in_stock":false}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0676\/3325\/0587\/products\/led-flash-2-click-thickbox_default-1paJg1pUSLPTtx.jpg?v=1701959196","url":"https:\/\/mgsl.in\/products\/mikroe-2821","provider":"MG Super Labs","version":"1.0","type":"link"}