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

From LinkSprite Playgound
Jump to: navigation, search
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[File:RPI RS232 1.jpg | 400px]]
+
== Introduction ==
 
 
==Description==
 
  
 
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.
  
+
[[File:RS323 for Rpi.jpg]]
  
==Tutorial==
+
== Schematics ==
 +
*[https://s3.amazonaws.com/linksprite/Shields/RS232_RPI/RS232_GPIO_shield.pdf Schematics ]
  
+
== Usage ==
  
 
The UART on Raspberry Pi is on P1 and shown below:
 
The UART on Raspberry Pi is on P1 and shown below:
 
 
 
  
 
[[File:RPI UART.png]]
 
[[File: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 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.
Line 47: Line 42:
 
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.
  
== Schematics ==
+
== Resources ==
*[https://s3.amazonaws.com/linksprite/Shields/RS232_RPI/RS232_GPIO_shield.pdf Schematics ]
+
 
 +
*[http://learn.linksprite.com/raspberry-pi/shield/rs232gpio-shield-for-raspberry-pi-user-manual/ RS232/GPIO Shield for Raspberry Pi user manual]
 +
 
 +
== How to buy ==
 +
Here to buy RS232/GPIO Shield for Raspberry Pi [http://store.linksprite.com/rs232-gpio-shield-for-raspberry-pi/ store]

Latest revision as of 01:10, 6 January 2015

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.

RS323 for Rpi.jpg

Schematics

Usage

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

How to buy

Here to buy RS232/GPIO Shield for Raspberry Pi store