RS232 Connector Expansion Shield for LattePanda V1.0 Wiki - DFRobot

LattePanda RS232扩展板

Introduction

This industrial-grade RS232 shield from DFRobot is specially designed to expand 1-way RS232 interface(D-Sub, 9Pin, male) for LattePanda V1.0. Adopting MORNSUN RS232 module, the product comes with power isolation and signal isolation, and the onboard DB9 connector (male) allows easy connection with other RS232 devices. Besides that, there is an adapter contained in the package for your convenience. The product employs a stackable connection, which makes it able to be easily fixed onto LattePanda mainboard by copper columns without blocking the heat dissipation area of mainboard. This RS232 Connector Expansion Shield can be safely applied in industrial scenarios.

Specification

尺寸图

Application

RS232 communication scenarios

Board Overview

Board Overview

DB9 PinOut

PinOut

DB9 Pin Number(Male) Description
1 NC
2 RXD
3 TXD
4 NC
5 GND
6~9 NC

For LattePanda V1 Pin Defintion, refer to official Wiki.

Tutorial

This tutorial will demostrate how to make LattePanda V1 communicate with Arduino via the shield.

Connecting

Use the copper columns in the package to fix the shield onto the LattePanda mainboard.

Requirements

Connection Diagram

Connection

Sample Code

void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);
  while(!Serial);
}

void loop() {
  // put your main code here, to run repeatedly:
  if(Serial.available()>0){
    char a;
    a = Serial.read()+1;
    Serial.print(a); //return all the data that received from LP
  }
}

Burn the codes into your Arduino Board.

Expected Results

Open the LattePanda serial Monitor, select COM1, and set baud rate to 115200. Send data to Arduino, then it will return after plus 1.

Result

FAQ

For any questions, advice or cool ideas to share, please visit the DFRobot Forum.

More Documents

DFshopping_car1.png Get RS232 Connector Expansion Shield for LattePanda V1 from DFRobot Store or DFRobot Distributor.

Turn to the Top