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.

TM4C123GH6PM: Help controlling a motor through a motor driver?

Part Number: TM4C123GH6PM
Other Parts Discussed in Thread: EK-TM4C123GXL

Hello everyone,

I am trying to control a linear actuator using a Tiva TM4C123G6HPM microcontroller and a motor driver.

I am generating a 250 HZ PWM signal at 100% duty signal and have connected that pin to the appropriate enable pin on the motor driver.

I have two output pins on the microcontroller that connect to two pins of the motor driver to control the direction of the motor. The problem I am having is that when the output pins of the microcontroller are low and not sending a voltage of 3.3V to control the direction, the direction pins on the motor driver are still getting activated. The manual of the motor driver says that the pins need a voltage of at least 3V to get activated, but I measured the voltage of the microcontroller pin at low and its about 6.3mv , which is enough to activate the pin on the motor driver.

Does anyone know how I can fix this?

Thanks!

  • Hi,

      I'm not familiar with your motor driver. What is the Vil and Vih of the driver?  Does the MCU and your motor driver have the common ground? If you are using the EK-TM4C123GXL, then I will suggest you remove the motor driver and re-measure the MCU output pins again? Do you still see 6.3mV? In addition, please make sure the launchPad and your external components have common ground.