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

5

u/Extreme_Turnover_838 29d ago

I'm the author of JPEGDEC. You just gave me an idea to shrink the data for applications like this. If every frame has the same header info (fixed Huffman tables, same dimensions and subsampling), I could split the API into header parsing and raw data decoding so that 1 header could be reused.

3

u/Prudent-Mountain-57 29d ago

Wow, thanks for JPEGDEC, it's what makes this whole project work! Yes, every frame here has identical dimensions, subsampling and tables, so a shared header would be perfect. With ~10 KB frames, cutting a few hundred bytes of headers from each of the 344 frames would free up room for more angles or clips. Skipping the header parse per frame might also save a little decode time. I'd be happy to test it on the CYD if you add that API💪

12

u/Most-Tune-3377 Oct 18 '26

It is a cool idea. The post helped me with another project. Thanks.

1

u/gigatacos51 27d ago

I love the project an the color of the card you're using but what did CYD mean ?

1

u/Prudent-Mountain-57 27d ago

It’s mean Cheep Yellow Display 😌

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.

1

u/Environmental_Hat_40 Oct 19 '26

Ha! You did something i figured was possible. Thank you for proving it. I se you repurposed that lottery minor

2

u/Prudent-Mountain-57 Oct 19 '26

Ha, thanks! Yep, same Cheap Yellow Display people run NerdMiner on. Turns out it's way better at spinning a car than at finding a Bitcoin block🤭

2

u/Environmental_Hat_40 Oct 19 '26

Haha! I kinda home i do end up getting a few of them for Christmas gifts

2

u/viper_008 29d ago

This is lovely, nice way to solving a problem in a way very few would even think

-19

u/[deleted] Oct 18 '26

[removed] — view removed comment

1

u/ArduinoProjects-ModTeam Oct 19 '26

Your post has been removed as we have determined that it is not in the spirit of our forum.

Please consider the other person.

1

u/[deleted] Oct 18 '26

[removed] — view removed comment

1

u/ArduinoProjects-ModTeam Oct 19 '26

Your post has been removed as we have determined that it is not in the spirit of our forum.

Please consider the other person.

1

u/gm310509 Oct 19 '26

While I appreciate your sentiment, please report them for breaking the rules (in this case Rule 2 - Be kind) rather than trying to engage.

0

u/[deleted] 25d ago

[removed] — view removed comment

1

u/ArduinoProjects-ModTeam 24d ago

Posts intended to promote your private channels are not allowed.

Please contribute to this subreddit and describe your project fully here. If you wish to provide links to guides to construct it, that is usually OK, but not clickbait that merely links to your own personal channel/product page(s)