rpi-pico-w/upython/thermistor_fan_control.py (source code)

= rpi-pico-w/upython/thermistor_fan_control.py
{file}
{tag=LED blinker}

This example attempts to keep temperature to a fixed point by turning on a fan when a <thermistor> gets too hot.

You can test it easily if you are not in a place that is too hot by holding the <thermistor> with your finger to turn on the fan.

You can use a simple <LED> to represent the fan if you don't have one handy.

In <Ciro's ASCII art circuit diagram notation>:
``
            +----------FAN-----------+
            |                        |
            |                        |
RPI_PICO_W__gnd__gpio26Adc__3.3V@36__gpio2
            |    |          |
            |    |          |
            |    |          |
            |    +-THERMISTOR
            |    |
            |    |
            R_10-+
``