Hey everyone, I’m new to the world of smart home automation and I’m really excited to share my recent project with you! I just set up my Raspberry Pi and I’m working on automating my fan to switch between different speeds based on temperature. Here’s what I’ve done so far:
I managed to create an automation using a template and the Raspberry Pi to control my 5V fan. It works perfectly, but I want to take it a step further. I came across a suggestion to use the GPIO pins to control the fan speed by switching between 3.3V and 5V. The idea is to use pin 17 for 5V and pin 18 for 3.3V, depending on the temperature. For example, if the temperature is between 55°F and 65°F, the fan would run on 3.3V, and above 65°F, it would switch to 5V. I also want to make sure that only one pin is active at a time to avoid any conflicts in the circuit.
I’ve got the basic setup working, but I’m a bit stuck on how to implement the temperature-based switching. I was wondering if anyone has experience with this kind of project or if there are any resources or scripts that could help me achieve this. I’d love to hear your thoughts or any tips you might have!
On a related note, I found a really helpful guide on how to set up the fan using the GPIO pins, and I thought I’d share it with the community. If anyone is interested in learning more about this project, feel free to check it out!
Looking forward to hearing from you all and learning more about how to make this project even better! ![]()