Gravity TT Encoder Kit gives always same value

userHead OguzKahraman 2022-06-17 18:51:22 765 Views1 Replies

Hi, I am using exactly the same code as https://wiki.dfrobot.com/Wheel_Encoders_for_DFRobot_3PA_and_4WD_Rovers__SKU_SEN0038_ 

Only difference is interrupt pin number. I am using Arduino Mega 2560, I wired encoders to Digital Pin 19,20 which are interrupt 3 and 4. However, either motors are turning or not turning, I am always getting the same number: 532 and 1000. Does anyone knows why it is happening ? 

2023-01-17 14:25:39

Hi!

Please test with example code and interrupt pins 0, 1.

userHeadPic jenna