Ready, Set, Oscillate! The Fastest Way to Change Arduino Pins
Posted in Tutorials by Bill
18 Aug 2010
There are many ways to change an output pin. The way we know and love is the famous digitalWrite() function. (Spoiler: Want a faster digitalWrite? Download Here!)
But even the Arduino Reference claims that it is not the most efficient. The Arduino functions do a lot of error checking to make sure the pin is configured right and has to map Arduino numbering to actual IO ports. All this cost processor cycles, and time. But how much? This article is not to teach you how to useIO registers, you can read about it on the Arduino Port Manipulation page. This is to cover exactly how inefficient the Arduino functions are.
42 Comments // Read more..
It’s been a while since I posted an update on SAGAR, but here’s the latest.
I wanted her to go faster. My original motors would only do about 1.2 m/s tops. Well, with a little help from a friend, I found new motors that would bring up the top speed to well over 3 m/s. However, they require more current to reach that speed, more then my original controller could handle. So it had to be replaced.
20 Comments // Read more..


