MAKER: InnovateAsterisk / Translated by: Fun Endless
Features: Main chip: Raspberry Pi 4B+ (4GB RAM). Display: 7-inch LCD screen (with touch). Power: PiJuice UPS (with 5000 mAmp battery). Camera: 1080p camera (front). Sound and speaker: sound card, capable of powering two speakers and two microphones, with an audio headphone jack. Accelerometer: gyroscope/accelerometer, controlled via Python, can adjust the screen orientation. Cooling: fan connected to fan speed controller, controlled via Python. USB: branching USB. Buttons: power button and volume up/down joystick. LED indicators: charging display and redirecting power and activity LED lights on the case. Back panel: bamboo back panel with laser-engraved patterns.
Project details:
https://github.com/InnovateAsterisk/Raspberry-Pi-Tablet
Materials List
Raspberry Pi 4B+/3B+ × 17-inch Raspberry Pi LCD screen (with touch) × 1 PiJuice UPS × 1 PiSupply 5000mAmp battery × 1 Raspberry Pi 1080p camera × 1 Waveshare audio HAT (sound card) × 1 speakers (8 ohm, 1W) × 2 MPU-6050 accelerometer × 1 gyroscope × 1 HW-517 PWM fan speed controller × 130mm x 30mm x 7mm fan × 1 28G SD card × 1 buttons × 3 USB 2.0 × 1 colored wires × several 18AWG cables × several 3MM wood × several
Preparation Work
Before starting, we need to make some modifications to the purchased components. Remove larger parts (such as the screw box and USB box) from the PCB board; later I will solder wires to the board.
1. Raspberry Pi: Remove the USB module and network module (do not unsolder, use a cutter to remove the metal casing and cut off the plastic). According to the wiring diagram, remove all GPIO pins except the top six.
2. LCD screen: Remove the USB module from the PCB board, then remove the two 12mm pins from the back.
3. PiJuice: Remove the transparent plastic battery compartment. Remove the black plastic insulator from the GPIO pins, then cut the GPIO, leaving only the top six pins (three on the right, three on the left).
4. HW-517: Remove the screw block (unsolder).
5. WM8960: Remove the black plastic insulator from the GPIO, speaker wire block, and screws, then cut the GPIO according to the wiring diagram.
6. Fan: Remove the heatsink.
3D Printing
All 3D files can be downloaded from the project file repository. https://make.quwj.com/project/218
Also available on Thingiverse. https://www.thingiverse.com/thing:4051520
1. Use glue to bond each layer together. Each layer should be neatly placed on top of each other. The first and second layers have locks to help align the layers.
2. Remove the plastic nut on the PiJuice, then glue it into the space provided in the second layer. Next, sanding can begin.
3. Use 100 grit sandpaper to smooth all layer lines.
4. Use 400-800 grit sandpaper to smooth the outer surface of the case.
5. Use a metal polish like Brasso to give the plastic a perfect finish.
6. Finally, spray paint the case black.
Wiring
Connect all components according to the circuit diagram, using corresponding colored wires for each component. Once completed, place the board into the case and connect the wires together.
Making the Back of the Tablet
1. Connect the laser to the printer, using the fan speed controller’s PWM as the laser power controller.
2. When the fan is full, the laser is full. If the fan shows 10%, the laser only lightly burns the surface of the wood. I can engrave the pattern I need on the surface of the wood.
3. The G-code I used sets the height of the laser to 50mm, so please set the laser focus correctly to 50mm.
4. The size of the wood panel is 112mm x 230mm, and you need to sand the wood panel to fit the third layer.
You can also design according to your needs, then transfer the design scheme to http://nebarnix.com/img2gco/
For specific information about the wood panel, please download from the project file repository. https://make.quwj.com/project/218
Installing Software
1. Install the Raspbian operating system. https://www.raspberrypi.org/
2. Unzip the downloaded file to the desktop, then use Etcher, https://www.balena.io/etcher/ to flash the .img file to the SD card.
3. Remove the SD card from the computer, then insert it into the SD card slot of the Raspberry Pi. Press and hold the power button on the side of the case for two seconds to start the tablet.
4. On the first boot, it will automatically resize the partition to fill the SD card. Later, it will restart, and you can see the welcome interface in Raspbian OS.
5. Click next, click next again, you can temporarily skip the password setting, and close the option for the black border.
6. Choose the wireless network in the router, then enter the password. Insert a USB keyboard, as there is no keyboard on the screen.
7. Skip the update on the next screen (do it later).
Setting Up the Tablet
After installation, we will do some settings to allow remote access to the tablet.
1. Click the Raspberry Pi icon (top left), go to Preferences, then Raspberry Pi Configuration, click the Interfaces tab, enable SSH and camera, I2C and SPI, click OK and restart.
2. Other tasks can be done in the remote terminal on the computer. Use Putty on Windows, Terminal on Mac, and log in to the Raspberry Pi tablet as follows:
ssh [email protected]
The default password is raspberry, then execute the following commands:
sudo su
apt-get update
git clone https://github.com/waveshare/WM8960-Audio-HAT
cd WM8960-Audio-HAT
./install.sh
reboot
After rebooting, log in again, and the Raspberry Pi stays
sudo nano /boot/config.txt
In nano, make the following changes: Find #hdmi_drive=2 remove the # (comment symbol) in front, change the value behind to 1. Find dtparam=audio=on at the beginning of this line add #, comment out this line. At the end of the file, add a line with the content hdmi_ignore_edid_audio=1.
Ctrl+s (save) Ctrl+x (exit editor)
sudo reboot
Restart again, log in again and execute the following:
sudo su
apt-get install libasound-dev
python -m pip install --upgrade pip setuptools wheel
pip install pyalsaaudio
exit
Now you can return as the user of Raspberry Pi and get the project from GitHub
git clone https://github.com/InnovateAsterisk/Raspberry-Pi-Tablet.git
Now, you also need to build three services: screen rotation, volume up and down, and fan on and off.
sudo nano /lib/systemd/system/PiTabAudio.service
Content is as follows:
[Unit]
Description=Pi Tablet Audio Service
After=multi-user.target
[email protected]
[Service]
Type=simple
ExecStart=/usr/bin/python /home/pi/Raspberry-Pi-Tablet/Services/audio.py
StandardInput=tty-force
[Install]
WantedBy=multi-user.target
Run the command:
sudo systemctl daemon-reload
sudo systemctl enable PiTabAudio.service
sudo systemctl start PiTabAudio.service
sudo systemctl status PiTabAudio.service
sudo nano /lib/systemd/system/PiTabScreen.service
Content is as follows:
[Unit]
Description=Pi Tablet Screen Service
After=multi-user.target
[email protected]
[Service]
User=pi
Group=pi
Type=simple
ExecStart=/usr/bin/python /home/pi/Raspberry-Pi-Tablet/Services/screen.py
StandardInput=tty-force
[Install]
WantedBy=multi-user.target
Run the command:
sudo systemctl daemon-reload
sudo systemctl enable PiTabScreen.service
sudo systemctl start PiTabScreen.service
sudo systemctl status PiTabScreen.service
sudo nano /lib/systemd/system/PiTabFan.service
Content is as follows:
[Unit]
Description=Pi Tablet Fan Service
After=multi-user.target
[email protected]
[Service]
Type=simple
ExecStart=/usr/bin/python /home/pi/Raspberry-Pi-Tablet/Services/fan.py
StandardInput=tty-force
[Install]
WantedBy=multi-user.target
Run the command:
sudo systemctl daemon-reload
sudo systemctl enable PiTabFan.service
sudo systemctl start PiTabFan.service
sudo systemctl status PiTabFan.service
sudo reboot
Now, you can install tools and services for PiJuice:
sudo apt-get install pijuice-gui
Completion
Now all work is completed, you can start testing.

DIY Simple Automatic Induction Hand Sanitizer
IO Watch: Programmable Watch Made with Arduino UNO
Samytronix Pi: DIY Desktop Computer with Raspberry Pi
PIKOCUBE: Programmable Dice with LED, Gyroscope, WiFi Control
