PiLCD Setup

From wiki
Jump to: navigation, search

PiLCD

The goal of PiLCD module is provide a convenient way for the user to interact with a headless Raspberry Pi. The PiLCD module consists of a 16x2 LCD display with a rotary encoder switch. Together they provide a way for user to input data and read the results on the display.

One application is for a headless Raspberry Pi with a Wifi dongle to scan, select and connect to nearby Wifi Access Points.

The PiMSO project demonstrates how the PiLCD module can be used to provide a convenient way for the user see the Access Point and URL info of the PiMSO, it will also display current IPV4 address of the Ethernet connection.

PiLCD Setup

1. In addition to wiringPi, you will also need nslookup, which is available in the dnsuitls package.

apt-get install dnsutils

2. Grab and install the PiLCD project from Github

cd /home/Pi 
git clone git://github.com/tkrmnz/PiLCD.git
cd /home/pi/PiLCD

3. Copy the LCDinit scrip to init.d

cp LCDinit.sh /etc/init.d/.
cd /home/pi/wiringPi/examples
make /home/pi/PiLCD/lcd_ip2.c
chmod +x /etc/init.d/LCDinit.sh

4. you can test PiLCD by typing

/home/pi/lcd_ip2

You should be able to see the Wifi AP and URL information and Ethernet IPV4 by spinning the knob.

The LCDinit will execute the lcd_ip2 driver from PiLCD directory. To run the LCDinit.sh on boot, do the following

update-rc.d LCDinit.sh defaults

To remove it from boot

update-rc.d -f LCDinit.sh remove

PiMSO Wifi AP Setup

Jump to wifi AP setup

PiMSO Setup

Back to PiMSO Get Started