Pennsylvania State University

apt-get install python-pip. pi@raspberrypi:~$ sudo. pip install . pyserial. Go to minterm and copy the python script into the buffer. On the RPi paste this code into a file called mini.py. When you run the mini program you will immediately be prompted to enter the serial port, in our case its /dev/ttyAMA0 ... ................
................