Friday 20 May 2016

Raspberry pi 1 UART interface pinout

So in order to interface with my raspberry pi 1 with rasbian weezy on UART (Universal asynchronous receiver/transmitter) I use USB to UART 5-Pin CP2102 Module Serial Converter (dx.com ) for 3.8 Euros. I connect the RX cable from the usb module to the GPIO 14 (TXD) and the TX from usb to GPIO 15 (RXD).


On the raspberry modify the following files:
1. /boot/cmdline.txt
and make the text look like this:
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
2. /etc/inittab
#Spawn a getty on Raspberry Pi serial line
T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100

Get putty (here) and set the following:
Connection type: Serial
Com port : You get it from device manager
Speed (baud rate): 115200
Bits: 8
Parity: None
Stop Bits: 1
Flow Control: None

Power on the raspberry and you should see kernel logs + login on the putty window.

No comments:

Post a Comment