Unsigned long duration // time duration between tachometer pulses Int sensorValue // variable to store the value coming from the sensor Int sensorPin = A2 // analog input 0 for the potentiometer Int fanPin = 8 // fan drive connected to digital pin 11 Int tachPin = 6 // fan tachometer connected to digital pin 8 complete set of data over the serial port. If this is defined it prints out the FPS that we can send a Running a real-time graph under Processing software. Setpoint for speed is read from a potentiometer. This sketch use PID controller to control PC fan speed and display result on a LCD. Not trying to hack the thread!! I am just pulling out my hair! I have hooked up the fan as per std and I can't get the Arduino to control the speed.
0 Comments
Leave a Reply. |