Regulating a fan with DS18B20

so... this is my first arduino project, and I need quite a bit of help, my plan is to control a pc fan that is blowing air through a heatsink connected to a peltier plate (so it cools the air) with a DS18B20 sensor connected to and arduino nano 328p. Whilst I have seen many people controlling them on-off I have never seen them regulate it like an analog signal, I am planning on doing it by turning the fan on for 10ms and then off for 5ms which I have already tested, but would like to get max fan speed when the pc is at 50 o C and above but when It's at 35 o C 50% speed and for it to be proportional to the temp reading, for ex: 42.5 o C would be 75% but since I am pretty new to arduino I can't seem to wrap my head around how the dallas temperature library works. That would be all. Thanks

Hello,
does the pc fan has a PWM input?

nope, just pos and neg

Get a fan that has proper PWM control.

Have you viewed this ?

Thanks for the heads up, I'll surely get a 3 pin fan instead of my 2 pin one

You want a 4-pin one for PWM control. The 3rd wire is a tachometer signal to measure the fan's speed.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.