Just check the pins with a port read at the start of loop() and don't fart around with delays or other blocking code. A fast loop() can read and evaluate, and report/store data for 3 pins many times per millisecond. Is > 1000 checks per second fast enough?
i could do it in a port read like you said but this will be linking up with some other code i already have, there is no delays in it will it still be fine as this might be seeing some high rpm's?
How many reads/second will the high rpm's require? Assuming 1 magnet on a shaft at 10000 rpm I get ~167 reads/second giving 6 milliseconds per cycle though the sensor will be high for a much shorter time.
An Arduino running spare code can make digital reads with minor processing in under 5 microseconds. I have sensor code that does a digital read, unsigned long increment and unsigned long compare ( if statement ) is just over 1 usec per while loop. I give an extra 60 cycles for 5 usecs.
The code you showed in the first post has no foot-dragging parts and uses millis for timing.
You know that if you pass a magnet under a coil that the speed of the magnet will affect how much power is induced in the coil? So maybe you don't have to count rpms.
well my hall sensor is going to be an abs sensor on a car so theres quite a few triggers per revolution havent counted exactly but were looking at about 60, and the revolutions will depend on how fast the car is. so what do you think?
ABS as in the braking system? So rpm is rpm of the wheel?
yes
Do you have multiple sensors or multiple magnets activating a single sensor?
3x sensors with approxmatly 60 triggers per revolution
basically what im trying to do is for my arduino to look at 2 of the sensors and pick the fastest travelling one and compare it against the 3rd one if it is going slower than the 3rd sensor then to execute another piece of code
3 sensors on 1 wheel? Well, it's for ABS... how to know what they measure?
Do they all measure rotation of the same wheel?
Do you have data (including time and maybe speed) from any 1 sensor?
A 28" diameter wheel turns about 12 times a second at 60 mph (88 f/s).
12 rps x 60 magnets is only 720 pulses per second, but again how long are the pulses? The hall sensor only detects the magnet for a limited time, not 1/720th of a second so you have less time than that to catch the signal.
That stated, you might be able to use pulseIn to know the speed of the wheel from just one magnet going by one (but maybe not just any one) sensor.
If I was trying to find answers, I would collect related data first.
ok then what sort of data should i be gathering?
like travelling down the road with one of the sensors connected to an oscilliscope? (which i dont have lol)