Motor Spark Issue with Arduino and Turbo Racing TP-TX2 Transmitter

Yes its my controller

The controller have 10 pins :
G, AG, A1, A2, B1, B2, PW, PB, PA, 5V

The pins connected to Arduino :
5v to 5v
G to GND
A1 to 6
A2 to 7
PA to 5
PB to 10
B2 to 9
B1 to 8

The connections between the receiver:
5v to 5v
GND to GND
Channel 1 to A2
Channel 2 to A3

Your code pinning does not match your controller drawing.

Your code uses two pins per motor direction (6,7 or 8,9) and one pin for speed (5 or 10). These pins are not in your motor controller drawing.

Your motor controller drawing looks like it uses a 15kHz clock with variable duty cycle for speed. Your code does not show a timing mechanism to control speed, and just sending pulses as fast as the loop() can go.

Hi, @samih317

Can you please post a copy of your circuit, a picture of a hand drawn circuit in jpg, png?
Hand drawn and photographed is perfectly acceptable.
Please include ALL hardware, power supplies, component names and pin labels.

Where did you get your code?

Have you written some simple code that JUST runs the motors at constant speed?

Thanks.. Tom.... :smiley: :+1: :coffee: :australia:

Thank you for your help
But I don’t know how to write a code or edit the code to be compatible with the driver

How can i get the code?

I don’t have a drowning for the connections its my firs time to use these components and i’m learning.
I have Lipo battery 6s 5200mAh , dual motor driver you can see it above, Arduino mega 2560 , gobilda motor sku: 5303-2402-0051 and turbo racing transmitter 7ch ( TB-TX2 )

My friend has some experience with Arduino his write the code .

Yes i try , i try a code to run the motors in consistent speed but without using the transmitter and they running well without any problem.

Thank you for your helping

The rest of us either learned (school or self-study) until we understood.

Read (by searching) about "create square wave with duty cycle using millis() with arduino"... and you will find some helpful links. I never though I would say "or try AI"... I put that phrase into AI and it made something reasonable... BUT... I understand what the AI got wrong, so I could adjust the "answer" and made something that "might" work... so, learn to code is your best answer.

For the hardware... where did you get the instructions to "wire" your motor controller to your Arduino?

What is "voltage detection" and what is PW? What is "current detection" and what is A0?

Your Arduino pins 6,7 and 8,9 are the "direction" pins... they should go to the "direction" pins of the controller (A1, A2 and B1, B2).

Your Arduino pins 5 and 10 are the "speed" pins... they will go to your "15k square wave" pins (PA and PB).

If his RC car is not yet destroyed, that is your best resource after learning before doing.

Good so your hardware appears to be stable.
Do you have a DMM? Digital MultiMeter?

Tom.... :smiley: :+1: :coffee: :australia: