Hello everyone,
Before you proceed to this step, you need to follow the Raspbian Installation.
Setting Up Wi-Pi
There are 2 ways to setup Wi-Pi.
- Graphical Interface
- Using SSH
Using graphical interface
1. Boot up your Raspberry Pi with Raspbian.
2. You will find Wi-Fi Config shortcut on the desktop. Open it.
3. Click on Scan.
4. Select your network SSID.
5. Select authentication method and enter password.
6. Click on Add .
7. Close the network scan.
8. Select your SSID from network and click on connect.
9. Now you are connected to the network and it’s all done.
<html><head><title>Jive SBS</title></head>
<body><font face="arial,helvetica,sans-serif">
<b>Error</b><br><font size="-1">
An general error occurred while processing your request.
</font></font></body></html>
<html><head><title>Jive SBS</title></head>
<body><font face="arial,helvetica,sans-serif">
<b>Error</b><br><font size="-1">
An general error occurred while processing your request.
</font></font></body></html>
Using SSH
For this step you have to connect you Raspberry Pi with the LAN. And you know your Local IP.
1. SSH Raspbian with your user and password.
2. sudo nano /etc/network/interfaces
3. Make Changes in the file to
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
4. Save the Changes by pressing CTRL+O and exit by pressing CTRL+X .
5. sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
6. Make changes in the file to
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="Sumit"
psk="your_auth_key"
proto=WPA
key_mgmt=WPA-PSK
pairwise=TKIP
group=TKIP WEP104 WEP40
auth_alg=OPEN
}
7. Save the Changes by pressing CTRL+O and exit by pressing CTRL+X .
8. Don’t forget to change the “your_auth_key” to your network password.
9. My network is WPA-PSK and encryption is TKIP. You can change it according to your’' network type.
10. Reboot the Raspberry Pi.
<html><head><title>Jive SBS</title></head>
<body><font face="arial,helvetica,sans-serif">
<b>Error</b><br><font size="-1">
An general error occurred while processing your request.
</font></font></body></html>
<html><head><title>Jive SBS</title></head>
<body><font face="arial,helvetica,sans-serif">
<b>Error</b><br><font size="-1">
An general error occurred while processing your request.
</font></font></body></html>
<html><head><title>Jive SBS</title></head>
<body><font face="arial,helvetica,sans-serif">
<b>Error</b><br><font size="-1">
An general error occurred while processing your request.
</font></font></body></html>
<html><head><title>Jive SBS</title></head>
<body><font face="arial,helvetica,sans-serif">
<b>Error</b><br><font size="-1">
An general error occurred while processing your request.
</font></font></body></html>
Setting Up LCD in Pi-Face CAD
Interfacing LCD Display using Pi-Face control and display is too much easy even in hardware and for programming point of view. The Pi-face CAD provide you plug and play feature. Just a few command is needed.
But before setting up LCD of Pi-Face we have to enable the SPI communication. It can be enable by entering the following command in terminal
sudo raspi-config
And in advanced setting you will find SPI option enable SPI and save the changes. Reboot the Raspberry Pi.
Installing the latest Pi-face control and display
Install the latest software by entering the following commands in terminal.
sudo apt-get install python3-pifacecad
To test that everything is setup fine. Enter the following command.
python3 /usr/share/doc/python3-pifacecad/examples/sysinfo.py
Assuming you already installed python3 in your Pi.
Executing the file while booting
Paste the code in /etc/init.d/lcd
### BEGIN INIT INFO
# Provides: LCD – IP address
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Liquid Crystal Display
# Description: IP address
### END INIT INFO
#! /bin/sh
# /etc/init.d/lcd
export HOME
case "$1" in
start)
echo "Starting LCD"
python3 /usr/share/doc/python3-pifacecad/examples/sysinfo.py 2>&1 &
;;
stop)
echo "Stopping LCD"
LCD_PID=`ps auxwww | grep sysinfo.py | head -1 | awk '{print $2}'`
kill -9 $LCD_PID
;;
*)
echo "Usage: /etc/init.d/lcd {start|stop}"
exit 1
;;
Esac
exit 0
Make the script executable by entering the command
sudo chmod +x /etc/init.d/lcd
After this execute the file by entering.
/etc/init.d/lcd start
Make the LCD init script known to the system by using the update-rc.d command.
sudo update-rc.d lcd defaults
This is how I setup my Raspberry Pi to display IP address on LCD so that I easily connect with it through SSH.
You can edit sysinfo.py file update time interval to update the IP on the LCD accordingly your choice.
This one is mine raspberry pi output.
This is how I setup my Wi-Pi and LCD. If you have any problem and query regarding this don’t hesitate to ask. If you have any suggestion’ please comment below.
Regards,
Top Comments