I’m having a problem with the following: i’m using a 2 wire digital hall sensor (1 signal wire, 1 ground). The signal is represented in the pics below (scope didn’t have usb option, so i had to take them with my phonecamera). It is used as an ABS sensor in a ford fiesta.
I need to read the signal in the arduino and determine its frequency in order to log the speed of the car. I have tried attachInterrupt, didn’t work. I also tried the frequency conter from Page has moved , didn’t work…
I know i need to count rising/falling flanks and stack them in to a counter in order to determine the frequency, I just don’t know how to do it. Could it be that the signal is too small for the arduino to detect a rising/falling flank? Peak to peak value is 0.4Volts.
Could i solve this using the internal comparator in the arduino, and more importantly, how do i do this in the programming language? Or does anyone have any other ideas?
Thanks very much