The motor driver is very hot

Hey @Leonardo,
You have an exciting setup, I am really looking forward to see it work! :smiley:

What is the sensor you are using?
What is the library version you are using?

If the motor is not moving at all then most probably you have a sensor problem, did you try to output the sensory data, the motor angle for example, can you check if it updates?
Maybe the motor and the sensor are not oriented in the same direction, this you can easily overcome by switching any two motor wires.

Or you can download the developmental version of the library where @Owen_Williams has implemented auto-detection of the sensor direction. Here is the link:

In this developmental version of the library you will also find the open loop control examples. So you can try turning the motor without sensor.
You can find examples in:

examples
    > motion_control
          > open_loop_motor_control

If you don’t want to use dev version, don’t worry. Everything will work without it as well. It just offers a bit more functionalities. :smiley:

Here is an example code of the open loop motor control which you can use with the regular library. You just need to copy paste the the drv8302 code.