I have this digital hall effect sensor that is hooked up to a processor that reads the pulses of a rotating shaft. I changed the shaft size and number of gears on this shaft and now the processor gets the wrong rpm of the shaft. I need to make this processor think i'm still using the old shaft...
Problem is the Signal wire on the sensor is getting 5V *FROM* the processor and not the other way around (sensor sending out low pulses). It looks to be that the processor is monitoring the 5V its sending out, whenever a gear tooth goes by it grounds out the signal wire, the processor sees this, and thus knows the speed.
Anyone have any ideas on how to do this for all freqs from 0-2000Hz... I'm coding in C so I have some flexiblity there.
The only thing I have right now is:
delay half the time in uS of the freq, output_low (ground the pin), delay_us then set it back to floating... repeat.
Any ideas ?
Problem is the Signal wire on the sensor is getting 5V *FROM* the processor and not the other way around (sensor sending out low pulses). It looks to be that the processor is monitoring the 5V its sending out, whenever a gear tooth goes by it grounds out the signal wire, the processor sees this, and thus knows the speed.
Anyone have any ideas on how to do this for all freqs from 0-2000Hz... I'm coding in C so I have some flexiblity there.
The only thing I have right now is:
delay half the time in uS of the freq, output_low (ground the pin), delay_us then set it back to floating... repeat.
Any ideas ?