10
votes
Accepted
Arduino Nano is performing really slowly, even though the calculations are simple and there are no delays
I put in some timing into your code. As a tip for you and others who may want to time code, here is a simple way of doing that ...
Timer class
Define a timer class as follows:
class timer
{
...
2
votes
Accepted
Confusing stepper reaction to increase in delayMicroseconds()
With dt = 500 you get one step per millisecond. This is probably too fast for the motor/driver combination. When the driver tries to execute another step, while the previous is not fully executed by ...
1
vote
Using Internal Timer Interrupt to Read Analog Sensor
First, read Nick Gammon's answer: all his points are perfectly valid. He
notes that the serial prints can be quite slow. And indeed, as I counted
the characters, I find that the prints should take at ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
arduino-nano × 1287arduino-uno × 174
serial × 102
power × 77
arduino-ide × 70
sensors × 65
programming × 62
i2c × 62
led × 50
esp8266 × 45
arduino-mega × 41
bluetooth × 40
usb × 39
nrf24l01+ × 39
spi × 36
c++ × 31
atmega328 × 30
servo × 29
motor × 28
interrupt × 28
softwareserial × 28
battery × 26
lcd × 25
hc-05 × 25
pwm × 24