Hello all,
First time poster. This issue is driving me insane as I've scoured the deepest trenches of the internet trying to debug this problem I have on my 4WD robot I designed.
I'm using 2 L298N IC's to drive 4 motors, 2 for the left wheels and 2 for the right wheels. When system drives the robot forward, undefined behavior start happening to the outputs of my MSP432. Such as pins that haven't even been configured begin outputting and driving components outside the scope of this issue. At times, this can freeze the application code and would have to reprogram the uC.
This issue appears to be caused by back emf of changing the direction or stopping the motors suddenly, or so I thought. I included 1N5822 3A schottky diodes on the outputs of the L298N and 100nF caps on Vs and Vss pins (not shown on my schematic, added after), as well as a large 470uF cap on the Vs pin. All as indicated by the datasheet. Also there are 100nF caps on the input and output of the 3.3V Vss level supply.
For my design, I tied inputs IN1 and IN3 together and IN2 and IN4 together. I tied ENA and ENB together and will be driven by PWM output of my MSP432. This is so that a single L298 controls the operation of the two motors of the same side identically, as intended. The motors have a DCR of about 14 ohms and draw a quiescent current of 220mA with a stall of 2A and are rated at 6V. The system is powered by a 6.3V battery, and Vss logic levels is 3.3V.
I've grounded the sense pins and included software delays before toggling the tied inputs (to change motor direction), as mentioned in the datasheet, page 7 of 13. On my PCB I made the output traces 20mils wide as oposed to the signal traces, 10 mils wide.
I can't imagine I didn't cover something. I replaced the chips in case I blew them somehow. In the L298 datasheet it gives a reference PCB design, mine is slightly different but I dont believe this is an issue. The entire robot system without the motors runs great, so I know the issue is this blasted thing. As I searched online and read about 100 threads about the L298 chip, I'm coming to the conclusion that this IC was a waste of time considering how many people have issues with this popular but outdated and apparently ineffective IC. I've already invested so much time so I might as well go online and see what help I can get.
This project is for my senior design class, if this doesnt work I will try to design a h bridge using discrete fets, otherwise I don't graduate and lose my job. I've posted my schematic and pcb.
Please help QQ
First time poster. This issue is driving me insane as I've scoured the deepest trenches of the internet trying to debug this problem I have on my 4WD robot I designed.
I'm using 2 L298N IC's to drive 4 motors, 2 for the left wheels and 2 for the right wheels. When system drives the robot forward, undefined behavior start happening to the outputs of my MSP432. Such as pins that haven't even been configured begin outputting and driving components outside the scope of this issue. At times, this can freeze the application code and would have to reprogram the uC.
This issue appears to be caused by back emf of changing the direction or stopping the motors suddenly, or so I thought. I included 1N5822 3A schottky diodes on the outputs of the L298N and 100nF caps on Vs and Vss pins (not shown on my schematic, added after), as well as a large 470uF cap on the Vs pin. All as indicated by the datasheet. Also there are 100nF caps on the input and output of the 3.3V Vss level supply.
For my design, I tied inputs IN1 and IN3 together and IN2 and IN4 together. I tied ENA and ENB together and will be driven by PWM output of my MSP432. This is so that a single L298 controls the operation of the two motors of the same side identically, as intended. The motors have a DCR of about 14 ohms and draw a quiescent current of 220mA with a stall of 2A and are rated at 6V. The system is powered by a 6.3V battery, and Vss logic levels is 3.3V.
I've grounded the sense pins and included software delays before toggling the tied inputs (to change motor direction), as mentioned in the datasheet, page 7 of 13. On my PCB I made the output traces 20mils wide as oposed to the signal traces, 10 mils wide.
I can't imagine I didn't cover something. I replaced the chips in case I blew them somehow. In the L298 datasheet it gives a reference PCB design, mine is slightly different but I dont believe this is an issue. The entire robot system without the motors runs great, so I know the issue is this blasted thing. As I searched online and read about 100 threads about the L298 chip, I'm coming to the conclusion that this IC was a waste of time considering how many people have issues with this popular but outdated and apparently ineffective IC. I've already invested so much time so I might as well go online and see what help I can get.
This project is for my senior design class, if this doesnt work I will try to design a h bridge using discrete fets, otherwise I don't graduate and lose my job. I've posted my schematic and pcb.
Please help QQ
Attachments
-
52.9 KB Views: 17
-
126.1 KB Views: 17
-
159.4 KB Views: 16
-
53.6 KB Views: 16
Last edited: