Skip to main content
Visitor II
June 17, 2025
Question

motor control using cubeide for hss86 driver

  • June 17, 2025
  • 2 replies
  • 256 views

I tried to rotate the nema34 stepper motor through hss86 motor driver using the stm32 G474RE. I configured the pins as follow:  Pul - connected to Tim 3_CH 1(PA6) , Dir - connected to GPIO OUTPUT_B_10 , Ena - connected to GPIO OUTPUT_D_2 and all the positive terminals to the 5V battery and grounded it to the stm32 pin(GND) . I also generated the output pulse and upload my code to the stm 32 without any error, Although the motor is not rotating. Is there any specific code I have to write  beyond the PWM generation code.  

2 replies

GMA
Technical Moderator
July 24, 2025

Hello @Smritha,

As HSS86 is not an ST product, I can only recommend using an oscilloscope to ensure that the TIMER and GPIO outputs are generated as expected.

If you agree with the answer, please accept it by clicking on 'Accept as solution'.Best regards.GMA
Chris21
Associate II
July 24, 2025

It looks like the HSS86 is expecting 5 volts or more, STM32 GPIOs are not at the level, generally.