Hello, Thanks in advance for any assistance.
I am attempting to make a tachometer for DC motors using arduino uno.
I am using interrupt, after tinkering for quite a while, I have the interrupt working with both a hall sensor and photointerrupter.
My problem is in any case when I turn the motor on (the motor on separate batteries etc) it causes interrupts. When the motor is on, away from the sensor, or even if the sensor is disconnected it triggers roughly 300 to 900 times per second. I have a 103 capacitor on the motor, and the motor case is grounded to a motor terminal.
Unfortunately this interupt does not appear to correspond to the motor rpm or I would be done ![]()
I have a pull up 10K to the interuppt pin etc.
I assume this is motor noise problem.
I have searched, schmitt trigger needed?
Thanks