This week class was about Electronic Design, the class content can be found
here.
For this week assignment I am going to make a PCB for my ESP32 Huzzah board for sensors to measure temperature so I can use it to check the performance of the low tech experiments we are making (solar oven and fireless cooker).
We have two types of temperature sensors at the fablab : NTC and RTD. I am going to use a NTC thermistor (Negative Temperature Coefficient Thermistor - they are thermally sensitive resistors and have are decreasing in resistance as temperature increases).
The circuit I want to make should have 2 thermometers and 2 RGB LEDs that will change color depending on the temperature.
- One to measure the temperature inside the solar oven
- The second one to measure the outside temperature
prototype on breadboard
I started to test the termistor wiring on my breadboard with the ESP32 microcontroller. I used a few online tutorials to find out the right wiring.
NTC thermistors need to be wired with a resistor to make a voltage divider. NTC resistance decreases as the temperature rises. The Steinhart-Hart equation enables to use this data to derive temperature.
I used the following library to calculate and display the temperature on my monitor.
Link to the library
I then added some code to change the color of the LED when the temperature is over 20°C. I will use different limits when it will be for the oven but here it was just to try it.
Link to the file with the code