RS232 Connector Expansion Shield for LattePanda Alpha&Delta Wiki - DFRobot

Introduction

Specification

Application

The RS232 interface can be easily used in the Windows environment. (Compatible with Linux environment)

Board Overview

Board Overview

DB9 Pin Definition

2

DB9 male pin number Description
P1 NC
P2 RXD
P3 TXD
P4 NC
P5 GND
P6~9 NC

LattePanda Alpha&Delta pin function description (recommended to refer to LattePanda Alpha official wiki & LattePanda Delta official wiki)

Tutorial

Here is a demonstration that LattePanda Alpha & Delta communicates with Arduino through an expansion board.

Driver Installtion

Note: the driver needs to be installed when using on Windows for the first time. There is no need to install driver in Linux system.

Windows supports the automatic search and installation for FTDI chips. Plug the expansion board into the LattePanda board and wait for a few minutes to complete the installation. (please keep LattePanda connected with network when installing the driver automatically).

Under Windows environment, you can check whether the driver is installed successfully in device manager. After the driver is installed, the COM name will be USB serial port.

Click the link to install manually:

Plug the shield into LattePanda Alpha & Delta

Note: shield and LattePanda

Connection

You need to use the copper pillars and screws in the product package to fix the shield and LattePanda.

Requirements

Connection

  1. Connect the Arduino RS232 expansion board to the Arduino main control board
  2. Connect the LattePanda Alpha&Delta RS232 interface expansion board to the LattePanda Alpha&Delta
  3. Use the RS232 data cable to connect them together, as shown in the picture below:

Sample Code

Burn the following code in Arduino:

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
  }
}

Expected Results

Open the serial monitor on LattePanda, select the COM1 serial port, and set the baud rate to 115200. Send data to Arduino will returned with added 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 Alpha&Delta from DFRobot Store or DFRobot Distributor.

Turn to the Top