PIC + 555, variable square wave pulse for tachometer

Status
Not open for further replies.

shsn

Junior Member level 3
Joined
Nov 28, 2012
Messages
26
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,523
I've done some readings on how tachometers (as in automobile tachometers used to measure engine RPM) works. Apparently modern tachometers drive the needle from the signal received from its signal wire; which is a series of square wave pulses. If I'm not mistaken the frequency determines what RPM the engine is running. So as a holiday project I want to build a circuit/design that uses PIC (USB-compatible so it can be connected to a computer) to operate a tachometer.

It seems the best way to get started is using 555 timer to generate the required square wave signal. But I do not know how to 'vary' the frequency of 555 timer using a PIC, is this even possible? or can a specific model of PIC can do all these all in one?

Regards.
 

There is really no need to incorporate a 555 timer into the design.

Most microcontrollers, including PICs, can easily generate a pulse train or PWM and most tachometer designs do not require such signal to be an effective design.

Typically tachometer designs utilize an IR sensor coupled by an IR source with the signal from the sensor fed to Timer operating in Capture Mode.

Take a look at the CCP module in your PICs datasheet.

The following are examples of PIC based simple tachometer designs:

RevMaster - A Simple Tachometer



Build A Digital Tachometer/RPM Counter

DIY PIC Microcontroller Based Digital Tachometer Project

BigDog
 

Hi BigDog, thanks for the reply.

Yes, measuring using the sensor seems not so difficult. But what I meant was that I need to drive one of these,


These electronic tachometers have a signal wire that requires square wave pulses.
But these guys seemed to achieved this using a PIC and some sort of 555 timer (I'm not so sure what it is, can't read the markings) like this,


Cheers.
 

The bottom photo is not of a tachometer, it is a RPM simulator used to drive a tachometer by simulating the pulses from the ignition coil or electronic ignition module.

The small IC you are referring to is certainly a level shifter or transceiver, not a 555 timer, as most automotive tachometers require/expect a 12V level signal from the ignition coil or electronic ignition electronic ignition module.

As I've previously indicated many PIC offer a separate peripheral module whose purpose is to generate a pulse train or PWM signal output.

PICs without this module can also effectively generate a pulse train or PWM signal by means of a software implementation.

However, in both cases the level of the simulated output signal, in this case 5v from USB supply, must be raised or level shifted to the 12v required by an automotive tachometer.



The analog gauge in the first photo is an automotive tachometer:

ST400 Series TACHOMETERS User Manual


The Rev Burner appears to be using a PIC18 series device, there are several which offer a USB peripheral module:

Microchip PIC18 Parametric Search

Click the radio button Show All Specs, select Full Speed under USB Speed and enter SPDIP under Packages.

One commonly used versions in an SPDIP package, the same used in the Rev Burner, is the PIC18F2550.


After closer examination of the second photo, they appear to be using a PIC18F14K50.


BigDog
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…