Lesson plan

Sensor signal conditioning lesson plan

Advanced, after Sensors and measurement: bridges on long cables, load cells and the HX711, thermocouples, RTDs, offset and gain, anti-alias filters, and a precision scale built two ways.

7 chapters, 7 lessons, about 6 hours, no board. Every lesson runs in the browser, with nothing to install.

The unit

Objectives and materials

By the end, students can

  • Millivolts per volt, lead wires and shunt calibration.
  • The counts behind a gram, and choosing a cell.
  • The cold junction, the curve and a MAX31855.
  • Platinum, four wires and a MAX31865.
  • Zero and span onto an ADC, and the rails that stop you.
  • Nyquist, folding and a two-pole filter before the ADC.
  • A precision scale, analog and on a chip.

Materials for the whole unit

  • Arduino Uno R3
  • Bench power supply x 2
  • Capacitor x 3
  • Function generator
  • Half breadboard
  • LM358 dual op-amp
  • Load cell with HX711
  • Multimeter x 3
  • OP07 precision op-amp
  • Oscilloscope
  • Resistor x 9
  • RTD converter, MAX31865
  • Slide switch
  • Temperature sensor, LM35
  • Thermocouple converter, MAX31855

Every part is already on the simulator’s bench, so there is nothing to buy or hand out. The counts are the most any one lesson uses, if you build it on real breadboards too.

Chapter 1. About 55 min

Wheatstone bridges

Millivolts per volt, lead wires and shunt calibration.

LessonTimeWhat students do
Wheatstone bridges in practiceA strain gauge on the end of a cable: millivolts per volt, a bridge that is not quite linear, lead wires that fake a strain, the three-wire fix, and a shunt resistor that calibrates without a weight.55 min
  1. Run it: balanced
  2. 1000 microstrain
  3. Millivolts per volt
  4. Not quite a straight line
  5. The cable fakes a strain
  6. The three-wire fix
  7. Calibrate with a resistor

Materials

  • Multimeter
  • Resistor x 8
  • Slide switch

Check for understanding

Each student finishes "Wheatstone bridges in practice" on their own, without opening the hints. The simulator checks 7 of its 7 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Calibrate with a resistor".

Chapter 2. About 40 min

Load cells

The counts behind a gram, and choosing a cell.

LessonTimeWhat students do
Load cells and the HX711A load cell is a bridge in a block of aluminum, read by a 24-bit HX711: the counts behind a gram, the wrong cell for the job, why mV/V over capacity is the number that matters, and what happens past the input range.40 min
  1. Run it: the raw counts
  2. Counts per gram
  3. The wrong cell
  4. The number that matters
  5. Past the input range

Materials

  • Arduino Uno R3
  • Half breadboard
  • Load cell with HX711

Check for understanding

Each student finishes "Load cells and the HX711" on their own, without opening the hints. The simulator checks 5 of its 5 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Past the input range".

Chapter 3. About 55 min

Thermocouples

The cold junction, the curve and a MAX31855.

LessonTimeWhat students do
ThermocouplesA type K thermocouple on an OP07 at 10 mV per degree: the cold junction that steals 25 degrees, compensation that tracks the room, the curve that bends at 500 C, and a MAX31855 that does it all in a chip.55 min
  1. Run it: 75 degrees, not 100
  2. Cold-junction compensation
  3. The room warms up
  4. The curve bends
  5. A chip that does it all
  6. Compensation, built in
  7. Up to temperature

Materials

  • Arduino Uno R3
  • Bench power supply x 2
  • Multimeter
  • OP07 precision op-amp
  • Resistor x 2
  • RTD converter, MAX31865
  • Thermocouple converter, MAX31855

Check for understanding

Each student finishes "Thermocouples" on their own, without opening the hints. The simulator checks 7 of its 7 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Up to temperature".

Chapter 4. About 55 min

RTDs

Platinum, four wires and a MAX31865.

LessonTimeWhat students do
RTDs: platinum and four wiresA PT100 fed 1 mA by an LM358: 100 ohms at 0 C and 138.5 at 100 C, two lead wires that add 6.7 degrees, the four-wire measurement that ignores them, self-heating, and a MAX31865 in a chip.55 min
  1. Run it: 0 C
  2. Boiling water
  3. Two wires lie
  4. Four wires tell the truth
  5. More current, more heat
  6. A MAX31865
  7. Boil it

Materials

  • Arduino Uno R3
  • LM358 dual op-amp
  • Multimeter x 2
  • Resistor x 4
  • RTD converter, MAX31865
  • Thermocouple converter, MAX31855

Check for understanding

Each student finishes "RTDs: platinum and four wires" on their own, without opening the hints. The simulator checks 7 of its 7 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Boil it".

Chapter 5. About 50 min

Offset and gain

Zero and span onto an ADC, and the rails that stop you.

LessonTimeWhat students do
Offset and gainAn LM35 mapped onto an ADC by an LM358 difference amp: gain is the span, the reference is the zero, an output that cannot go below its ground, a re-zero and a re-span, and the ceiling of a single supply.50 min
  1. Run it: 25 C is 1.00 V
  2. The top of the range
  3. Below the zero
  4. Re-zero it
  5. Re-span it
  6. The ceiling

Materials

  • LM358 dual op-amp
  • Multimeter x 2
  • Resistor x 4
  • Temperature sensor, LM35

Check for understanding

Each student finishes "Offset and gain" on their own, without opening the hints. The simulator checks 6 of its 6 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "The ceiling".

Chapter 6. About 50 min

Anti-alias filters

Nyquist, folding and a two-pole filter before the ADC.

LessonTimeWhat students do
Anti-alias filtersAn ADC folds anything above half its sample rate back down as a fake low tone. One RC against a two-pole Sallen-Key on an LM358: both -3 dB at 100 Hz, a tenth against a hundredth at 1 kHz, a corner moved, and the wrong capacitors.50 min
  1. Run it: two corners at 100 Hz
  2. Two poles at 1 kHz
  3. One pole at 1 kHz
  4. Predict: 300 Hz
  5. Move the corner
  6. The wrong capacitors

Materials

  • Capacitor x 3
  • Function generator
  • LM358 dual op-amp
  • Multimeter x 3
  • Oscilloscope
  • Resistor x 3

Check for understanding

Each student finishes "Anti-alias filters" on their own, without opening the hints. The simulator checks 6 of its 6 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "The wrong capacitors".

Chapter 7. About 55 min

Boss build

A precision scale, analog and on a chip.

LessonTimeWhat students do
Boss build: a precision scaleA load cell read two ways: an LM358 two-op-amp in-amp at a gain of 201 into a low pass for a 10-bit ADC, and an HX711 beside it. Weigh 2.5 kg on both, trim out a cell's zero error, and re-design the analog channel for a 20 kg cell.55 min
  1. Run it: zero on both
  2. Weigh 2.5 kg, the analog way
  3. Weigh 2.5 kg, the chip way
  4. A zero error
  5. Trim the zero
  6. Make it yours: a 20 kg cell
  7. Your scale sheet

Materials

  • Arduino Uno R3
  • Bench power supply
  • Capacitor
  • Half breadboard
  • LM358 dual op-amp
  • Load cell with HX711
  • Multimeter x 2
  • Resistor x 9

Check for understanding

Each student finishes "Boss build: a precision scale" on their own, without opening the hints. The simulator checks 7 of its 7 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Your scale sheet".

Your class

Teach this unit as a class

Start a class from this course and its 7 lessons are assigned in one go, in order. Students join with a six-character code or printed login cards, and each one’s work comes back to you.

The class tools are free for 30 days for one class of up to 20 students, with no card. The lessons themselves are free either way.