Worked Examples

Converters: Worked Examples

Tap an example to open its schematic, copy-and-paste code and parts list.

Breadboard and schematic for a potentiometer connected to an Arduino analogue input
Converters

Using the ADC to read a voltage and display the binary value

Read a potentiometer voltage with the Arduino's ADC and show the raw binary-derived count on the LED matrix.

Open example
Breadboard and schematic for a potentiometer connected to an Arduino analogue input
Converters

Using the ADC To read a voltage and display the voltage level

Convert the ADC count back into a voltage and show it as X.X on the LED matrix.

Open example
Breadboard and schematic for a potentiometer connected to an Arduino analogue input
Converters

Quantisation Explained

Visualise a 3-bit ADC: the bits only change when the voltage overflows the top of a band.

Open example
Arduino UNO R4 wiring diagram for the signal-sampling demonstration
Converters

Sampling and aliasing

See how lowering the sampling rate changes the apparent shape of a sine wave.

Open example