3.Basic knowledge of Raspberry Pi --How to set the Wi-Fi?

3.How to set the Wi-Fi?
      Juvtmall ( a company supply PCB PrototypingPCBA service and sell kinds of components, modules and so on) 

I don’t want to use a network cable every time I want to use my computer.

There are two methods to connect computer to Raspberry Pi:
First, you have to connect Raspberry Pi with a network cable.

Method one: use the screen designed for Raspberry Pi, this way could be visible
Connect screen to Raspberry Pi,
1.if you have download Raspbian from my link, just choose corresponding size below and input it into your XShell.

cd LCD-show/                   This must be input
sudo ./LCD35-show                   for 3.5 inch screen (it can also use for 4inch screen)
sudo ./LCD5-show                    for 5inch screen
sudo ./LCD7C-show                   for 7inch screen(1024*600)sudo ./LCD-hdmi             If you need to switch back to the traditional HDMI display
sudo ./LCD28-show           2.8inch
sudo ./LCD32-show           3.2inch
sudo ./LCD397-show          3.97inch
sudo ./LCD43-show           4.3inch
sudo ./LCD7B-show           7inch (800*480)

2.if you download Raspbian from official website, then you have to run command as below:

git clone https://github.com/goodtft/LCD-show.git
chmod -R 755 LCD-show
cd LCD-show/

Then choose the screen you need from above.
Your screen can be work, but the touch function is not very comfortable, for the touch screen haven’t calibrate, input the following command, it can calibrate.

cd LCD-show
sudo dpkg -i -B xserver-xorg-input-evdev_1%3a2.10.3-1_armhf.deb
sudo cp -rf /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
sudo reboot

Wait a few minutes, the system will restart automatically, then you can enjoy your LCD.

3.5inch Touch TFT Screen for Raspberry Pi

5inch Touch TFT Screen for Raspberry Pi (HDMI+ Micro USB)

7inch Touch TFT Screen for Raspberry Pi/Banana Pi/Beagle Bone/Win 7/8/10 XP (1024*720)
At the upright corner, there’s the option of network, click it and choose Wi-Fi, input password, it will remember the account and password. Do not need a network cable any more.
Tip: it’s easy to set Wi-Fi in this way, however, you need to click the screen whenever you start Raspberry Pi. But it’s cool to see the image.

Method two:
Check IP, input the command:

lwconfig

There are three paragraph messages: eth0…………lo……………………..and wlan0
Eth0 means ethernet
Lo means loop
Wlan0 means wireless network

If there’s no Wlan0, input the following command to download a Wi-Fi scale:

sudo apt-get install wirelss-tools wpasupplicant firmware-realtek

Then input

iwlist wlan0 scan   

for scanning the Wi-Fi which Raspberry Pi can search, it’ll show you the detail of all the Wi-Fi he has search for, if don’t need so much information, just input this command:

sudo iwlist wlan0 scan | grep ESSID
Check if there’s your Wi-Fi name
Input:  
wpa_passphrase SSID password             
Tip: SSID is your Wi-Fi’s name and password is password to Wi-Fi, don’t just input “SSID password”
You’ll get your own psk
Copy these final sentences (network=…………psk=………) and paste to ini file, like this:
Input command:  sudo nano /etc/wpa_supplicant/wpa_suppilcant.conf
Copy the sentences behind the sentence shows after command
Ctrl + O     save
Enter       confirm
Ctrl+ X      exist

Finally, input the following command:

sudo /etc/init.d/networking restart
sudo service networking restart
sudo ifdown wlan0
sudo ifup wlan0
wpa_cli status              check the status of link

For checking it did work, input

Ifconfig

There’s waln0 equipment and there’s IP (it means it’s connected), if there’s no respond, just input

sudo reboot

to restart the Raspberry Pi.      
Tip: you need to input the above command, it may complex, but you don’t need to input these commands any more, however, if you have change the name or password of Wi-Fi or you have change to others Wi-Fi, you have to do the same thing as above again.

评论

此博客中的热门博文

5. The design of PCB--design considerations and assembly rules

1. The design of PCB--- brief introduction and design steps

4. The design of PCB-- PCB design related concepts