L298n normal attachment, a total of four motor (left two motor welding together, right two welding together), code are modified by others, should be no problem,
Used L298n output 5 v voltage to power a microcontroller, after burning program after the car forward, either with back on the left to the right of the code are moving forward, what is want to consult with your bosses,
I think the situation is likely to be the following:
1. The stm32 burn out of the question, the program did not burn in it (the probability is small), because I burn out, then used l298n power supply,
2. The power supply is insufficient, the power supply for 4 I gave l298n dry-cell batteries, four motor, if it is for this reason, dear bosses have recommended to l298n power supply modules?
If it is power supply problem is good, I worry about burn out, I hope, every glad to
CodePudding user response:
Test machine whether can control and reversing, if cannot check code, the key logic view direction, and wiringCodePudding user response:
Look at the code yourselfCodePudding user response:
There is something wrong with the program codeCodePudding user response:
First measure positive &negative look is normal, and the otherCodePudding user response:
Code big probability there is a problem, can the simulation debugging