Saltar al contenido

Lesson 19: Thermometer

English

How warm is it?

  • A TMP36 is a small temperature sensor with three legs. Its middle leg gives a voltage that grows with the temperature.
  • The Arduino reads that voltage on A0. In the simulator the knob plays the sensor: turn it up and the room gets warmer.
  • First you turn volts into °C. Then six LEDs show the temperature as a bar, like the red line in a glass thermometer.

Words for this lesson

Word Meaning
temperature how hot or cold something is, in °C
sensor a part that measures something and gives a voltage
float a number with a decimal point, like 24.78
bar a row of lights; more lights = more
constrain keep a number between a lowest and a highest value

Iniciar sesión o crear cuenta

IGCSE, A-Level & AP