r/esp32
•
u/tuckerPi
•
Dec 17 '25
•
1
I made a thing! ESP32-Desktop-Monitor
ESP32 T-Display Screen Mirroring - Stream Desktop to a 1.14" LCD
I built a screen mirroring system that streams your computer display to an ESP32 T-Display over WiFi. It uses per-pixel updates with frame diffing on the tiny 135x240 display. It's not terribly efficient but it was a fun proof-of-concept.
What It Does
Screen capture from your computer (any monitor)
Streams to ESP32 over WiFi using a custom protocol
Only sends changed pixels (frame diffing) to minimize bandwidth
Overlays a cursor because macs don't include cursors in screen captures
Hardware
TENSTAR T-Display ESP32-D0WD (aliexpress)
1.14" ST7789 LCD (135x240 pixels)
ESP32 with WiFi
Performance
Frame rates: 5-60 FPS depending on content and network (worse with many pixel changes better with few)
Bandwidth: Only sends changed pixels
Latency: <100ms end-to-end on good WiFi
Code & Documentation
Full source code, setup instructions, and documentation available on GitHub: https://github.com/tuckershannon/ESP32-Desktop-Monitor
Perfect for:
Remote monitoring dashboards
Secondary display projects
IoT display applications
Learning ESP32 + WiFi streaming
Built with Python (OpenCV, mss) and Arduino (TFT_eSPI library).
175
u/DIYuntilDawn Dec 17 '25
"What is this, a desktop for ants?"
Bad Zoolander pun, sorry.
But actually a pretty cool concept device. Would be awesome if you could since up more than one screen and share the same desktop over multiple screens, or set it up for stereoscopic mirroring of a single screen. Have 2 of them side by side and make super cheap AR glasses. Or many of them to make very custom size/shape displays.
36
u/tuckerPi Dec 17 '25
Great ideas! AR glasses would be an interesting concept!
5
u/ecirnj Dec 18 '25
Good luck focusing that closely.
6
u/DIYuntilDawn Dec 18 '25
They do make AR glasses that have a built in focal adjustment (like these) but you can probably get something like a jewelers loupe that will magnify an object that is VERY close to the lens while it is also VERY close to your eye.
I have one of these MG21008 jewelry magnifier on my desk right now, I can hold it up to my eye, closer than the lens in my glasses sit (Also works to hold it just in front of my glasses) and hold a object only a few mm away from the lens and not only see if clearly, but it also still magnifies the object.
3
u/ecirnj Dec 18 '25
I reject your well thought out and cited response and instead will imagine OP making the goggles 12” deep. 🤓
1
u/jjbugman2468 Dec 19 '25
The actual problem with those is how much of your field of vision ends up being blocked. The cheapest but functional way would be a periscope-like design, so that a screen display could be put at a 45° angle and two strips of reflective material form the interior walls. This allows you to have a projection equivalent to something a good long distance away, but the only actual thing “in front” of you would be maybe 0.5” of a transparent reflective film to point the final reflection into your eyes. The limiting factor here is the display size, as it directly dictates how large your periscope must be, but a 0.42” LCD off AliExpress could make this pretty compact
1
u/massucatto Dec 18 '25
Is it possible to make a software lenses, i. e. to distort the image that will be displayed like the optical lenses would do?
2
u/PioniSensei Dec 18 '25
I tried just putting my phone closer to my eye. I cannot get it in focus closer than about 10cm. I think you could do it eith dedicated lenses. Still a cool.idea
4
u/kmkota Dec 18 '25
If you want a head start, we have libraries that take IMU data over BLE and render 3dof panels. Currently we use a hardwired GPU so your thing would be a missing piece to the puzzle.
1
u/hoganloaf Dec 18 '25
Oh that's a cool idea - an array of them with delay vectors whose values are monitor position specific, allowing you to make different "wipe shapes" emanating from the monitor at the origin
30
u/Larry_Kenwood Dec 17 '25
How the fuck are you powering that thing if it's not even plugged in
36
u/tuckerPi Dec 17 '25
Small 3.7v lipo battery. The board has a built-in charging circuit
42
u/FridayNightRiot Dec 18 '25
Don't lie, we know it's powered by the tears you shed while coding this
3
6
4
u/faxanidu Dec 17 '25
Dude this is actually useful… just add an extra library and then you can hook and stream specific apps(eg: twitch chat while playing game full screen)
2
u/tuckerPi Dec 17 '25
Definitely doable. Some optimization is still need to make video less choppy but I think it could work
3
2
u/Hefty-Possibility625 Dec 18 '25
I agree! If this could stream a specific app, that'd be INCREDIBLY useful.
Imagine streaming a website app that you can optimize for this viewport and the possibilities are endless from there.
3
u/SolarPis Dec 17 '25
Wait, this actually works? At first I thought it is fake, like a GIF or Videoon the screen. But could you share the code to this Project?
3
u/tuckerPi Dec 17 '25
Its real! Repo in the description if you wanna take a look
3
u/SolarPis Dec 17 '25
Oh bruh sorry, Reddit wasn't showing all the text on mobile first, my bad. But thank you
2
u/PlaneInevitable8700 Dec 17 '25
Sooo cool could you explain to me briefly how you did it or send me the project's github repo link pls ?
17
u/technically_a_nomad Dec 17 '25
Finally, a fully functional ultrawide monitor for my Lego minifigures.
12
u/tribak Dec 17 '25
Will it run DOOM?
11
u/Kealper Dec 18 '25
The ESP32s with 8MB of PSRAM and 16MB of flash can actually run it natively! Someone has ported the original over!
6
6
5
u/plierhead Dec 17 '25
Check out the Lilygo T-Display-S3. It has a lot bigger screen, and is still as cheap as chips.
4
u/alanlclark Dec 18 '25
This is extremely cool! When I see this I think that I would like this with a slightly larger display. It's very cool as is. I have a 2.8" CYD ESP32 and it would be useful to have this as a portable monitor for doing work on my various PIs that are headless servers. Not for long sessions, but for quick shell commands.
4
u/Individual-Ear-3088 Dec 26 '25
u/tuckerPi I took some liberty and modified your protocol and extended your code to work with display width greater than 1Byte! Also, used a different library since the TFT library doesn't support the Waveshare 1.47 LCD edition. I will push the repo in a bit. But overall solid project!
3
u/Individual-Ear-3088 Dec 27 '25
u/tuckerPi here is the updated repo : https://github.com/TinyAstroPsyco/Wireless_Display_Sharing_ESP32_C6
1
u/mojsss Dec 18 '25
Hey ! Do you think this can be used to screen mirror a phone ?
2
3
3
3
4
2
2
u/thulesgold Dec 17 '25
OpenCV has a large library size and dependencies. Were there other reasons why it was chosen over something like Pillow to do image scaling?
I have no preference in either, btw. Just curious.
2
u/Far_Buyer_7281 Dec 18 '25
I do generally dislike opencv, no disrespect for its community.
But re-ordereing rgb to anything else in 2025 should be war crime.1
u/thulesgold Dec 18 '25
Well, this is just a fun experiment by OP. So, I'm assuming there are a lot of examples and references out there for OpenCV (and/or existing forks of OS projects capturing from desktop composition) and saved him time putting something together, which is a rational choice too.
2
2
1
1
1
1
1
1
1
1
1
1
u/Redrum13495867 Dec 18 '25
There is the 0.96 secondary screen from WeAct : But you have to plug it in, is a lot smaller and it messes the main screen settings. Your's way better. How well does it scale with larger screens ?
1
1
1
1
1
1
1
u/mslothy Dec 18 '25
Oh wow, that's awesome! Can you tell us a bit more about the pixel-diffing algo and how that is encoded into updates? I've never thought about how to do such a thing so I'm curious :). Does it do pixels, or regions? Optimizations for when too much differs (at some point, a full frame update is less data than a diff-encoded frame I assume).
1
u/kmkota Dec 18 '25
Have you measured the video latency? I'm wondering if this would work for AR optics to stream video from a stationary device
1
1
1
1
1
1
1
u/Sour-patch-0 Dec 19 '25
That's pretty cool! Have you tried putting a magnifying glass in front of it?
1
1
u/karaxuna Dec 20 '25
Would be cool to optimize frame diffing when scrolling. You would just say: scrolled x pixels up and send new content at the bottom.
1
1
u/Individual-Ear-3088 Dec 27 '25
This version supports the ESP32-C6-LCD1.47" boards from WaveShare and other boards with display resolution upto 65536 px * 65536 px.
Repo : https://github.com/TinyAstroPsyco/Wireless_Display_Sharing_ESP32_C6
1
1
1
u/sharfpang Jan 17 '26
Sounds like an interesting proof of concept. Now to make it actually useful
- not mirror but as next monitor.
- use a reasonably sized screen like CYD.
I'd love to have a CYD as a second monitor, for terminal, toolbox of gimp, etc.
1
u/OkSignificance8287 Feb 25 '26 edited Feb 26 '26
Kann man auch den Size ändern? Mein Display hat 170 x 320.
ESP32 WROOM 32 ESP32 Entwicklungsplatine mit 1.96″ TFT LCD Display 170x320 4MB
1
u/Wild_Ice_8642 Jun 09 '26
How do you get such high framerate? As for me on a 240x320 tft module i get only 1 fps streaming on ESP32 at 2000000 baudrate
0
Dec 18 '25
[deleted]
1
u/ExcellentLab2127 Dec 19 '25
This could be a very cool niche business. Small TV sets and other screens. Hmmmmm




56
u/tuckerPi Dec 17 '25
I made this just for fun. I'm sure there's many ways to do this better but I made it just to see it'd work and to learn along the way :)