Week 5
20/10/2025 I connected the heater through Relay Channel 1 (connected to GPIO 25). The 12V supply positive was connected to the COM terminal of the relay, and the normally open (NO) terminal was connected to the positive terminal of the heater. The heater’s negative terminal was connected directly to the 12V ground. This setup ensures that the heater only receives power when the relay is activated. Since water and electricity are involved, I double checked all connections and ensured proper insulation. 22/10/2025 I wrote the first version of automatic temperature control code. The logic was: -If temperature drops below the lower threshold, turn heater ON -If temperature rises above the upper threshold, turn heater OFF Later, I added a cooling fan to Relay Channel 2 (GPIO 26) using the same wiring principle as the heater. While testing, I noticed rapid switching when the temperature was near the threshold. To solve this, I slightly separated the upper and lower limits to avoid consta...