In today’s video, we’re building a touchscreen smart desk controller from scratch using a Nextion display, an ESP32, and ESPHome.
You’ll see the full process step-by-step: ✅ Designing the UI in the Nextion Editor
✅ Uploading the .TFT file using an FT232 USB-to-Serial adapter
✅ Wiring everything together
✅ Writing the ESPHome code
✅ Flashing the ESP32
✅ Live demo with desk & light controls — all smart-home integrated!
By the end, you’ll have a working touchscreen controller that can control your sit/stand desk, lights, and other Home Assistant devices. Perfect for smart office setups, automations, and DIY lovers!
🙏 Huge thanks to PCBWay for sponsoring this video!
Want to make your own custom PCBs or 3D printed enclosures for projects like this?
Check out PCBWay here ➜ https://www.PCBWay.com
3D Printed Enclosure: https://makerworld.com/en/models/1382549-markwatttech-nextion-display-desk-mount#profileId-1431256
Using my links supports the channel 💙
Full Project and Code on the MWT GitHub:
https://github.com/MarkWattTech/MarkWattTech-Tutorials/tree/main/HOW%20TO%20-%20DIY%20Smart%20Desk%20Controller
3D Printed Basic Mount:
https://makerworld.com/en/models/1382549-markwatttech-nextion-display-desk-mount#profileId-1431256
⌚ TIMESTAMPS
0:00 - Introduction
0:23 - The Touchscreen Controller
0:56 - The Desk I'm using
1:19 - Hardware Requirements
1:55 - Optional Hardware
2:23 - Todays Sponsor (PCBWay)
2:47 - Needed Software
3:22 - The Nextion Editor (UI design and walkthrough)
4:36 - How to flash the Nextion display
6:21 - Setting up the ESP32
9:56 - Adding our ESP to Home Assistant
11:20 - Home Assistant Controls walkthrough
12:15 - Connecting the Display and ESP32
13:52 - Quick run-through of features
14:11 - My spaghetti hiding enclosure
15:05 - Summary and Outro
🛒 Hardware Used (Affiliate Links)
ESP32 Dev Board: https://amzn.to/4cER4tZ
Nextion Display (3.2" Basic): https://amzn.to/3Gf7gps
Nextion Display (Alt 3.2" Link): https://amzn.to/4iZkVzL
Nextion Display (2.4" Basic): https://amzn.to/424bzvi
Flexispot E7Q Desk: https://amzn.to/4ilDzk9
USB to TTL (FT232 - DSD Tech): https://amzn.to/4l0A0lO
Dupont Wires (Male/Female): https://amzn.to/41UTSiZ
Wago Connectors (Optional): https://amzn.to/3Y2zF8d
RJ45 Pinout Board: https://amzn.to/4jkL5gp
SD Card (Optional): https://amzn.to/3EvchK8
3D Printed Enclosure: https://pcbway.com/g/Aa38DS
Using these links helps support the channel — it doesn’t cost you anything extra! 🙌
💻 Software Required
Nextion Editor: https://nextion.tech/nextion-editor/
Home Assistant: https://www.home-assistant.io/
ESPHome: https://esphome.io/
📺 RELATED VIDEOS
Desk Controller Design Challenge:
https://youtu.be/lZh9f4N0Ryw
🔗 Connect With Me!
Discord: https://discord.gg/DAG2yf7Ev3
X (Twitter): https://x.com/MarkWattTech
Instagram: https://www.instagram.com/MarkWattTech/
TikTok: https://www.tiktok.com/@markwatt94
Reddit: https://www.reddit.com/r/MarkWattTech/
Facebook: https://www.facebook.com/MarkWattTech
Facebook Group: https://www.facebook.com/groups/2963936147172102
Mastodon: https://fosstodon.org/@MarkWattTech
🎥 Got a Video Idea?
👉 Suggest it here: https://forms.gle/zYpyd8gJBttYN7J17
🔔 Subscribe for More DIY Tech
Subscribe to MarkWattTech
🙌 Support the Channel
If you found this useful, consider supporting me:
Patreon: https://www.patreon.com/markwatttech
YouTube Member: https://www.youtube.com/channel/UCQRm_z7seHnGsBiWDNEWr6A/join
PayPal: https://www.paypal.com/paypalme/markwatttech
BuyMeACoffee: https://www.buymeacoffee.com/MarkWattTech
Ko-Fi: https://ko-fi.com/markwatttech
Amazon Storefront: https://www.amazon.co.uk/shop/markwatttech
► My Amazon Store:
https://www.amazon.co.uk/shop/markwatttech
🎵 Track Info:
Title: All That
Composer: Benjamin Tissot
Licensed to: MarkWattTech
Available from:
https://www.bensound.com/royalty-free-music/track/all-that-chill-hop
#markwatttech #nextion #esphome #homeassistant #smartdesk #ft232 #touchscreencontroller #esp32projects #nextioneditor #diyautomation