Arduino Due vs Arduino Mega 2560 Pi Benchmark DIY project from banggood.com

preview_player
Показать описание
Arduino Due vs Arduino Mega 2560 Pi Benchmark

In this video we compare Arduino Due and Arduino Mega 2560 R3. We want to measure how much faster the 32bit Arduino Due is. In order to do this, we use a sketch that implements an algorithm to calculate π. It is the Newton approximantion algorithm to calculate π. We run this algorithm to Arduino and compare the time needed to execute 100.000 iterations of the algorithm.

Want to learn to code?

Рекомендации по теме
Комментарии
Автор

Actually, in this benchmark, Due uses more instantaneous power but less total energy than Mega, because Due is ~7.615x faster than Mega, and the Mega, therefore, uses ~6.87x more energy than Due.

prajaybasu
Автор

ps.: the time for an UNO was 21.7 sec. same sketch.

volkerblock
Автор

Great!
We want to buy a fast arduino board. Arduino DUE is retired and Arduino Mega 2560 not... So I thought Mega 2560 is probably a best choice but your video show me the opposite!

Thanks

pdoconcept
Автор

Excelente. Muchas gracias, justamente estaba buscando una comparación como la que hiciste

omarmartin
Автор

good video. I made another measurement: computation of position of moon and sun, 1000 times. TIme for due: 4.1 sec, for 2560 12.9 sec. This is a factor of 3.15 (many, many trigonometric formulas, many doubles)

volkerblock
Автор

You cant compare it this way only. there are many differences in the way things work. f.ex.modulus works muuch more faster on arm that on avr per mhz of clock speed.

Strawberrymaker
Автор

The voltage is different, one is 4.1V and 4.7V for the other test.
If the regulator is lineal the power measurement is not valid.

RDCST
Автор

I have a question, (doesn't refer to this video) are all shields of arduino uno compatible with arduino mega?

xxMikegrinxx
Автор

Good video,
BUT!
If we now place a DUE on a RAMPS 1.4 board
Would a 3D printer work better with it?
(I ask this because I shall than immediately order a DUE for my 3D printer!)

Friendly greetings from The Netherlands!
Rob.

radiorob
Автор

ps the UNO had other interrupts, so the execution time was longer then for the 2560

volkerblock
Автор

Yes but speed is only one small factor, especially boot speed, what about capabilities? Do a video on that.

Avadon
Автор

Can I use all the sensors from the mega and r3 uno on the faster Arduino Due ?

gamestv
Автор

Hi Nick, I tried duplicating your project but keep coming up with the compile error "undefined reference to pi", which I am presuming results from me not having the contents of what appears to be the second tab "pi(??) - can't read it properly in your video"? So how do I obtain the pi array data used in your ide and how do I create the second tab and install this data in it? Greatly appreciate your help in this regard - unfortunately arduino coding/programming is still a big mystery for me! Keep up the great work and Seasons Greetings for you and family. Cheers, Ian

ozgemmo
Автор

greetings, your videos are great, I hope I can sorting the conflict that I have with the drivers of the Arduino Mega 2560 is a clone but not detected and windows (7.8) or Linux, only mac osx but when I reboot the computer has trouble detect it. thanks

ottikam
Автор

Why do they calculate π as 3.1416059 and not 3.14159265?

AgeingBoyPsychic
Автор

This was a really cool and interesting video

newsogn
Автор

what are you talking about ? Of course arduino DUE is faster it has a 32 bit ARM cpu VS 8 bit cpu of Mega much more RAM for the stack and heap ....need to make a test ?

walterp
Автор

Thank you so much for your video. I was been asking myself what's a difference between them, and it's pretty good tell - tell videos for idiots like me to see a real difference between them.

pashko
Автор

3.14159 This is the PI I know. I would like to know what causes this miscalculation...

sewminadilshan
Автор

I rewrote your code in C# and ran on my Core i5-6200U PC and it was 0.5 ms :)

pomegranatechannel