Page 1 of 1

Mandelbrot Set generator

Posted: Sun Apr 10, 2022 6:18 pm
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 85 times
Martin

Re: Mandelbrot Set generator

Posted: Mon Apr 11, 2022 2:11 pm
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 1240 times
mandel1_sim.fcfx
(94.58 KiB) Downloaded 75 times

Re: Mandelbrot Set generator

Posted: Mon Apr 11, 2022 2:22 pm
by mnfisher
Cool - how does performance compare to an ESP32??

Should also be possible to work with a higher resolution?

Martin