Arduino Micro and Hall Effect Encoder

Hello :slight_smile:

I'm using a DC motor with a Hall Effect Encoder, wich is connected to an Arduino Micro.

I'm using attachInterrupt to get the rotation speed of the motor.
Each time a change is detected on the Interrupt pin, it increments a variable.

It works with an Arduino Mega, but when i want to get it with the Arduino Micro, it detects nothing.

I want to get it on pins 3 or 2, so i tried with int.0 and int.1 without success.

Thank you for any help :slight_smile:

I just looked at the output signal from the Encoder and the voltage value is 300 mV.

Maybe it doesn't detect it because the voltage value is too low. :slightly_frowning_face:

Fixed it with a Pull-UP Resistor beetween 5v and encoder Output :smiley: :smiley: :smiley: