Author Topic: Toy car forward and reverse speed difference issue  (Read 2228 times)

0 Members and 1 Guest are viewing this topic.

Offline murabatTopic starter

  • Contributor
  • Posts: 11
  • Country: pk
Toy car forward and reverse speed difference issue
« on: December 04, 2021, 06:32:34 am »
My son's toy car goes to full speed in reverse direction but moves very slowly in the forward direction. At first I thought that it was a motor resistance issue but when I checked the voltages on the motors, the reverse direction was getting 12.5V and the forward direction was only getting 7.6V.

Main controller board picture is attached below.

The gate of the forward high side mosfet is not being driven fully. Reverse direction high mosfet is getting about 22.5V at the gate which gives a gate to source difference of about 10v but the forward direction mosfet is only getting 14.5V which makes Vgs to be around 2V which is not enough to turn it on fully. Battery voltage being 12.5V.

I thought that the driver IC had some issue. I swapped the ICs, no change. I swapped the charged pump capacitors, no change. Then I started checking inputs of both drivers and found that the PWM signal coming from the microcontroller is around 3V 21KHz in the reverse direction but only 1.7V 21KHz in the forward direction. LDO running the whole circuit is 3V.

At this point I am a little confused why the microcontroller is doing this? It is still fully functional taking inputs and outputs of other functions in the car. There is no speed control in this car. Just a rocker switch with forward and reverse. 

So my idea of posting here is to know if I have missed something in checking the mosfets and their driver. It seems to me that I have to either get a new circuit board or just wire the reverse output of the microcontroller to the forward driver input with some logic in between.
« Last Edit: December 04, 2021, 06:37:00 am by murabat »
 

Offline Xenon

  • Contributor
  • Posts: 19
  • Country: nl
Re: Toy car forward and reverse speed difference issue
« Reply #1 on: December 04, 2021, 04:52:19 pm »
The simplest way to make it go forward full speed is to swap the motor + and - connectors and the wires to the forward and reverse buttons.
 

Offline coromonadalix

  • Super Contributor
  • ***
  • Posts: 5895
  • Country: ca
Re: Toy car forward and reverse speed difference issue
« Reply #2 on: December 04, 2021, 05:29:36 pm »
normally you need more control while reversing than being in forward mode,   the motor should spin the same  in forward or reverse mode,  but a circuit can add a limitor for reverse mode ??

maybe poking the controls signals, you coud see a signal level difference ??  or maybe some resistors values ??

an  ''H'' bridge should be simmetrical
« Last Edit: December 04, 2021, 05:31:37 pm by coromonadalix »
 

Offline abdulbadii

  • Frequent Contributor
  • **
  • !
  • Posts: 350
  • Country: us
Re: Toy car forward and reverse speed difference issue
« Reply #3 on: December 04, 2021, 08:53:55 pm »
First must get MC ID, specs, description which is null in question now
 

Offline murabatTopic starter

  • Contributor
  • Posts: 11
  • Country: pk
Re: Toy car forward and reverse speed difference issue
« Reply #4 on: December 04, 2021, 11:46:42 pm »
The simplest way to make it go forward full speed is to swap the motor + and - connectors and the wires to the forward and reverse buttons.
The motors are controlled by the microcontroller with forward/reverse inputs pulled high through resistor. When both forward/reverse button and the accelerator switch is pressed, the signal goes low and microcontroller sends the appropriate PWM signal to the mosfet driver. So changing wires on the rocker switch won't help solve the slow speed issue. It just makes forward button into reverse and reverse button into forward.

normally you need more control while reversing than being in forward mode,   the motor should spin the same  in forward or reverse mode,  but a circuit can add a limitor for reverse mode ??

maybe poking the controls signals, you coud see a signal level difference ??  or maybe some resistors values ??

an  ''H'' bridge should be simmetrical
As I said in the first post that the problem seems to me that the high side mosfet in the forward direction is not being turned on fully causing a very high voltage drop. The mosfet driver signal is almost half of what it should be. Microcontroller is controlling the mosfet driver directly. There is no resistor in between.
First must get MC ID, specs, description which is null in question now
The microcontroller markings are ground off. No way to know what it is. The four mosfets are N-channel 120N03. The mosfet driver is HY2105 which after probing seems to have a very similar pinout to NCP5104
 

Online Kim Christensen

  • Super Contributor
  • ***
  • Posts: 1325
  • Country: ca
Re: Toy car forward and reverse speed difference issue
« Reply #5 on: December 04, 2021, 11:57:20 pm »
Then I started checking inputs of both drivers and found that the PWM signal coming from the microcontroller is around 3V 21KHz in the reverse direction but only 1.7V 21KHz in the forward direction. LDO running the whole circuit is 3V.
At this point I am a little confused why the microcontroller is doing this?

It could be that the "forward" PWM IO pin on the microcontroller is partially damaged. I assume that these voltages (3V vs 1.7V) were seen on an oscilloscope. Did the 1.7V PWM forward signal look like a nice squarewave like the reverse 3V PWM or was it rounded/slopedl? You may be able to bodge a "fix" by putting a pullup resistor (waveform not going all the way to Vdd) or pulldown resistor (waveform not going all the way to 0V) on that pin since 21Khz isn't super high speed. It all depends on the MCU, driver, and what killed the PWM IO pin in the first place.
 

Offline abdulbadii

  • Frequent Contributor
  • **
  • !
  • Posts: 350
  • Country: us
Re: Toy car forward and reverse speed difference issue
« Reply #6 on: December 05, 2021, 12:31:50 am »
Seems it is a  closed loop feeedback (encoder) DC motor not a plain/simple one.. if so, it's usually brushless ?
 

Offline murabatTopic starter

  • Contributor
  • Posts: 11
  • Country: pk
Re: Toy car forward and reverse speed difference issue
« Reply #7 on: December 05, 2021, 06:44:21 am »
Quote
It could be that the "forward" PWM IO pin on the microcontroller is partially damaged. I assume that these voltages (3V vs 1.7V) were seen on an oscilloscope. Did the 1.7V PWM forward signal look like a nice squarewave like the reverse 3V PWM or was it rounded/slopedl? You may be able to bodge a "fix" by putting a pullup resistor (waveform not going all the way to Vdd) or pulldown resistor (waveform not going all the way to 0V) on that pin since 21Khz isn't super high speed. It all depends on the MCU, driver, and what killed the PWM IO pin in the first place.

I was initially measuring with a multimeter but I got the the scope out today. The forward and reverse direction microcontroller outputs are attached.
The difference is almost half. I don't remember the car doing like this when I bought it. It is only after using it for a month or two that it has slowed down the forward speed. Seems like the microcontroller is deliberately doing this.
Is it taking that queue from some input which has changed? I don't think so. Need to investigate that further. 

Seems it is a  closed loop feeedback (encoder) DC motor not a plain/simple one.. if so, it's usually brushless ?

These are plain RS390 equivalent DC motors with gearboxes. They run in H bridge configuration. No brushless motors, no encoder system involved.
« Last Edit: December 05, 2021, 06:51:42 am by murabat »
 
The following users thanked this post: abdulbadii

Offline fzabkar

  • Super Contributor
  • ***
  • Posts: 2263
  • Country: au
Re: Toy car forward and reverse speed difference issue
« Reply #8 on: December 05, 2021, 06:33:14 pm »
What is the pinout of the connector (eg H/L, S/F, S/B, etc)?

H/L -> high speed / low speed ???
« Last Edit: December 05, 2021, 08:43:39 pm by fzabkar »
 

Online Kim Christensen

  • Super Contributor
  • ***
  • Posts: 1325
  • Country: ca
Re: Toy car forward and reverse speed difference issue
« Reply #9 on: December 05, 2021, 08:02:07 pm »
Quote
Is it taking that queue from some input which has changed? I don't think so. Need to investigate that further.
Is the microcontroller monitoring the motor current somehow? If that circuitry is misreporting an overcurrent situation, that would make the microcontroller change the duty cycle to compensate.
 

Offline murabatTopic starter

  • Contributor
  • Posts: 11
  • Country: pk
Re: Toy car forward and reverse speed difference issue
« Reply #10 on: December 07, 2021, 12:39:06 pm »
What is the pinout of the connector (eg H/L, S/F, S/B, etc)?

H/L -> high speed / low speed ???

H/L is not connected on the ribbon cable. S/F is forward. S/B is backward.

Quote
Is the microcontroller monitoring the motor current somehow? If that circuitry is misreporting an overcurrent situation, that would make the microcontroller change the duty cycle to compensate.

As I have probed the microcontroller and there is a pin going through a 2k resistor to ground but I think if it had an effect, it should happen in both directions. And it measures exactly 2k ohm.

After some probing I have mapped the microcontroller pinout. The picture is attached. One interesting thing I found is that after I changed the ldo from 3v to 3.3v the voltage on forward PWM rose to 1.9V from 1.6V on multimeter. Exactly .3V. So what if I use a 5V ldo? I hope it doesn't fry something.

HY8345 is chip used to drive a motor to turn the front wheels through remote control
XN297lbw RF chip is used to communicate with a remote. The car didn't come with one.
"Rock" is to move the car back and forth in a rocking motion.
"H/L". No idea. There is no wire going to input of that pin on the connector.

« Last Edit: December 07, 2021, 12:43:06 pm by murabat »
 

Offline fzabkar

  • Super Contributor
  • ***
  • Posts: 2263
  • Country: au
Re: Toy car forward and reverse speed difference issue
« Reply #11 on: December 07, 2021, 05:10:31 pm »
I would try a pull-up or pull-down resistor on the H/L input (?) and see whether it affects the PWM duty cycle.

Is there an FCC ID?
« Last Edit: December 07, 2021, 05:50:04 pm by fzabkar »
 

Offline murabatTopic starter

  • Contributor
  • Posts: 11
  • Country: pk
Re: Toy car forward and reverse speed difference issue
« Reply #12 on: December 16, 2021, 05:33:20 am »
I would try a pull-up or pull-down resistor on the H/L input (?) and see whether it affects the PWM duty cycle.

Is there an FCC ID?
There is no FCC ID.

In the end I just reversed the connections on the motors to get the full speed in the forward direction. I am going to stop with any more investigation owing to the dearth of clues about the microcontroller and the code inside it. Thanks everyone for replying.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf