Digital Pulse/Signal Counter using digitalRead ?

Hello everyone ,
i am noob, and this my first Arduino Project

I want to make a digital motorcycle tachometer using Arduino and LCD 1602,
I have an analog to digital signal converter, and thats worked on my friends AT89C51 microcontroller's.
The converter used to convert sinusoid signal to be squarewave signal that generated by pulser at my motorcycle.

Now, i want to use that converter with my Arduino Uno,
I want to read the signal and calculate it, then display the result (RPM) to LCD 1602.
One HIGH signal mean one cycle or crank of the engine.
Rotation Per Minute (RPM) = (signal during 1 sec) * 60

but i cant program this Arduino to read the signal :frowning:
my friend suggest me to use the digitalRead function and millis

Now i need a guidance/instruction to build the skecth.
Maybe you can give me a skecth to count the RPM described above.

Thank you for the attention, and sorry for my bad english because not my mother language.

I want to read the signal

Which will either be HIGH or LOW.

and calculate it

it?

but i cant program this Arduino to read the signal

Well, you have our permission, so the problem is on your end.

my friend suggest me to use the digitalRead function and millis

So, did you?

Maybe you can give me a skecth to count the RPM described above.

I could SELL you one.

PaulS:

I want to read the signal

Which will either be HIGH or LOW.

and calculate it

it?

but i cant program this Arduino to read the signal

Well, you have our permission, so the problem is on your end.

my friend suggest me to use the digitalRead function and millis

So, did you?

Maybe you can give me a skecth to count the RPM described above.

I could SELL you one.

reply:

  1. read the HIGH signal
  2. yes, calculate the signal (RPM=(signal during 1 second) * 60
  3. can you help me?
  4. yes, because my friend just suggest not help me anymore :slight_smile:
  5. maybe free ? please XD

rosyiduino:
i am noob, and this my first Arduino Project

Get used to using Google for yourself before you call for help. You're trying to make an Arduino tachometer. I had no trouble finding dozens of similar projects, and you should be able to find them too.

reply:

  1. read the HIGH signal

But ignore the LOW?

  1. yes, calculate the signal (RPM=(signal during 1 second) * 60

The signal is either HIGH or LOW. There is nothing to calculate. You want COUNT the number of times that the signal has BECOME HIGH in some period of time. The state change detection example might be useful.

  1. can you help me?

I'm trying. But, this implies that you are willing to do some work. I haven't seen any evidence of that, yet.

  1. yes, because my friend just suggest not help me anymore

I wonder why.

  1. maybe free ? please

Clues are free. Help fixing your code is free. Writing code for you is not.

Hi,
I know this is a very old topic, but to my curiosity.. did you manage to make it?

Zaeem:
Hi,
I know this is a very old topic, but to my curiosity.. did you manage to make it?

Nobody else cares, why not just PM them instead of zombying a topic?