And yes the servo is for steering an no im not using the guitar hero so ill take that out
Seems to me like you dont have common GND between the UNO and the motor cotroler.
Try to ADD a jumper wire from arduino’s GND to the (-) of the motor controler.
Thank u For your feedback borbos I will definitely try that
As soon as possible an will let u know if it was the problem
But instead of the L298n I’m buying a ESC
So the code will change a little an I will post updates once I have things a little more organized
L298n can perform like an ESC with the appropriate code. There is no need to buy an ESC.
My opinion is that in your case ESC is needed if you dont have pins left on the arduino (since ESC uses one, and the L298n uses 4)
Well the l298n keeps overheating for some reason… so even if I got it to work correctly it would only work for about 5min before burning out
one more thing…with the current setup the car performs great but when i put it on the floor or carpet it has a hard time moving forward an backwards…the servo performs good when it was put on the floor for a few test runs
with that being said the L298n overheats drastically.
if i put it back on the car holder the wheels spin fast in either direction i select
the H bridge seems to only get warm, until its put on the floor
it might need a bigger motor, witch is coming with the ESC
60 amp ESC and A 4700kv brusless motor 4 poles
of ur l298n over heats, means that either of the following needs to be modified / replaced
- motor gearing
- weak motor power
- wire thicknes (over heat?).
- weight of the car
- final gear ratio / wheel size (change with smaller)
yes u are right about everything u mentioned so the question would be
wouldn’t u agree to use the esc i just posted with the motor
seems fine if you can fit it on the chassis
this is the new code with theESC but the car only drives backwards and not forward
everything else seems perfect apart from that
i forgot to add
my servo. attach(9)
for the steering
Hey,
We’ve had a quick look at your code and it seems like it would most likely work. If that is the case, then you are most likely having a miswiring somewhere between your motor, motor controller and microcontroller.
If your motor controller also has any settings (firmware/EEPROM) or jumpers, make sure those also match the mode you want.
Another quick test you can do if you have a RC servomotor available is to connect its signal pin (typically the white or yellow wire) to the myservo output pins and the VCC & GND to proper connections to power the servomotor. If your code works well, the servomotor should move in response to input on the gamepad.
Also, not sure if this is required for your forward/backwards test, but myservo1 seems to be missing its .attach(PIN) call. If that signal is needed then it will not work since it is not connected to any physical pin.
It would be helpful to see in more details how your wiring between the motors, motor controller(s) and the microcontroller are.
We hope this helps.
Sincerely,
My project is done and I thank everyone at roboshop an in the forum
Much love an if there’s anything I can do to return the favor
Ask away
An ill answer any questions about the project
Well, that is certainly great news!
If you feel up to it, you can make a detailed post about the project and its creation process (requirements, challenges, thinking process, solutions, etc.) on our project focused website, Let’s Make Robots.
The RobotShop community would most certainly be interested in all the details!
Also, you can most certainly go over there and comment on people’s projects and offer ideas/help, too.
Sincerely,