Analog Signals

Analog inputs and outputs are important for interacting with many types of sensors and other devices. This guide will explore what an analog signal is and how it differs from digital signals, how to read analog signals, and how to output analog signals with CircuitPython.

Analog Signals

Analog signals are different from digital signals in that they can be any voltage. Remember digital signals are only ever on (high logic level voltage like 3.3V) or off (low logic level voltage like 0V / ground). Analog signals can be a voltage in-between on and off like 1.8V. Analog signals are also continuous values which means they can be an infinite number of different voltages. Think of analog signals like a floating point or fractional number, they can be any in-between value like 1.8V, 1.81V, 1.801V, 1.8001V, 1.80001V and so forth to infinity!

Many devices use analog signals, in particular sensors typically output an analog signal or voltage that varies based on something being sensed like light, heat, humidity, etc. Some examples of sensors with analog outputs:

The are also some devices that can be controlled by analog signals or varying voltages:

And there are some devices that are controlled by a special type of analog-like signal called a pulse-width modulated, or PWM, signal. You’ll learn more about PWM signals at the end of this guide, but some devices that can be driven by a PWM signal are:

Last updated on 2017-08-27 at 02.57.31 PM Published on 2017-09-02 at 02.21.11 PM