Source: https://mokxi.com/learn/path/data-converters
Updated: 2026-11-20

All paths

# ADCs, DACs and sampling

What a converter really gives you: aliasing, resolution and the LSB, R-2R and PWM DACs, the ADS1115, MCP3008 and MCP4725, and a 16-bit voltmeter that checks itself.

Free 7 lessons 6 h 7 chapters 1,940 XP Electrical · Advanced +250 XP

0 of 7 done

Start the course free Aliasing: when a fast signal looks slow Lesson plan for teachers

What you will build

## 0 projects, built step by step

7 lessons in 7 chapters, about 6 hours on a simulated breadboard. Free, in your browser, every step checked by the simulator.

The map

## Chapter by chapter

Each lesson opens when the one before it is done, and each chapter ends in a project.

Chapter 1

## Aliasing

Sample below twice the signal and it lies.

Open 288 XP

### Aliasing: when a fast signal looks slow

An Uno samples a sine from a function generator at a rate you pick and counts the cycles it sees: right below half the sample rate, wrong above it, with the Nyquist rule and the anti-alias filter that real converters put first.

0 of 6 steps

Start What is in it

4 questions, graded as you go.

Chapter 2

## Resolution and LSB

Codes, steps, bits, references and clipping.

Locked 288 XP

### Resolution and LSB: the smallest step

A bench supply on A0: the code and the volts, one LSB of 4.88 mV, a change too small to see, fewer bits and bigger steps, the 1.1 V reference for finer ones, and what happens past full scale.

0 of 6 steps

4 questions, graded as you go.

Chapter 3

## R-2R DAC

Binary weights from two resistor values, and why it needs a buffer.

Locked 288 XP

### R-2R DAC: bits into volts with two resistor values

Four slide switches drive a 10k and 20k ladder: each bit worth half the one above it, the LSB, full scale one step short of 5 V, a predicted code, and why a ladder needs a buffer.

0 of 6 steps

4 questions, graded as you go.

Chapter 4

## PWM as a DAC

A pin and an RC filter: level, ripple and step.

Locked 288 XP

### PWM as a DAC: a pin and a filter

Pin 9's PWM through a 10k and 10 uF low-pass: the duty sets the voltage, the pin still switches, a smaller capacitor shows the ripple, a predicted level, and the 19.6 mV step of 8-bit PWM.

0 of 6 steps

3 questions, graded as you go.

Chapter 5

## ADS1115 and MCP3008

Sixteen bits and a gain amplifier against ten bits and speed.

Locked 250 XP

### ADS1115 and MCP3008: buying more bits

A 16-bit ADS1115 on I2C and a 10-bit MCP3008 on SPI read the same input: a change only one of them sees, clipping past the range, a programmable gain that makes 0.1 V worth 12,800 counts, and the speed each trades.

0 of 5 steps

4 questions, graded as you go.

Chapter 6

## MCP4725

A 12-bit DAC on I2C, read back and compared with PWM.

Locked 250 XP

### MCP4725: a real DAC on I2C

The gallery's DAC sine: a 12-bit MCP4725 writes a 32-point sine, A0 reads it back, and pin 9 plays the same sine as PWM for comparison on the scope.

0 of 5 steps

3 questions, graded as you go.

Chapter 7

## Boss build

A 0 to 30 V meter with a divider, a self-test and a range you pick.

Locked 288 XP

### Boss: a 16-bit voltmeter

An ADS1115 meter for 0 to 30 V: wire a bussed resistor network as an 8:1 divider, tell the sketch the ratio, check it against an MCP4725 self-test, and pick the range that fits.

0 of 6 steps

4 questions, graded as you go.

Syllabus

## Every lesson in the course

All 7 lessons, in order, each with what it covers. Any of them opens in the editor right away.

Chapter 1

### Aliasing

- Aliasing: when a fast signal looks slow An Uno samples a sine from a function generator at a rate you pick and counts the cycles it sees: right below half the sample rate, wrong above it, with the Nyquist rule and the anti-alias filter that real converters put first.

Chapter 2

### Resolution and LSB

- Resolution and LSB: the smallest step A bench supply on A0: the code and the volts, one LSB of 4.88 mV, a change too small to see, fewer bits and bigger steps, the 1.1 V reference for finer ones, and what happens past full scale.

Chapter 3

### R-2R DAC

- R-2R DAC: bits into volts with two resistor values Four slide switches drive a 10k and 20k ladder: each bit worth half the one above it, the LSB, full scale one step short of 5 V, a predicted code, and why a ladder needs a buffer.

Chapter 4

### PWM as a DAC

- PWM as a DAC: a pin and a filter Pin 9's PWM through a 10k and 10 uF low-pass: the duty sets the voltage, the pin still switches, a smaller capacitor shows the ripple, a predicted level, and the 19.6 mV step of 8-bit PWM.

Chapter 5

### ADS1115 and MCP3008

- ADS1115 and MCP3008: buying more bits A 16-bit ADS1115 on I2C and a 10-bit MCP3008 on SPI read the same input: a change only one of them sees, clipping past the range, a programmable gain that makes 0.1 V worth 12,800 counts, and the speed each trades.

Chapter 6

### MCP4725

- MCP4725: a real DAC on I2C The gallery's DAC sine: a 12-bit MCP4725 writes a 32-point sine, A0 reads it back, and pin 9 plays the same sine as PWM for comparison on the scope.

Chapter 7

### Boss build

- Boss: a 16-bit voltmeter An ADS1115 meter for 0 to 30 V: wire a bussed resistor network as an 8:1 divider, tell the sketch the ratio, check it against an MCP4725 self-test, and pick the range that fits.

Kits

## Build it on your bench too

Every lesson runs in the simulator with nothing to buy. When you want the real thing, these kits have the parts.

Have a kit already?

### Find your kit

Pick the starter kit you own and run every lesson in its manual with the same parts on the same pins.
See every kit

Questions

## About ADCs, DACs and sampling

Is ADCs, DACs and sampling free?

Yes. All 7 lessons of ADCs, DACs and sampling are free and run in your browser, with nothing to install and no parts to buy before you start.

Do I need any parts?

No. Every circuit is built on a simulated breadboard, and the simulator checks each step as you go. When you want to build it for real, the same parts and wiring work on a real bench.

How long does ADCs, DACs and sampling take?

About 6 hours: 7 lessons in 7 chapters, each one a few short steps. Your progress is kept, so you can stop after any lesson and pick up where you left off.

Where do I start?

With "Aliasing: when a fast signal looks slow", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.
