What if you need to control the ambient air temperature?
A popular chip to measure temperature is TMP36 thermometer. XOD has a node
thermometer-tmp36 for this IC in
xod/common-hardware. It outputs the temperature in degrees Celsius.
Showing static text on the LCD is boring. So let’s make a smarter device and show the temperature on the LCD.
Add a thermometer to your circuit as shown.
Ensure the correct
PORT for the
Upload your patch.
Now you have a portable thermometer.
You can convert Celsius to Fahrenheit using
Moreover, you can add a
concat node and show the temperature on the display like “22C” instead of a plain number. See
210-string-formatting for more details.