Temp sensor activating fan
Posted: Fri Nov 30, 2018 12:59 am
Hi everyone, its good to see so many friendly enthusiasts out here. I am having a real first world issue that I could use some immediate help with. I am currently working on a final project for an IoT class and have hit a hurdle. I've built a soda can solar heater and would like the fan to be activated once the temperature sensor (TMP36) reaches say 75 degrees. After the fan is activated and the temperature sensor is no longer reading at AT LEAST 75 degrees I would like the fan to shut off, until of course the temp sensor reaches 75 degrees again.
Now I've spent hours looking up code and copy and pasting things to no avail. I am very new to this so a lot of the jargon is lost on me and python may as well be Latin. I am super lost and looking for any help that anyone with a lot of patience can help me with. I am using a relay that doesn't seem to be performing its intended purpose. My fan ( a laptop, 2 wire, 5v fan) is receiving power constantly. I can copy and paste the code I'm using but I'm sure someone out there has the code I need. If there is anything that is unclear about my post here please let me know and I'll do my best to explain it better.
Now I've spent hours looking up code and copy and pasting things to no avail. I am very new to this so a lot of the jargon is lost on me and python may as well be Latin. I am super lost and looking for any help that anyone with a lot of patience can help me with. I am using a relay that doesn't seem to be performing its intended purpose. My fan ( a laptop, 2 wire, 5v fan) is receiving power constantly. I can copy and paste the code I'm using but I'm sure someone out there has the code I need. If there is anything that is unclear about my post here please let me know and I'll do my best to explain it better.