Calibrating sensors serially

In Chapter 6, Analog Inputs to Feel between All and Nothing, I promised you that I'd show you how we can use a serial communication to calibrate the analog sensors you could connect to your projects, in particular in the ambient light meter and the motor speed control projects.

The time has now come to revisit these projects and finally unveil how we got the correct output range for the mapping we made in these projects.

If you remember, we used the following circuit for the ambient light meter as shown in the following image:

Calibrating sensors serially

Ambient light meter circuit schematic

In the sketch, we had to read the photocell value and map ...

Get Arduino Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.