10 votes

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 { ...
Nick Gammon's user avatar
  • 37.6k
2 votes

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 ...
chrisl's user avatar
  • 15.6k
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 ...
Edgar Bonet's user avatar
  • 41.4k

Only top scored, non community-wiki answers of a minimum length are eligible