Remote-controlled RGB mood light
Warm, cool, rainbow or breathing: cycle lighting moods from your sofa.
Shop by category
Shop all componentsWaveshare's 3.5-inch (G) display sits on the Raspberry Pi's GPIO header and has a resistive touch panel. Its wiki gives the driver and overlay setup for current Raspberry Pi OS versions. Once it works as a screen, a small Python (Tkinter) app shows the Pi's status full-screen with two touch buttons.
Fit or remove the display only with the Pi powered off.
Tick anything you already have and the total updates.
Waveshare 3.5-inch resistive touch display (G)
32 GB microSD card for Raspberry Pi OS
Follow the colours: red is power, dark grey is ground, blue is a signal.
Official Raspberry Pi USB-C supply.
panel.pyimport os, socket, tkinter as tk
def cpu_temp():
with open("/sys/class/thermal/thermal_zone0/temp") as f:
return int(f.read()) / 1000
def ip():
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
try:
s.connect(("8.8.8.8", 80)); return s.getsockname()[0]
except OSError:
return "offline"
finally:
s.close()
root = tk.Tk()
root.attributes("-fullscreen", True)
root.configure(bg="black")
info = tk.Label(root, fg="white", bg="black", font=("DejaVu Sans", 18), justify="left")
info.pack(pady=10)
row = tk.Frame(root, bg="black"); row.pack()
tk.Button(row, text="Reboot", font=("DejaVu Sans", 16), command=lambda: os.system("sudo reboot")).pack(side="left", padx=10)
tk.Button(row, text="Shut down", font=("DejaVu Sans", 16), command=lambda: os.system("sudo poweroff")).pack(side="left", padx=10)
def update():
load = os.getloadavg()[0]
info.config(text=f"CPU {cpu_temp():.1f} C\nLoad {load:.2f}\nIP {ip()}")
root.after(2000, update)
update()
root.mainloop()
The overlay is not loaded; recheck the wiki steps for your exact OS version.
Run the calibration again and set the rotation the wiki lists.
Run the panel as the default user, which can use sudo without a password on Raspberry Pi OS.
Check the Waveshare wiki for Pi 5 support for this panel and its overlay.
Yes, open the Home Assistant page in a kiosk browser instead of the Tkinter app.
It uses SPI and some header pins; the wiki lists which ones are free.
4 parts: Waveshare 3.5inch Resistive Touch Display (G) for Raspberry Pi, IPS Panel, 320×480 Resolution, Immersion Gold , Raspberry Pi 4 Model B 2GB RAM Single Board Computer, Official Raspberry Pi 32GB A2 Class Micro SD Card and Official Raspberry Pi 4 USB-C Power Supply – 15.3W. On this page you can tick the parts you already have and add only the rest to your cart.
It is a intermediate project and takes about 2 hours. The build on this page has 6 steps.
No. This page has the complete, tested code (panel.py).
About ₹10,296 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Installing a display overlay from the maker's wiki; Calibrating a resistive touch panel; Writing a full-screen Tkinter app.
Fit or remove the display only with the Pi powered off.
Warm, cool, rainbow or breathing: cycle lighting moods from your sofa.
Press to roll: the pips tumble and slow down before landing on a number.
Wait for the light, hit the button: how many milliseconds can you beat?
A bright 4-digit clock that keeps time through power cuts.
Lessons are free to read. Maker (₹499/month) and Pro add quizzes, worked problems and certificates, paid with your Geekobot account. See plans
Learning project. Check every circuit and the datasheet of each part before you power it up.