Asked — Edited
Resolved Resolved by Rich!

Questionatic L298n Red Connection

Following the instruction video, i was able to set up the Hbridge L298N RED

the problem im facing is, it only controls the read motor, not the turning motor.

the video online shows dj setting up just one motor. am i missing something?


ARC Pro

Upgrade to ARC Pro

Take control of your robot's destiny by subscribing to Synthiam ARC Pro, and watch it evolve into a versatile and responsive machine.

#17  

Normally I fix all my spelling errors when posting from my phone, but just got paged out for a problem at work, so not this time. Sorry.

[edit] work issue resolved quickly, so spelling errors fixed.

Alan

United Kingdom
#18  

I cannot repeat myself any longer. It is not a case of me not knowing, I have provided solutions to you and explained how what you are attempting is not the correct way.

Are you not grasping the concept of feedback? How does the micro controller (EZ-B, Arduino, whatever) know when to stop the motor?

The best case scenario is the motor will burn out. The worst case is it could damage the chassis. This is highly likely. Think about it logically.

Refer to the L298n tutorial I wrote, it explains it's operation and the purpose of the pins on the L298n motor controller board. These are the same pins as on the L298n chip which is on the board.

If you want to know how those who have used Arduino to control a steering motor have done it I suggest you ask them. From the ones I saw they reverse engineer the existing H-Bridge on the car, this is not the same as using a different H-Bridge. The existing motor controller may have a number of different aspects to it, it may have some type of limit switch or feedback pot.

But what I do know is if you connected one channel of a L298n H-Bridge to a steering motor you will damage either the motor or the chassis. It is not the correct method. Use a servo or use a feedback pot and limit switches with a spring return to centre.

Asking the same question and ignoring the answers will not change this.

#19  

@Perses... In the link you posted in your post #14 ..... The first video the steering is being controlled by a standard servo motor.... Most RC cars use a servos to control steering, not an H-bridge... The H-bridge is used to control the drive motors only... In several other of your arduino videos it is clear the arduino is controlling the steering, again via a servo... The EZB can do the same thing...

But what do I know....

#20  

Richard R,

How does this one work

Because thats the setup I was following

#21  

I will try with a servo, since i have a ton of these cars, if i break it i can use another:)

#22  

Also, if that video use s a servo, it still runs through an Hbridge. Is it possible to do that with ezb?

Thanks

#23  

Looking at that video, the wheels definitely have centering springs (just watch the way they pop back to the center when the turn request ends). I am not sure if that is a servo, or a housing for a little hobby motor. If it is a motor, there is also probably some kind of clutch mechanism that allows the motor to keep spinning without damaging the turning mechanism when the wheels reach their furthest extent. It isn't limit switches because the wheel is staying turned until power is released, then popping back to center. Best guess is some kind of simple clutch.

If it is a servo, there would be no need to use an H-bridge because the EZ-B (or an Arduino) can drive them directly. You would still use an H-Bridge for your drive motors and just leave the other channel un-used.

Alan

#24  

The bottom line is...why do it the hard way?....Just use a servo and bob's your uncle...The servo will also provide you with variable steering (like a real full sized vehicle) not just extreme right or left...