Pages: [1]   Go Down
Author Topic: Any Mandelbrot project I can copy for fun?  (Read 6023 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 90
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have a mega 2560 that's been gathering dust so I thought about using it to run a small color LCD module and do mandelbrot.  I searched by Google and the only one I found with detail readily available is a mono only.  I don't know if the code can work in color or not.

Does any of you know if there's a color version floating around?  What I'm hoping to get eventually (by tweaking code if needed) is one that has 2 mode: full auto screensaver-esque that continuously run, pause after completing for xx seconds, then zoom a random 1/4 of LCD and redraw that. And manual mode with either variable resistor or analog joystick to select a section to be zoomed.

Atari Lynx has something (hidden feature in Chip Challenge game) that has the manual mode I like but it's extremely slow running off 20 year old 16 bit CPU (plus a working Lynx system can cost around $50 on eBay).  Arduino Mega is considerably cheaper, more easily found, and can be customized.
Logged

Rapa Nui
Offline Offline
Edison Member
*
Karma: 60
Posts: 2086
Pukao hats cleaning services
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It will be very slow as well. For toying with Mandelbrot you need at least DUE or a much faster mcu.. Zooming with variable resistor - not feasible, I think. A 320x240 LCD to write may take many minutes..

See:


An stm32f4 with FPU on is about 300x faster in the Mandelbrot as the atmega2560..
« Last Edit: June 23, 2013, 12:51:36 pm by pito » Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 90
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hmmm a cheap Due clone starts at around $40 and Arduino brand is around $55 plus I'd have to deal with 5v and 3.3v difference.
Logged

Montreal
Offline Offline
Full Member
***
Karma: 4
Posts: 181
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Mandelbrot is monochromatic by nature, so there's no "color" version per se. The color version you see are just mapping the different monochromatic values to different color palette, e.g. instead of 25% gray being gray, it's say red, and 50% gray instead of gray is blue. So if you have monochromatic version of Mandelbrot already, changing that to color is very simple. Mandelbrot is super simple to implement though. The challenge really is to optimize the code for good performance and deeper in the Manderbrot you zoom, more iterations you must calculate and thus more expensive it gets.
Logged

Leeds, England, (dis)UK
Offline Offline
God Member
*****
Karma: 16
Posts: 708
Quick, chuck it in the bin before the boss finds out...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

http://forum.arduino.cc/index.php?topic=134566.0
Logged

Beginners guide to using the Seeedstudio SIM900 GPRS/GSM Shield

Pages: [1]   Go Up
Jump to: