This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DRV8301-RM48-KIT

I have been using the Insta-Spin GUI and am doing a project that utilizes the onboard ADC to calculate values that will then cause the motor to spin, but using the encoders, the microcontroller will know where the position of the motor is at all times. I have a question on how i can take this ADC output value, I'm assuming is in hex from the ADC example, and convert it to an RPM. However, the encoder will limit the number of rotations that the motor can do. I was wondering if anyone had any input on the structure we should be planning for this project. We have already been working tirelessly on this project, but any input and help would be very appreciated at this time.

Thanks,

Marcos.

  • This is also the same situation I am in. It would be very helpful to have some follow up on ADC and encoder.

    Thanks,

    Danny 

  • Hi, Danny, Marco,

    For Insta-spin comes with the motor kit is sensorless, there is no encoder requirement.  the BLDC algo works based on the 60 degree phase and detection of zero crossing voltage to know that he is just cross the 60 degree phase.

    Therefore, once you start from phase 0 and go back to phase 0 again, you know that this is one revolution.  Take the time stamp from one revolution to next revolution will allow you to calculate the speed.

    Look at drv.h line 550 to 585

  • Thanks for your help Henry, 

    I did, in fact, have another question to ask about this project. I was wondering if you have any information on the initialization of ADC1IN12 or any general ADC pin knowledge for that matter. We were hoping to use this pin for reading in a voltage from 2 ~ 3 volts and converting it to something that can cause a motor to spin.

    Thanks,

    Marcos.

  • This information would be useful. Thank you Marcos for bringing this up.