Mandelbrot Set generator

Use this section to discuss your embedded Flowcode projects.
Post Reply
mnfisher
Valued Contributor
Posts: 938
http://meble-kuchenne.info.pl
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 104 times
Been thanked: 502 times

Mandelbrot Set generator

Post by mnfisher »

A little weekend project - the world's smallest (probably) Mandelbrot set plotter..

I used an ESP32 with a ST7735 display (any display should work - the only requirement is for a plot x,y function). As an interesting benchmark it might be fun to try some different MCUs?

Here it plots a Mandelbrot set in random colours - clears the WDT and repeats (the scope for zooming is limited with 32bit floats - but with a touch screen would be a nice addition?)

I used my own display code - if you use another display then you just need Iter and Mandelbrot (and MAX_ITERATIONS and colours) (+FeedTheDog to clear the watchdog timer...)
mandel1.fcfx
(90.25 KiB) Downloaded 80 times
Martin

BenR
Matrix Staff
Posts: 1707
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: Mandelbrot Set generator

Post by BenR »

Excellent work there many thanks for sharing.

With a little fiddling and adding the GLCD base component I've got it running nicely in the sim.
SS1.jpg
SS1.jpg (25.32 KiB) Viewed 1219 times
mandel1_sim.fcfx
(94.58 KiB) Downloaded 73 times

mnfisher
Valued Contributor
Posts: 938
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 104 times
Been thanked: 502 times

Re: Mandelbrot Set generator

Post by mnfisher »

Cool - how does performance compare to an ESP32??

Should also be possible to work with a higher resolution?

Martin

Post Reply