Hacking a PWM PC fan with Arduino
HTML-код
- Опубликовано: 4 окт 2024
- I made this solder fume extractor fan from a spare PC fan I had laying around. It seems to somehow work pretty well, and doubles as a decent desk fan now that summer is finally here in the UK.
This hopefully is a nice and easy project for you to mess around with controlling fans with an Arduino!
Let me know in the comments if you have any ideas of things to make, with spare hardware you have laying around in your "tech box".
🌐 3D printed file links
www.thingivers...
www.thingivers...
www.thingivers...
⚙️ Source code
github.com/Mat...
🎵 Music Attribution
Music: www.bensound.com
Music: www.purple-pla...
🖼️ Image Attribution
Icons made by Freepik from www.flaticon.com/
If you do this with a 12V external supply for the fan, ensure the ground wire on the external power supply (-ve) is also connected to the ground on the Arduino. If not, the PWM will not work correctly. This was not explained in the video; as I see many comments about this problem online, I thought I would mention it in one of the best videos on the subject. Also, some common PC PWM controlled fans can take up to 3A - this will can damage the VIN pin and traces - it is best to bypass this and run the fan directly from an external power supply.
FYI: Superglue + PLA = future failure as the PLA breaks down. :-(
These all are excellent points, thank you 😊 I must admit, electrical engineering is definitely not my area of expertise.
Can I still connect my Arduino to my laptop?
Nice video! This feels like an eternal paradox… you need a device to extract solder fumes, but to make that device, you need to solder some wires together :P
haha exactly! I tried not breathing whilst doing the wiring but that didn't work too well funnily enough
@@akamatchstic it was worth the sacrifice 🤣 I don't think the fumes are as bad as they once were though, but still great to have an extractor when you're doing a lot of soldering
Awesomely creative work. Thanks for the video.
So you saying that you will use a giant arduino in the box only for controlling fan speed?
Why not use smaller chip in the end and arduino only for test of the concept ?
Genial! Muito bem feito, parabéns 👏❤️
Thanks 👍
Very interesting. It's not correct to power a fan from an Arduino directly. You need to split the power between the board and another device without running a risk of damaging the board.
You are right about the power, it’s something I didn’t do correctly in this video - don’t have much experience with circuits yet 😅
can we replace the arduino with a 555 timer which is a lot cheaper
powering anything directly from a control board (arduino, esp, whatever) is wrong. the ports can only deliver a very limited amount of current (I dont remember if it is 40 mA)
It is 40mA max per I/O port for the ATMEGA8U2 however VIN he's using would come straight from the USB port.
Is there anyway to power 6 computer server fans rated at 2.4 amps each and they are 4 pin.
Hi, is the code correct? Compilation error: 'TCCR1A' was not declared in this scope
where should I pin the tachometer?
Is this program ok?
const int pwmPin = 9;
void setup() {
pinMode(pwmPin, OUTPUT);
}
void loop() {
analogWrite(pwmPin, 255); // 255 es el valor máximo para el PWM (100%)
while (true) {
}
}
while(true) {} looks suspect to looop forever.
How many RPM's is at max setting?