Difference between revisions of "Template:13.3inch PiPad C4 Guide"
From Waveshare Wiki
(Created page with "== Write Raspberry Pi OS== *Download the lasted Raspberry Pi OS image from the [https://www.raspberrypi.com/software/operating-systems/ Rasberry Pi website] and write it to an...") |
|||
Line 1: | Line 1: | ||
== Write Raspberry Pi OS== | == Write Raspberry Pi OS== | ||
*Download the lasted Raspberry Pi OS image from the [https://www.raspberrypi.com/software/operating-systems/ Rasberry Pi website] and write it to an empty micro SD card. | *Download the lasted Raspberry Pi OS image from the [https://www.raspberrypi.com/software/operating-systems/ Rasberry Pi website] and write it to an empty micro SD card. | ||
+ | **[[Write Image for Compute Module Boards eMMC version]] | ||
+ | **[[Wrote Image for Compute Module Boards Lite version |Write Image for Compute Module Boards Lite version]] | ||
*Create a new txt file under the BOOT directory of the micro SD card and name it SSH. | *Create a new txt file under the BOOT directory of the micro SD card and name it SSH. | ||
*Modify config.txt file which is located at BOOT directory, add the following lines to config.txt file | *Modify config.txt file which is located at BOOT directory, add the following lines to config.txt file | ||
Line 20: | Line 22: | ||
arecord -l | arecord -l | ||
</pre> | </pre> | ||
− | + | ==USB2.0== | |
− | == | + | To reduce consumption, USB interfaces are disabled in CM4 by default. If you need to use USB ports, please add the following line to config.txt file.<br /> |
− | |||
<pre> | <pre> | ||
− | + | dtoverlay=dwc2,dr_mode=host | |
− | |||
− | |||
− | |||
− | |||
</pre> | </pre> | ||
− | + | Then reboot the CM4. | |
+ | <font color=red> | ||
+ | If you use the newest Bullseye image, the USB2.0 is set to OTG mode by default, and it occurs the error in CM4: | ||
<pre> | <pre> | ||
− | + | config failed, hub doesn't have any ports! (err -19) | |
</pre> | </pre> | ||
− | + | To remove the errors, you can remove the line ''otg_mode=1'' from config.txt file and add the line: | |
− | |||
<pre> | <pre> | ||
− | + | dtoverlay=dwc2,dr_mode=host | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</pre> | </pre> | ||
+ | </font> | ||
== kepp display lighting all the time== | == kepp display lighting all the time== |
Revision as of 02:33, 16 March 2022
Write Raspberry Pi OS
- Download the lasted Raspberry Pi OS image from the Rasberry Pi website and write it to an empty micro SD card.
- Create a new txt file under the BOOT directory of the micro SD card and name it SSH.
- Modify config.txt file which is located at BOOT directory, add the following lines to config.txt file
hdmi_group=2 hdmi_mode=82 hdmi_cvt 1920 1080 60 6 0 0 0
- Save and insert the micro SD card to Raspberry Pi.
- Connect the Magic mirror to network and power on Raspberry Pi.
- After booting, you can access Raspberry Pi via SSH, or directly connect the keyboard and mouse.
Check the USB Audio Card
- Test the sound output device
aplay -l
- Test the sound input device
arecord -l
USB2.0
To reduce consumption, USB interfaces are disabled in CM4 by default. If you need to use USB ports, please add the following line to config.txt file.
dtoverlay=dwc2,dr_mode=host
Then reboot the CM4. If you use the newest Bullseye image, the USB2.0 is set to OTG mode by default, and it occurs the error in CM4:
config failed, hub doesn't have any ports! (err -19)
To remove the errors, you can remove the line otg_mode=1 from config.txt file and add the line:
dtoverlay=dwc2,dr_mode=host
kepp display lighting all the time
- Modify lightdm.conf
sudo nano /etc/lightdm/lightdm.conf
- Find the line "Xserver-command" below [SeatDefaults] section and change it from
#xserver-command=X
to
xserver-command=X -s 0 -dpms
- Then save and reboot
sudo reboot
RS232
To use the RS232 interface, please modify the config.txt file:
sudo nano /boot/config.txt
Add the following line the file and save
dtoverlay=uart3
RS485
To use the RS485, you need to enable the serial port of PI
sudo raspi-config
Choose Interface Option -> Serial -> No -> Yes, then reboot
Keys description
- 1: Open or Close LCD display. If you don't need the LCD for long time, you can use this button to reduce consumption
- 2: Direction button
- 3: "OK" function
- 4: Open menu and "Return" function
Notices
- 1. If the wakeup word is unworkable for you, please log in snowboy website
- https://snowboy.kitt.ai, And add the new wakeup word.
- Click recording icon to record voice and test if the voice model is workable
- Download the model file and copy it to ~/MagicMirror/modules/MMM-VoiceAssistant/pi directory.
- Modify snowboy.sh file
nano snowboy.sh
- Modify the name to the one you download, for English, you need to modify the snowboy.umdl to yours
cd ~/MagicMirror/modules/MMM-VoiceAssistant/pi ~/env/bin/python3 demo.py smart_mirror.umdl snowboy.umdl
- 2. Google Assistant Service can only support 500 request every day.