Hackster is hosting Impact Spotlights highlighting smart energy storage. Start streaming on Thursday!Stream Impact Spotlights on Thursday!
tylerpeppy
Published © GPL3+

Arduino Car Tachometer Simulator (NO SIMHUB)

This project will allow you to drive your automotive tachometer independently from your Arduino.

AdvancedFull instructions provided9,733
Arduino Car Tachometer Simulator (NO SIMHUB)

Things used in this project

Hardware components

Breadboard (generic)
Breadboard (generic)
×1
Arduino UNO
Arduino UNO
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Resistor 2.21k ohm
Resistor 2.21k ohm
×1
Darlington High Power Transistor
Darlington High Power Transistor
Tip-120 12v
×1
12v diode
×1
USB-A to Mini-USB Cable
USB-A to Mini-USB Cable
×1
Tachometer
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

The schematic

Code

The code

Arduino
int tachPin = 9;
int tachDelay = 10000;

void setup() {
  pinMode(tachPin, OUTPUT);
  tone(tachPin, 33);
  delay(2000);
  tone(tachPin, 388);
  delay(2000);
  tone(tachPin, 33);
  delay(1000);
  delay(2000);
  tone(tachPin, 388);
  delay(1000);
  tone(tachPin, 200);
  delay(1000);
  tone(tachPin, 300);
  delay(1000);
  tone(tachPin, 166);
  delay(1000);
  tone(tachPin, 300);
  delay(1000);
  tone(tachPin, 233);
  delay(1000);
  tone(tachPin, 178);
  delay(1000);
  tone(tachPin, 300);
  delay(500);
  tone(tachPin, 33);

}

void loop() {
  //tone(tachPin, 33); // 1000 RPM
  //delay(tachDelay);
  //tone(tachPin, 66); // 2000 RPM
  //delay(tachDelay);
  //tone(tachPin, 100); // 3000 RPM
  //delay(tachDelay);
  //tone(tachPin, 133); // 4000 RPM
  //delay(tachDelay);
  //tone(tachPin, 166); // 5000 RPM
  //delay(tachDelay);
  //tone(tachPin, 200); // 6000 RPM
  //delay(tachDelay);
  //tone(tachPin, 233); // 7000 RPM
  //delay(tachDelay);
  //tone(tachPin, 266); // 8000 RPM
  //delay(tachDelay);
  //tone(tachPin, 300); // 9000 RPM
  //delay(tachDelay);
  //tone(tachPin, 388); // 10000 RPM
  //delay(tachDelay);
  


}

Credits

tylerpeppy

tylerpeppy

2 projects • 42 followers
Love Arduino and IoT projects!

Comments