Go Down

Topic: Writing a program for a 5 volt fan using Arduino (Read 1 time) previous topic - next topic

nella400

How do you write a code for a 5 volt fan using Arduino? I need the fan to rotate a certain speed according to what my temperature sensor (LM35) reads. If you have any suggestions I would really appreciate it if you could share them with me.
Thank You

PaulS

Quote
How do you write a code ... using Arduino?

Using any text editor. The harder part is getting the hardware to work with the Arduino. A 5V fan likely draws more current than an Arduino pin can supply. So, you need an alternate power source, and a transistor to turn the power source on and off.

Quote
I need the fan to rotate a certain speed

What speed?

Quote
according to what my temperature sensor (LM35) reads.

Your temperature sensor does not read anything. You have to read the temperature sensor.

Quote
If you have any suggestions I would really appreciate it if you could share them with me.

I suggest you get started writing some code.
The art of getting good answers lies in asking good questions.

Go Up