r/ArduinoProjects • • Oct 18 '26

Showcased Project My CYD project

Photoreal 3D Citroen C3 on a $10 ESP32 Cheap Yellow Display, touch to rotate

I put a near-photoreal, touch-rotatable model of my own car (white 2018 Citroen C3 with a red roof) on an ESP32-2432S028 "Cheap Yellow Display". It isn't real-time 3D. Instead, I pre-rendered 344 frames in Blender Cycles and stored them as JPEGs in the 4 MB flash, with no SD card. Each frame is decoded with JPEGDEC and pushed over DMA at about 24 fps.

Swipe to spin it 360° with inertia

LIGHTS turns the headlights on and off

DOOR turns the car to face you and opens the door

BURNOUT revs the engine with smoke, drives off, and comes back from the other side😌

327 Upvotes

22 comments sorted by

View all comments

1

u/Storm_treize Oct 19 '26

Why not 360 frames,? could converting them into binary be faster?

1

u/Prudent-Mountain-57 Oct 19 '26

Flash space. The spin is 120 frames at 3° steps, and there's a second set of 120 with the headlights on, plus the door and burnout clips. That's already ~3.4 MB of the 4 MB flash. 360 frames per set wouldn't fit without an SD card, and at 3° it already looks smooth when you swipe.

1

u/Storm_treize Oct 19 '26

Thanks for the explanation, and what about using binary files instead of jpegs

2

u/Prudent-Mountain-57 Oct 19 '26

Raw RGB565 would be faster to draw, but it's way too big. One 320x220 frame is 140 KB raw vs ~10 KB as a JPEG, so all 344 frames would need ~48 MB against 4 MB of flash…That works out to about 28 raw frames total. JPEG decoding only costs ~43 ms per frame, which is fine for ~24 fps, so the compression is what makes it possible at all.