RFQ/BOM 0 Anmelden / Registrieren

Wähle deinen Standort

Benutzerbild

After the development board USB is connected to the computer, do not press the power button, the motor is also rotating.

Hardware design
Oktober 22, 2020 by Owen 1285

I downloaded the compiled program to the development board. The program controls the motor through the H bridge, but there are some problems

1. Even if the development board is connected to the computer via USB, the motor will rotate even if the power button is not pressed

2. I set the ena enable pin of the H bridge to PB2 and the PWM output to set PB0, but I found that no matter which pin is connected, such as PAx, the motor will turn, as if it was short-circuited.

3. And the operation is not according to my program at all, the duty cycle is adjusted, and the speed does not change.

Alle Kommentare

user image

Anna Veröffentlicht am October 22, 2020

I even believe that there is a problem with the program. Check it out! ! !

0
user image

Sebastian Veröffentlicht am October 22, 2020

Which pins are initialized? Pull up all unused pins for input. Only the enable pin is left.

0
user image

George Veröffentlicht am October 22, 2020

Check the H bridge, and the parameters, it will cause uncontrolled.

0

Schreiben Sie eine Antwort

Sie müssen sich anmelden, um antworten zu können. Anmelden | Registrieren