This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to read the encoder pulses count from the servo motor using QDEC example program.

Hi,

We need to interface ASDA a2 delta AC  servo motor  with  NRF52840 in our project.In this servo motor i need to get the position value and direction  so i interfaced servo motor with nrf 52840 .I have tried the example program QDEC in the peripheral folder. This servo motor has  3 pulse pin as A,B,  and Z  so i have connected these pins to the NRF52840  but if i compile the program  i am not able to get the position value from the ac servo motor  only  it is printing as QDEC example started and it is printing as system reset . can you plz tell me  what is the problem.

Parents Reply
  • Hi,

    sorry for the late reply.

    I have checked the encoder pulse output a and encoder pulse output b on oscilloscope. 

    We are able to see the pulse  A and Pulse b  which are of 2 ms pulse width. But while i am trying in nrf51 through gpiote program. I could't able to count the pulses. The pulses are getting from the encoder output but not able to read in gpiote example program

    plz give me the solution

Children
Related