Episode 002 In the Lab with Eric: Measuring the Arduino’s Digital Signals’ Figures of Merit

Summary:

In this episode, we explore the timing of the digitalWrite commands and its important figures of merit using the Digilent Analog Discovery 2 scope.

We find:

  • The rise time is shorter than what we can measure, 10 nsec.
  • The delay() function gives a very accurate delay turn on or turn off time
  • The shortest on or off time we can get is about 4 usec.
  • To turn on faster, we need to use the portB command, which we cover in a future episode.

When we tell another pin to turn on immediately after pin 13, it takes about 4 usec before the other channel will turn on. Again, this is the fastest we can do with the digitalWrite() command.

The Analog Discovery 2 scope is a great tool to explore these very fast timing questions.

Here are links to resources mentioned in this episode:

For details on how to write a sketch for the Arduino and get started, check out my book, Arduinos Without Tears available on www.AddieRosePress.com and on www.amazon.com

Digilent Analog Discovery 2 scope article I wrote for Nuts and Volts

Written by