Store

Little Bird

$7.63 |
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.
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 wired serial communication standard often used in factories, farms, and buildings where cables may be long or electrically noisy. It matters because it lets this controller connect to industrial sensors, meters, and control equipment over longer distances than typical hobby serial wiring.
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.