Room 1:
- Sensor: PC8
- Light: PB14
- Heater: PC9
Room 2:
- Sensor: PC6
- Light: PB15
- Heater: PB8
Room 3:
- Sensor: PC5
- Heater: PB9
NUCLEO PIN SENSOR PIN
PC8 | PC6 | PC5 <------------------> DQ
+5V <------------------> VDD (+)
GND <------------------> GND (-)
Pull up resistor should be connected between pin VDD and DQ to assure correct work of temperature sensor.
Schematic of correct connections:
NUCLEO PIN LED PIN
PB14 | PB15 <------------------> PWM (+)
GND <------------------> GND (-)
Schematic of correct connections:
NUCLEO PIN HEATER PIN
PC9 | PB8 | PB9 <------------------> GPIO (+)
GND <------------------> GND (-)
An LED diode was used for presentation purposes.
Schematic of correct connections:


