AI agents & screen readers: for a machine-readable, text-only catalogue, start at /llms.txt. Products are available as Markdown (/products.md, /products/{handle}.md) and JSON (/products.json, /products/{handle}.json).
Store

Little Bird

$7.85 |
Out of stock
No reviews yet

Description RS485-HAT is a TTL to RS485 converter for M5StickC. Among M5stack products we have 5 items that include TTL to RS485, they are RS485 unit...

Get notified when back in stock

Qty
Estimated Delivery
Arrives
Disclaimer
View Markdown
Secure checkout
Description

RS485-HAT is a TTL to RS485 converter for M5StickC. Among M5stack products we have 5 items that include TTL to RS485, they are RS485 unit, RS485 HAT, PLC, LAN, BASE26 they have different input voltage, vary from 5V - 12V. 

In this RS485-HAT, it consists of a 485 automatic transceiver circuit and a DC-DC buck circuit which can drop an input 12V to 5V. 

RS485 is a standard defining the electrical characteristics of drivers and receivers for use in serial communications systems, widely used in the industrial field. multipoint systems are supported. 

It is used to convert the TTL standard to the RS485 standard. If the outside serial device is RS485 standard, you can attach this hat on top of stickc, therefore, to implement the communication with RS485 device by TTL protocol.

 

Product Features

  • Built-in SP485EEN
  • The built-in automatic transceiver circuit
  • Built-in DC-DC buck circuit
  • AOZ1282CI
  • input DC 5~12 V
  • BandRate up to 115200
  • Program Platform: Arduino, UIFlow(Blockly, Python)

Include

  • 1x RS485 HAT
  • 1x 4 Pin 3.96 Pitch Terminal

Application

  • RS485 multipoint systems
  • Serial communication in industrial field.
Learn

Links

Code

1. Arduino IDE

To get complete code, please click here.

#include <M5StickC.h>  /* This demo is for RS485 Hat uart write and read , AutoSend Hello M5! AutoReceive and diaplay on screen */  void setup() {    M5.begin(true,true,true);   Serial.begin(115200);   // Serial2.begin(unsigned long baud, uint32_t config, int8_t rxPin, int8_t txPin, bool invert)   Serial2.begin(115200, SERIAL_8N1, 26, 0);    Serial.println("RS485");  } void loop() {   Serial2.print("Hello M5!");   if(Serial2.available()) {     char ch = Serial2.read();     M5.Lcd.setTextSize(2);  } } 

Pin Map

M5StickC GPIO0 GPIO26 5V GND HAT ADC TX RX 5V GND

Video

Demo

Jargon buster

Plain-language definitions for the technical terms used above.

ADC
An analogue-to-digital converter reads a changing voltage and turns it into a number the microcontroller can use. It matters when connecting analogue sensors such as light, sound, or variable-resistor sensors.
DC
DC means direct current, where electricity flows in one constant direction, as supplied by batteries, USB ports and many plug-pack power supplies. When a product specifies DC, it runs from a DC supply rather than mains AC, so you need to provide the correct voltage and polarity.
GND
GND is the ground or reference connection (0 V) for a circuit. When connecting two devices together, their grounds must be joined so both agree on what counts as a low or high signal.
IDE
Short for Integrated Development Environment, a program used to write, run and manage code. It matters because some learners prefer a traditional coding workspace instead of a guided notebook-style lesson.
RS485
RS485 is a robust differential serial communication standard often used in factories, farms and buildings where cables may be long or electrically noisy, and it can link many devices on a single pair of wires. When a product lists RS485, it can communicate with industrial sensors, meters and control equipment over longer distances than typical hobby serial wiring.
RX
RX means receive, usually showing data being received by the board. An RX indicator LED can help with troubleshooting USB or serial communication.
TX
TX means transmit, usually showing data being sent from the board. A TX indicator LED can help you see when the board is communicating or uploading code.
Stella
Stella Expert

Ask me anything about this product

Maddy, co-founder of Little Bird

Need help? We're here for you!

Hi, I'm Maddy. My team and I are ready to help with your order or any questions.