RC Car 2 DC Motors L298N doesn't work

Receiver hardware : Arduino Pro Mini Atmega 168 3.3V 8Mhz, L298N Module, NRF24L01 and 2 DC Motors
Emmeter hardware : Arduino Pro Mini Atmega 328P 5V 16Mhz, 2 Joystick, NRF24L01 (unused : 4 button, 2 potentiometer, 2 toggle switch)

Hello everyone, i must work on a RC Car project for the school (a Amphibious Tesla Cybertruck) and I chose as a base the RC Car project of HowToMechatronics

For the propulsion i chose to use two parallel motors
I want to control each motor with a joystick.
But when I plug everything in, everything lights up but the motors don't move.
I don't know if it's related to the hardware (not the same Arduino for example) or to the code.

I tried to copy and paste the exact same code in the HowToMechatronics video but it doesn't work there either.

I don't know much about Arduino and I have to finish this before the end of this week

I hope you can help me
**Thank you **
(and sorry for my bad english :cold_sweat:)

Link of the original work by HowToMechatronics :

And the code i use in attachement

recepteur_projet_tesla.ino (4.18 KB)

emmeteru.ino (2.72 KB)

You missed to specify essential details:

  • datasheets of your motors
  • your power supply for the motors

Your power supply may be to weak in both current and voltage.

DrDiettrich:
You missed to specify essential details:

  • datasheets of your motors
  • your power supply for the motors

Your power supply may be to weak in both current and voltage.

Hello, i didn't specifie this because i know the motors works and the power supply is more than enough, but this is the motors i buy "Trouvez Machine de coupe de moteur électrique 23T en ligne | Carson" and this is the battery "https://www.amazon.fr/gp/product/B07R3BML88/ref=ppx_yo_dt_b_asin_title_o02_s00?ie=UTF8&psc=1"

If you are trying to drive those motors from an ancient L298N then forget it. The motors can easily take 10A or more, the L298N can supply 2A on a good day. Either use the original motors or a much better driver.

And note your chosen motors produce high revs. Unless you are using lots of gearing your car will try to go ridiculously fast and be uncontrollable.

Steve

slipstick:
If you are trying to drive those motors from an ancient L298N then forget it. The motors can easily take 10A or more, the L298N can supply 2A on a good day. Either use the original motors or a much better driver.

Ok so according to you I have to forget the L298N because the motors are too powerful.
Unfortunately i can't use any other motors
Have you another solution so that I can control both motors with an arduino?
And which driver do you recommand me?

Anyone?

Here is a starting point. A little Googling will give you many more options from other suppliers.

Start by getting the motors to run with a very simple test sketch, before adding the rest of the robot logic.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.