![]() |
FOR THE BEDROOM THERMOSTAT+TUNE BEEPER -
node name BEDRM -----------------------------------------------------------------=------- DS18B20 on GPIO7 one-wire room thermometer code need cleaning - was based on HOTBX code below - only one sensor in use now GPIO6 relay pin as below FOR THE HOTBOX - node name APPLE ---------------------------------------------------=--- DS18B20 thermometers use one-wire and normally use a single GPIO for all needed, ChatGPT gave them each a GPIO - at least you know which is which! DS18B20 on GPIO7 (inside / control sensor for the hotbox) DS18B20 on GPIO5 (for the greenhouse temperature) DS18B20 on GPIO4 (for the outside temperature) GPIO6 connects via a 1Kohm resistor to the gate of a small transistor. The emitter goes to earth and the collector connects to the coil of a 10 amp 240 volt relay. A catching diode is wired across the coil. I now use quality relays and avoid the blue (so called) 10 amp relays on many Chinese project boards. The contacts can fuse into the "on" position. (NB! ChatGPT can suggest a chip GPIO that is not wired to an output terminal pin) |

