I made something similar except I also had an LDR (Light Dependent Resistor) that would detect daytime and turn the fan on at nightfall and off at sunrise. Built it into an outlet box which I set in the window. Saved me from having to turn the fan off and on. Used a 1 wire sensor for the temperature and just shut it the fan off when it falls below 60 deg F. Controlled with an ATTiny85. Fun.
Hope you do a video showing the transfer to protoboard/veroboard and putting it all in the enclosure. I'm always interested in seeing the process people go through to find a project box of the right size, and making the cutouts to get everything to fit and look reasonable.
I got it to work!!!! So freaking happy :) I have absolutely no coding experience nor do I understand the code written, but it works! i even managed to convert the display to degree celsius, though I am not entirely sure how the code was written so even though I got it to display in degrees I am not sure why I had to do what I did to make it happen :) Thanks Adrian! great project!
Hey Sherman D'Souza, that’s awesome. I want that too :) How did you managed it? Do you have a blueprint and a shopping list? Or did you asked for help somewhere online? Greetings from Germany, Jan
@@janhanse400 I can draw you a wiring diagram of you wish. I used the exact same code as shared by the author. Took me a while to find the right libraries. I used a Arduino Nano and it worked fine. Email me if you need the info.
Another way to get computer fans to run quieter is to specify non-contact magnetic bearings. Magnetic bearings will outlast sleeve bearings and the best ball bearing many times over. Alas, the Noctua NF-A14 fan uses ball bearings.
Hi, you could implement PID temperature control in order to avoid that low speed ,high speed fan variation. Most good temperature controllers use PID instead of bang-bang
I'd love this because I've already been thinking of putting banks of 6 or more of these type of fan in my windows and wanted the option of granular control. I was thinking of just powering the fans with an LED strip supply with a dimmer like those puck lights for the kitchen come with.
I'm a bit sketchy about this project because although I have an arduino I am unable to code for it unless I have pre existing code that is very easy for novices to modify. I kinda need an almost plug and play solution. That's why I thought an LED power supply with the dimmer would be ideal as LEDs and those fans are both PWM and I don't need automatic temperature based control I just need buttons or a knob for speed control and that's about it. I'd love to use things like arduino to do all sorts of cool things but it's not as easy as everyone makes it look, the hardware mock ups are easy enough for me, it's the code I can't do and no one ever has code I can just drop in place.
Or, you could use timer 1 which is 16 bits wide and since 16MHz/25kHz=640 (which is less than 65,536) you could set the prescaler to 1 and have 640 speed steps instead of just 80.
Hi Adrian, thanks for your post on TH-cam. I'm trying to collect the heat between a steanless steel chimney and its enclosure, already tried other Arduino-suggestions combined with a Noctua NF-F12 PWM, but your solution seems to be the proper one for me. Assuming the parts list doesn't change like Joe is asking below a schematic would be very appreciated
Cool idea (sorry). One adaption might be for those who have remote control features in their existing floor and ceiling fans. Though the hardest part to implement might be the reverse engineering the IR signals.
Great code and video how easy would it be to use a two wire fan and control a mosfet using pwm to control the speed off the fan can you have a look at Arduino Temperature Controlled Fan Speed by Jacob Dykstra?
Could you PLEASE give me the specs of the Diode and the Electrolytic Capacitor and tell me where and how to wire them in? I'm still new to this stuff and this is my first project i want to try out :)
Very nice little project there :) For your 3 switches you can also use the command pinMode(X, INPUT_PULLUP) which activated the pull resistor on most digital pin :) I use that to save on resistor and so far the only pin that is not compatible is pin 9 and I have no idea why. Thanks for sharing ^.^
Well I cannot say much about the cleanliness of how it looks because I didnt look closely. but how it actually performs on the user interface and controls the fan it is good. ;-)
Hi Adrian, I am home stucked because of the quarintine, and trying to make a reptile incubator with an arduino, a styrofoam cooler, peltier, heating paths , and fans, but im stucked in the functions, do you have any guide I could use to learn or actually an example ?
Could you please help me with a circuit? I am trying to run a fan using maybe Arduino or some other mc you recommend. And i want the fan to be temperature controlled and also change it speed with respect to temperature.
@@shermandsouza If you can't compile old Arduino code it is unfortunately normal, because Arduino new IDEs are not compatible with older ones. Try to use older IDE like 1.6.5 or even older. The same for libs
@@cbm80amiga Looks like Adrian is using 1.8.0 inhis video... i managed to get past the library error now stuck on "POSITIVE was not declared in this scope".. Does anyone know if there are programmers who can write code for me for a small fee? :)
Hi Adrian, nice work. Simple question from another electronics engineer: What is the brand and type / model number of the Lab power supply that is shown at the beginning of the video? (top left corner, the one with the dual 4 digits green 7-segment displays).
A schematic and parts list would be nice. I see the following parts (as a starting point), 1 - Noctua 4wire Fan (NF-A14 PWM) 1 - 12VDC Power Supply 1 - Adjustable Buck Converter 1 - DHT22 Temperature Sensor 1 - Arduino Pro Mini (Generic OK) 3 - Push Button Switches 1 - I2C LCD Display 2 - Solderless Breadboards 1 - Diode 1 - Electrolytic Capacitor 3 - Resistors Misc - Jumper Wires Misc - 12VDC Connector
ah I missed the info in the video, that the fan is directly connected to the 12V rail. is it possible to implement a boost converter to power the fan and a direct connection to the 5V rail for the electronics?
Looks awesome, but I wouldn't call this a 'room fan'. Its more of a mini 'desk fan'. Not something that I'd ever want to use to cool an entire room... not powerful enough. What I'd like to see, is some sort of voltage booster so that you could power it from an unused USB port. As in, plug it into a 5v USB port, voltage gets boosted to the 12v needed to run the fan and what not, and boom, a semi smart fan that you can use when spending long hours at the computer. And while I can't remember with 100% certainty, but doesn't USB 3.0 up the voltage output alittle as well? And same for USB 3.1? Could implement a little bit of code that interacted with the data lines to determine what generation of USB port its plugged into and determine if it needs to use the booster circuit or if it can just pull from the USB port directly. I coulda sworn that there was something about USB 3.1 being able to do 10+ watts of power, and could go between 5v-16v. But my numbers could be horribly wrong. Its been a while since I've heard anything about it. I just know that they say the spec for 3.1 is enough to power a laptop using a desktop with 3.1
Why not use the arduino to control a normal room fan? Not that hard to do and than you would have a stronger and still less noisy fan. Also i would suggest to write it as a PI controller with a big I-part: Really constant fan-speed.
Controlling a "normal" room fan is not trivial at all - /some/ of them can be controlled with a TRIAC (playing with mains here!) and some of them not at all. Also, you will likely hear the 50/60Hz hum from the motor, even if it's running slowly.
zaprodk ... most roomfans are incredible simple with no active components. You can control those with a triac at its simplest, or with PWM and a Mosfet. some even have universal motors and you can feed them DC. and those that already have a brushless motor are even easier to control.
Did you get the rest of the code to compile? i am having issues with the libraries itself to start :( not familiar with programming so this is pretty hard for me.
@@shermandsouza I'm not sure. I haven't worked with SparkFun. I'm not sure if the syntax is the same. You are using an IDE made by Arduino or one made by Sparkfun because maybe it needs to be told what kind of processor is being used. I'm not very skilled in this stuff. It's just been something I picked up to try for the fun of it.
@@josephkreifelsii6596 I am using Arduino IDE and it recognises the sparkfun boards since it's the same chip. I will try it with an Arduino device and see if I can get it to work.
You know you didn't need an arduino for that, right? I mean, if you didn't want something so sophisticated, an all-analog solution would be more than enough for your purposes.
I made something similar except I also had an LDR (Light Dependent Resistor) that would detect daytime and turn the fan on at nightfall and off at sunrise. Built it into an outlet box which I set in the window. Saved me from having to turn the fan off and on. Used a 1 wire sensor for the temperature and just shut it the fan off when it falls below 60 deg F. Controlled with an ATTiny85. Fun.
Hope you do a video showing the transfer to protoboard/veroboard and putting it all in the enclosure. I'm always interested in seeing the process people go through to find a project box of the right size, and making the cutouts to get everything to fit and look reasonable.
The first 15 seconds described me so perfect.
I got it to work!!!! So freaking happy :) I have absolutely no coding experience nor do I understand the code written, but it works! i even managed to convert the display to degree celsius, though I am not entirely sure how the code was written so even though I got it to display in degrees I am not sure why I had to do what I did to make it happen :) Thanks Adrian! great project!
Hey Sherman D'Souza, that’s awesome. I want that too :) How did you managed it? Do you have a blueprint and a shopping list? Or did you asked for help somewhere online? Greetings from Germany, Jan
@@janhanse400 I can draw you a wiring diagram of you wish. I used the exact same code as shared by the author. Took me a while to find the right libraries. I used a Arduino Nano and it worked fine. Email me if you need the info.
Sherman D'Souza hi, would you have a wiring plan on how to wire this project?
@@BlackArcticElec I do. Give me an email address and I will email it to you
@@shermandsouza I would love to get the wiring plan too, if you don't mind.
good way to automate wood stove fans as well! those controllers usually start at $25 for the sensor with just on/off
Another way to get computer fans to run quieter is to specify non-contact magnetic bearings. Magnetic bearings will outlast sleeve bearings and the best ball bearing many times over. Alas, the Noctua NF-A14 fan uses ball bearings.
Hi, you could implement PID temperature control in order to avoid that low speed ,high speed fan variation. Most good temperature controllers use PID instead of bang-bang
I'd love this because I've already been thinking of putting banks of 6 or more of these type of fan in my windows and wanted the option of granular control.
I was thinking of just powering the fans with an LED strip supply with a dimmer like those puck lights for the kitchen come with.
I'm a bit sketchy about this project because although I have an arduino I am unable to code for it unless I have pre existing code that is very easy for novices to modify.
I kinda need an almost plug and play solution. That's why I thought an LED power supply with the dimmer would be ideal as LEDs and those fans are both PWM and I don't need automatic temperature based control I just need buttons or a knob for speed control and that's about it.
I'd love to use things like arduino to do all sorts of cool things but it's not as easy as everyone makes it look, the hardware mock ups are easy enough for me, it's the code I can't do and no one ever has code I can just drop in place.
Hey nice project! Can u make a "shopping list" with the parts you used? I would appreciate that.
Nice project dude, a massive wall of these fans would be insane and expensive.
You really did a fine job with this. Very nice. Thanks for sharing!!!
Great project!! You can add a Bluetooth modem and control with your phone.
Good job Adrian!! Very interesting project!
Most interesting aspect is storing values in the eeprom, never seen someone do that in an arduino tutorial!
this is a very cool project to do with Arduino
Or, you could use timer 1 which is 16 bits wide and since 16MHz/25kHz=640 (which is less than 65,536) you could set the prescaler to 1 and have 640 speed steps instead of just 80.
Smart.
Nice ! , one of the best Useful project everyday arduino designs
That's cool bro.... no pun intended. Guess you could have used a rotary encoder instead of 3 buttons. Cheers and keep sharing
Can you add option to toggle between Fahrenheit / Degree ?
excellent vid!! Very interesting and well done.
Hi Adrian, thanks for your post on TH-cam.
I'm trying to collect the heat between a steanless steel chimney and its enclosure, already tried other Arduino-suggestions combined with a Noctua NF-F12 PWM, but your solution seems to be the proper one for me.
Assuming the parts list doesn't change like Joe is asking below a schematic would be very appreciated
Cool idea (sorry). One adaption might be for those who have remote control features in their existing floor and ceiling fans. Though the hardest part to implement might be the reverse engineering the IR signals.
Do you have a parts list and a circuit diagram please??
Can I please have a component list and schematic?
Nice project, I like it!
Great code and video how easy would it be to use a two wire fan and control a mosfet using pwm to control the speed off the fan can you have a look at Arduino Temperature Controlled Fan Speed by Jacob Dykstra?
Could you PLEASE give me the specs of the Diode and the Electrolytic Capacitor and tell me where and how to wire them in? I'm still new to this stuff and this is my first project i want to try out :)
So the 12V fan takes a 3.3 or 5V PWM signal? Nice.
Very nice little project there :) For your 3 switches you can also use the command pinMode(X, INPUT_PULLUP) which activated the pull resistor on most digital pin :) I use that to save on resistor and so far the only pin that is not compatible is pin 9 and I have no idea why. Thanks for sharing ^.^
Great code, thank you.
VoeViking yep
very nice video
nice project, I like the implementation of your code.
Well I cannot say much about the cleanliness of how it looks because I didnt look closely. but how it actually performs on the user interface and controls the fan it is good. ;-)
Were can i get the library for "lcd.h"??
Does that arduino not have a Vin pin? I know a buck converter is more efficient but the 5v electronics won't be drawing much power in the first place
Very nice tutorial!
How about RPM Signal From Fan (Tachometric Signal)?
Good video
Hi Adrian, I am home stucked because of the quarintine, and trying to make a reptile incubator with an arduino, a styrofoam cooler, peltier, heating paths , and fans, but im stucked in the functions, do you have any guide I could use to learn or actually an example ?
Hi, would anyone have the circuit layout plan of this great set up?
Could you please help me with a circuit? I am trying to run a fan using maybe Arduino or some other mc you recommend. And i want the fan to be temperature controlled and also change it speed with respect to temperature.
Great project......Question: Do you have a wiring diagram and parts I need for me ?
Hi Adrian Black!
Could you please send me the schematic diagram of the circuit?
would this work with LM35 analog sensor?
Is there any particular reason not to use the Arduino built-in pull-up resistor for the buttons in this project?
purreness i don't think so ... it might just bei personal preference to use active high
Arian, you could use internal pullups for buttons and save environment and 3 resistors :)
could you tell me how this is done? I know nothing about coding and I cant even get his code to work for me.
@@shermandsouza If you can't compile old Arduino code it is unfortunately normal, because Arduino new IDEs are not compatible with older ones. Try to use older IDE like 1.6.5 or even older. The same for libs
Thanks so much for your response..I will try that approach.
@@cbm80amiga Looks like Adrian is using 1.8.0 inhis video... i managed to get past the library error now stuck on "POSITIVE was not declared in this scope".. Does anyone know if there are programmers who can write code for me for a small fee? :)
How many volt fac you use
You have a typo in your "Spd cange" ...
Super project :-) Do you have a wiring diagram ? And which parts you need ?
Hi Adrian, nice work. Simple question from another electronics engineer: What is the brand and type / model number of the Lab power supply that is shown at the beginning of the video? (top left corner, the one with the dual 4 digits green 7-segment displays).
A schematic and parts list would be nice.
I see the following parts (as a starting point),
1 - Noctua 4wire Fan (NF-A14 PWM)
1 - 12VDC Power Supply
1 - Adjustable Buck Converter
1 - DHT22 Temperature Sensor
1 - Arduino Pro Mini (Generic OK)
3 - Push Button Switches
1 - I2C LCD Display
2 - Solderless Breadboards
1 - Diode
1 - Electrolytic Capacitor
3 - Resistors
Misc - Jumper Wires
Misc - 12VDC Connector
yes a parts list would be nice
do you sample the temperature over 1 minute then use the average to control the fan speed?
nice project! :)
Plz circuit diagrm
sooo cooooll man.. i love ur videos.. keep up the good work.. im trying to make videos just as cool....
Nice! I assume the system is not being saved post power off?
When I use an USB-cable for power input, do I need something instead for the voltage regulator? greenhorn here
ah I missed the info in the video, that the fan is directly connected to the 12V rail. is it possible to implement a boost converter to power the fan and a direct connection to the 5V rail for the electronics?
How did you get the LCD backlight to switch on or off. I cant do that with I2C
You can do that with the I2C module (which converts the 16 pin to 4 pin). It has a backlight jumper.
Hi there, great job =)
Im trying to change the Temperature from F to C..
But it doesn´t work..
have you got a tip for me to Edit ?
Thanks
Plz give me code of thus project
Looks awesome, but I wouldn't call this a 'room fan'. Its more of a mini 'desk fan'. Not something that I'd ever want to use to cool an entire room... not powerful enough.
What I'd like to see, is some sort of voltage booster so that you could power it from an unused USB port. As in, plug it into a 5v USB port, voltage gets boosted to the 12v needed to run the fan and what not, and boom, a semi smart fan that you can use when spending long hours at the computer. And while I can't remember with 100% certainty, but doesn't USB 3.0 up the voltage output alittle as well? And same for USB 3.1? Could implement a little bit of code that interacted with the data lines to determine what generation of USB port its plugged into and determine if it needs to use the booster circuit or if it can just pull from the USB port directly. I coulda sworn that there was something about USB 3.1 being able to do 10+ watts of power, and could go between 5v-16v. But my numbers could be horribly wrong. Its been a while since I've heard anything about it. I just know that they say the spec for 3.1 is enough to power a laptop using a desktop with 3.1
Hikari maybe his needs are modest.
Lol right
Why not use the arduino to control a normal room fan?
Not that hard to do and than you would have a stronger and still less noisy fan.
Also i would suggest to write it as a PI controller with a big I-part:
Really constant fan-speed.
Controlling a "normal" room fan is not trivial at all - /some/ of them can be controlled with a TRIAC (playing with mains here!) and some of them not at all. Also, you will likely hear the 50/60Hz hum from the motor, even if it's running slowly.
zaprodk ... most roomfans are incredible simple with no active components. You can control those with a triac at its simplest, or with PWM and a Mosfet.
some even have universal motors and you can feed them DC.
and those that already have a brushless motor are even easier to control.
Please for schematic.
it keeps saying DHT Fail idk why :(
Did you get the rest of the code to compile? i am having issues with the libraries itself to start :( not familiar with programming so this is pretty hard for me.
nice
can i use arduino uno for this project??
Don't see why not
@@josephkreifelsii6596 How much would you have to change the code? I tried using a sparkfun pro micro and the compiler went nuts with errors :(
@@shermandsouza I'm not sure. I haven't worked with SparkFun. I'm not sure if the syntax is the same. You are using an IDE made by Arduino or one made by Sparkfun because maybe it needs to be told what kind of processor is being used. I'm not very skilled in this stuff. It's just been something I picked up to try for the fun of it.
@@josephkreifelsii6596 I am using Arduino IDE and it recognises the sparkfun boards since it's the same chip. I will try it with an Arduino device and see if I can get it to work.
awesome project! Why are consumer products so limited, something with those specs would probably be sold at a ridiculous price..
That a FAN of yours?
Once i clicked on the video i thought that buttons where IC's!! :')
Cold yo u send me te diagram plis
Why is it controlled by the temperature? Fans don't change that, it just moves air.
sure, but you're more likely to want moving air if it's hotter.
Can you help me for my project
You know you didn't need an arduino for that, right? I mean, if you didn't want something so sophisticated, an all-analog solution would be more than enough for your purposes.
Arduinos cost hardly anything if you get copy ones, also I think he wanted to make it really fancy
hey creator can u help me
Umm, not a single reply to ANY question....
No thumbs up for me