Dear friends welcome back. Today we’re going to compare two popular Arduino boards. The Arduino Mega 2560 and the Arduino Due. Which one is faster and which one has lower power consumption? So, it is an Arduino Due vs Arduino Mega Benchmark. Let’s start!

Intro to the Arduino Due vs Arduino Mega Comparison

If you have watched our previous video on the Arduino Due you know the answer. Arduino Due is faster and has higher power consumption. But how much? That’s what we are going to measure today.

The setup of today’s experiment is this: An Arduino Due, an Arduino Mega 2560 running the same sketch. The Newton’s approximation of pi for 100.000 iterations. The time needed to execute this task is then displayed on a Nokia 5110 LCD display. This way we can measure how much faster Arduino Due really is. Watch our Nokia 5110 LCD display tutorials to see more about the display how to connect it and how to display graphics.

 

——————–
WHERE TO BUY
——————–

1. Arduino Due: https://educ8s.tv/part/ArduinoDue

2. Arduino Mega: https://educ8s.tv/part/ArduinoMega

3. Nokia 5110 LCD display: https://educ8s.tv/part/NOKIA5110

4. OLED Doctor: https://educ8s.tv/part/UsbDoctorOLED

5. Powerbank: https://educ8s.tv/part/Powerbank

6. Large Breadboard: https://educ8s.tv/part/LargeBreadboard

7. Wires: https://educ8s.tv/part/Wires

Full disclosure: All of the links above are affiliate links. I get a small percentage of each sale they generate. Thank you for your support!

[adsense]

Arduino Due vs Arduino Mega: Speed

Now, let’s start.I will power both boards from the same USB port. so that they start at the same time. The sketch will display a logo for two seconds and then it will start computing the PI. Let’s do it. As you can see Arduino Due, is much faster. Arduino Mega is still computing. OK. Let’s now see the results. Arduino Due needed 955 milliseconds in order to execute 100.000 iterations and Arduino Mega needed 7273 ms If we make the calculations Arduino Due is 7.6 times faster! Note that bootup time is not counted at that time only the calculation time is measured. let’s do it again without the bootup delay. I will now reset both boards but I will start Arduino Mega one second earlier because it has a slower start-up. So let’s do it. OK. Almost exactly the same. As you can see Arduino Due is much much faster OK let’s do it once more. Impressive!

Arduino Due vs Arduino Mega: Power Consumption

Now let’s see the power consumption. I have now disabled Arduino Mega here and we are going to see the power consumption of Arduino Due. Let’s start. The power consumption is 0.41W. Ok, let’s now see the power consumption of Arduino Mega. 0.37W okay pretty stable. that’s it 0.37W vs 0.41W for Arduino Due. So the power consumption is a little more is a little higher in Arduino Due, but Arduino Due is almost 7.5 times faster!

Now, let’s see the code, the sketch that we are using in order to perform the comparison. The code of the project was originally posted Arduino forums by user securd. I just made some modifications in order to the code to display the results in a Nokia 5110 LCD display. The code is identical for both Arduino Mega and Arduino Due. You can find the code in the description of the video of course. The only thing you have to be careful about is that in order to compile with Arduino Due you have to uncomment this function here. Without it, the sketch won’t work.

——————–
LIBRARIES
——————–

? Nokia 5110 library: http://www.henningkarlsen.com/electronics/library.php?id=47

 

——————–
CODE
——————–

 

 

 

——————–

SUBSCRIBE ON YOUTUBE

——————–

Never miss a video: Subscribe to educ8s.tv