
ARPI600 User Manual
2How to control peripherals by Raspberry Pi
2.1 System serial port configuration
1) Enter the terminal of Raspberry Pi, and input:
sudo nano /boot/cmdline.txt
Then, you should modify the following lines:
wc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200
console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
into:
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4
elevator=deadline rootwait
Press the keys Ctrl+X, and select the option Y to save the modification.
2) Input the code:
sudo nano /etc/inittab
And modify the following lines:
#Spawn a getty on Raspberry Pi serial line
T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100
into:
#Spawn a getty on Raspberry Pi serial line
#T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100
Press the keys Ctrl+X, and select the option Y to save the modification.
3) Input the code:
sudo reboot
After completing the modifications described above and restarting the Raspberry
Pi board, the serial debugging function is started up. In this mode, you cannot
enter the terminal of the Pi via the serial port any more, but can control the serial
output by the software (If you want to reset the serial port to the serial debugging
output, please restore the factory settings and restart the Raspberry Pi. Therefore,
it is recommended to backup the Raspbian before making any modification).
2.2 Install relative libraries
1) Copy the library file software/wiringPi.tar.gz into Raspberry Pi (you can perform it
by a U disk), and enter the terminal of Raspberry Pi to input the following code:
sudo tar xvf wiringPi.tar.gz
cd wiringPi/
chmod 777 build
./build
2) After installing the library, input the following code:
gpio -v
www.ekt2.com
Electronics Katrangi Trading