Readng input pin signal - frequency - hertz ?

Hi,

First post here and still very much a beginner with these Arduinos.

Having done quite a lot of searching I have not found out how read how fast, frequent a signal is arriving at an input pin.
The board is a Mega and the signal is 5 volt and coming from an ethanol sensor, which I understand send a square ish signal and reading the signal high is project One.
Regards
Rob

Welcome,

Can you tell more about the signal e.g. range of frequency datasheet etc.

If you go through the tutorial section you will find lots of usable snippets.

If you really want to jump into the deep there is always this site:

Hi Rob,
Thanks for the welcome and for your response.
I will follow through on these leads.
It's a long story but the short version is a friend has built a rolling road and thinks it would be wise to know what the ecu is adjusting for the ethanol content of the fuel so he has got a ethanol sensor and some one said get an Arduino to display the signals from the ethanol content and temperature signals. Some where along the line I was asked to see if I could get the LCD screen working with 2 separate lines text/numbers of print to the 2 lines on the LCD which has led to being asked to pick up the these signals for display. I had not worked with an Arduino before but it looks like something the grand children should try out.
As I understand it the frequency between 50 and 150 give the ethanol content and that these are 5 volt and square ish.
Thanks again for the pointers
Regards Rob

To start with, don't bother with the LCD. It will just clutter up your code. Concentrate on reading data from the Ethanol sensor and just displaying it crudely in the Arduino Serial Monitor. When you know that works it will be relatively easy to make the stuff display on the LCD.

Can you get the specifications for the Ethanol sensor and, ideally, post a link to them here. Without that you are really poking about trying to find a black piece of paper in a dark room.

As an experiment you could wite a short sketch that gathers (say) 200 digitialRead()s into an array and subsequently prints the array. If you fiddle with the speed of taking the readings you may get a set of data that represents the HIGH and LOW status of the signal from the sensor. EG 000000111110000001111100000000000000111111111111111111110000011111110000.

...R