Difference between revisions of "RS232/GPIO Shield for Raspberry Pi V3.0"

From LinkSprite Playgound
Jump to: navigation, search
(Schematics)
(Introduction)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
==Introduction==
+
== Introduction ==
  
 
This is a shield to add a RS232 level shift to the UART of Raspberry Pi. Moreover, it also breakout the rest headers for easy access.
 
This is a shield to add a RS232 level shift to the UART of Raspberry Pi. Moreover, it also breakout the rest headers for easy access.
Line 5: Line 5:
 
It's a new version which compatible with Raspberry Pi B+ .
 
It's a new version which compatible with Raspberry Pi B+ .
  
[[File:RS232 for RpiV3_1.jpg]]
+
[[File:SHD_RPI_RS232GPIOV3 2.jpg|640px]]
  
[[File:RS232 for RpiV3_2.jpg]]
+
[[File:SHD_RPI_RS232GPIOV3 3.jpg|640px]]
  
[[File:RS232 for RpiV3_3.jpg]]
+
[[File:SHD_RPI_RS232GPIOV3 4.jpg|640px]]
 +
 
 +
[[File:SHD_RPI_RS232GPIOV3 7.jpg|640px]]
 +
 
 +
[[File:SHD_RPI_RS232GPIOV3 5.jpg|640px]]
 +
 
 +
[[File:SHD_RPI_RS232GPIOV3 10.jpg|640px]]
 +
 
 +
[[File:SHD_RPI_RS232GPIOV3 12.jpg|640px]]
  
 
== Schematics ==
 
== Schematics ==
Line 15: Line 23:
 
*[https://s3.amazonaws.com/linksprite/Shields/RS232_RPI/RS232_GPIO_shield+V2.PDF RS232_GPIO_shield_schematic]
 
*[https://s3.amazonaws.com/linksprite/Shields/RS232_RPI/RS232_GPIO_shield+V2.PDF RS232_GPIO_shield_schematic]
  
==Usage==
+
== Usage ==
 +
 
 +
Install on RPi2
 +
 
 +
*[[File:RS232 on RPI2 1.jpg]]
 +
*[[File:RS232 on RPI2 2.jpg]]
 +
 
 +
Install on RPiB
 +
*[[File:RS232 on RPIB 1.jpg]]
 +
*[[File:RS232 on RPIB 2.jpg]]
  
 
The UART on Raspberry Pi is on P1 and shown below:
 
The UART on Raspberry Pi is on P1 and shown below:
Line 48: Line 65:
  
 
Save the changes, and reboot. We will get an UART with baud rate of 115200.
 
Save the changes, and reboot. We will get an UART with baud rate of 115200.
 +
 +
== Resources ==
 +
 +
*[http://learn.linksprite.com/raspberry-pi/shield/rs232gpio-shield-for-raspberry-pi-user-manual/ RS232/GPIO Shield for Raspberry Pi user manual]

Latest revision as of 02:27, 24 November 2016

Introduction

This is a shield to add a RS232 level shift to the UART of Raspberry Pi. Moreover, it also breakout the rest headers for easy access.

It's a new version which compatible with Raspberry Pi B+ .

SHD RPI RS232GPIOV3 2.jpg

SHD RPI RS232GPIOV3 3.jpg

SHD RPI RS232GPIOV3 4.jpg

SHD RPI RS232GPIOV3 7.jpg

SHD RPI RS232GPIOV3 5.jpg

SHD RPI RS232GPIOV3 10.jpg

SHD RPI RS232GPIOV3 12.jpg

Schematics

Usage

Install on RPi2

  • RS232 on RPI2 1.jpg
  • RS232 on RPI2 2.jpg

Install on RPiB

  • RS232 on RPIB 1.jpg
  • RS232 on RPIB 2.jpg

The UART on Raspberry Pi is on P1 and shown below:

RPI UART.png

The UART is /dev/ttyAMAO, it defaults to output system log. But if user wants to use this UART to connect to other modules through UART, for example, GPS module, we need to change the configuration.

The detailed steps are as following:

We need to modify two files: /boot/cmdline.txt and /etc/inittab.

Modify /boot/cmdline.txt:

Replace the original content:

dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait

With:

dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait


Modify /etc/inittab:

Comment out the last line of /etc/inittab. To comment out, it simply addess a '#'.


$ sudo vi /etc/inittab

  1. T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100

Save the changes, and reboot. We will get an UART with baud rate of 115200.

Resources