Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [performance]

The tag has no usage guidance.

0
votes
1answer
165 views

Slow refresh rate on I2C OLED screen

I'm trying to create a small handheld console with 6 buttons and an I2C 0.96" OLED display: https://imgur.com/a/AKiRMWN The directional buttons use the analog pin and different resistors technique to ...
4
votes
3answers
1k views

Why is Serial.Write that slower when writing x+1 characters than when it is writing x characters?

Using Serial.Write() in a time sensitive application. I realize that the number of characters being written not only had an impact on the time spent writing in the buffer, but actually had a bigger ...
-3
votes
2answers
197 views

Why would anyone use Arduino in 2017? [closed]

Sorry for clickbait question but it really bugs me why Arduino is still a thing in the age of ARM based boards like Pine64, Raspberry Pi, Bannana Pi, Whatever Pi etc. I'm more or less aware of ...
7
votes
5answers
1k views

When Raspberry Pi is preferred over Arduino

We are doing some projects in class. One of my friends is doing a weather and humidity station using raspberry Pi with a couple of sensors and LCD. I have a little experience in Arduino. So I asked ...
1
vote
2answers
107 views

for loop reads pots, passes value to PWM pins, can this be in the same for loop?

In the code below I am using a for loop to iterate over analog pins (potentiometers) and pass their value, after being mapped, to PWM enabled analog output pins (currently controlling LED brightness). ...
1
vote
1answer
2k views

Optimizing Arduino File Selection from SD card

the following code will display the files on an SD card in an Arduino and allow the user to open a file of their choosing. Here's the code with a walkthrough of what it does. In the Init state, I ...
1
vote
1answer
244 views

Speedometer slow reaction arduino

I'm trying to make a speedometer, with utilization of interrupt for get number of pulse and some calculation for getting speed, but when compute speed the arduino freeze for some second and i lose ...
-1
votes
1answer
370 views

How to speed up writing a file to a WifiClient?

I'm working with a Realtek Ameba IoT RTL8195 board that's compatible to Arduino. I have a text file on an SD card that I want to send via HTTP over wifi, with the Ameba acting as a server. I ...
0
votes
1answer
177 views

Extrapolate require MCU from Arduino MEGA2560 performance

I am running a control program for an ebike on an Arduino MEGA2560 which uses this MCU: http://www.atmel.com/devices/atmega2560.aspx. Currently, the program loops every 100ms which gives me a sample ...
1
vote
2answers
953 views

Does serial speed affect performance of other tasks?

I have explored Google and the Arduino site and this site and cannot find a mention of this, so my guess is that serial is handled by a separate component to the core processing and so different ...
1
vote
1answer
63 views

Performance tuning PORTB manipulation - mask

I have the following snippet that seems to be taking a total of 6 CPU cycles per invocation. Can I speed this up somehow? x is a byte with the 3 lowest bits set. #define SET_COLOR(x) PORTB = (PORTB ...
4
votes
3answers
1k views

Will unnecessary Serial.print() statements slow down my program?

I have lots of Serial.print() and Serial.println() statements throughout my (rather large) program for debugging when things fail. I've commented out the Serial.begin() statement so I don't slow down ...
1
vote
0answers
875 views

VS1003 MP3 module performance(?) problem

I'm trying to play sound on Arduino Uno with a VS1003 module, using schematics and most of the code from this project and I have almost succeeded, but I've got (I think) a performance problem and I ...
7
votes
2answers
3k views

OOP vs Inline with Arduino

I have been programming for quite a while now but I am new to Arduino and AVR Programming. The main question I have about programming these Micro-controllers is are there major differences in ...
1
vote
1answer
224 views

Help needed understanding Due performance

I'm going to be writing some performance critical code and have started trying to get an understanding of timers and how much "work" the Due CPU can do per second. To help get started with this, I ...
0
votes
1answer
253 views

Comparison of an Arduino's performance?

How does an AVR-based Arduino's CPU performance compare to a vintage PC (Apple II, PC-XT, TRS-80, et.al.)? How many megaflops of number crunching can one get out of an AVR-based Arduino?
1
vote
0answers
24 views

Local variables scope anamoly

I have this simple function that produces 2 float values sum and product from which i calculate another varaible NodePrio. I had the value of NodePrio coming wrong so i decided to put in some console ...
4
votes
1answer
4k views

How much can an Uno be overclocked?

When running the board at room temperature (20 C) without any extra cooling mechanisms added, how much can the Arduino Uno be overclocked? Also, what would I need to change/update to overclock the ...
16
votes
2answers
11k views

Would an infinite loop inside loop() perform faster?

When you're writing a typical sketch, you usually rely on loop() being called repeatedly for as long as the Arduino is running. Moving in and out of the loop() function must introduce a small overhead ...
9
votes
2answers
3k views

Why is int only 2 bytes?

When using C/C++ on other platforms, the int type is typically 4 bytes (or potentially more). However, on Arduino, it's only 2 bytes. Why is it different? Does it affect performance if I always use ...