Devices & Components
Arduino Uno Rev3
Resistor 2.21k ohm
USB-A to Mini-USB Cable
Tachometer
Jumper wires (generic)
12v diode
Breadboard (generic)
Darlington High Power Transistor
Software & Tools
Arduino IDE
Project description
Code
The code
arduino
1int tachPin = 9; 2int tachDelay = 10000; 3 4void setup() { 5 pinMode(tachPin, OUTPUT); 6 tone(tachPin, 33); 7 delay(2000); 8 tone(tachPin, 388); 9 delay(2000); 10 tone(tachPin, 33); 11 delay(1000); 12 delay(2000); 13 tone(tachPin, 388); 14 delay(1000); 15 tone(tachPin, 200); 16 delay(1000); 17 tone(tachPin, 300); 18 delay(1000); 19 tone(tachPin, 166); 20 delay(1000); 21 tone(tachPin, 300); 22 delay(1000); 23 tone(tachPin, 233); 24 delay(1000); 25 tone(tachPin, 178); 26 delay(1000); 27 tone(tachPin, 300); 28 delay(500); 29 tone(tachPin, 33); 30 31} 32 33void loop() { 34 //tone(tachPin, 33); // 1000 RPM 35 //delay(tachDelay); 36 //tone(tachPin, 66); // 2000 RPM 37 //delay(tachDelay); 38 //tone(tachPin, 100); // 3000 RPM 39 //delay(tachDelay); 40 //tone(tachPin, 133); // 4000 RPM 41 //delay(tachDelay); 42 //tone(tachPin, 166); // 5000 RPM 43 //delay(tachDelay); 44 //tone(tachPin, 200); // 6000 RPM 45 //delay(tachDelay); 46 //tone(tachPin, 233); // 7000 RPM 47 //delay(tachDelay); 48 //tone(tachPin, 266); // 8000 RPM 49 //delay(tachDelay); 50 //tone(tachPin, 300); // 9000 RPM 51 //delay(tachDelay); 52 //tone(tachPin, 388); // 10000 RPM 53 //delay(tachDelay); 54 55 56 57}
Downloadable files
The schematic
The schematic

The schematic
The schematic

Comments
Only logged in users can leave comments