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.

Servo control via Hercules RM57Lx LaunchPad

Other Parts Discussed in Thread: LAUNCHXL2-RM57L, DRV8301, MOTORWARE

Hello everyone!

I am an absolute newbie to the amazing world of micro-controllers and I am not familiar with Hardware Abstraction Layer.

I'd love to make a simple example of Servo-Control via a Hercules RM57Lx Launchpad (LAUNCHXL2-RM57L) (bought last weekend)

There are examples of Servo-Control via MSP430 Launchpad and Stellaris LaunchPad Evaluation Kit in this forum, a PWM project via TMS570LS Launchpad (offical tutorial), and a Github repository of Seeed-Studio/Hercules_Motor_Driver. However I could not find any tutorial on Servo/Motor-Control using Hercules RM57Lx Launchpad.

Is there any tutorial or blog pages on Servo / Motor / PWM via RM57Lx Launchpad? I've searched for that for such a while...

Thanks in advance!


Best regards,

Honig

  • Hi Gundam,

    Your post is being moved to the Hercules Forum. They can better answer you question.
  • The LaunchPads plug into application-specific boosterpacks. For example, there is a boosterpack for the DRV8301 motor driver. You can fidn it here: www.ti.com/.../BOOSTXL-DRV8301

    The RM57x MCU will generate all the control signals for the DRV and will take in all control inputs via the connectors between the LP and BP. You can also refer to Hercules Motorware motor drive example and then modify it for this boosterpack. You can find Hercules Motorware here (scroll down to the "Demo Software" secction): processors.wiki.ti.com/.../RM46_CNCD
  • Hi Sunil,

    Thank you for the prompt reply! I'll have a look at the "Motorware".

    However I'd like to drive and control a servo without using the boosterpack for the DRV8301 motor driver, since I do not have the motor driver right now.

    I need to:

    1. generate a PWM signal and connect the PWM output Pin with the servo

    -- Finished

    2. connect the PWM output Pin to an eCAP Pin for verification

    -- I could not find the eCAP1 Pin (N1 ball) on the LaunchPad, I need some help.

    3. get data from a position / angular sensor

    -- No idea at the moment. Should I use UART or CAN?

    4. get voltage / current data, since the servo powered by an external battery

    -- No idea..

    Thanks in advance!

    Best regards,

    Honig

  • 1. generate a PWM signal and connect the PWM output Pin with the servo

    -- Finished

    2. connect the PWM output Pin to an eCAP Pin for verification

    -- I could not find the eCAP1 Pin (N1 ball) on the LaunchPad, I need some help.

    >> eCAP1 pin is not available on the LaunchPad. See this related forum post: 

    You should switch to using eCAP2 or eCAP3 pins for measuring the ePWM output.

    3. get data from a position / angular sensor

    -- No idea at the moment. Should I use UART or CAN?

    >> Which position sensor are you planning to use? Does it support both these interfaces?

    4. get voltage / current data, since the servo powered by an external battery

    -- No idea..

    >> Normally these signals would be translated to voltages that are then sampled by on-chip ADC(s).