
Perses
USA
Asked
— Edited

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?
Using a H-Bridge for the steering motor is considered bad practice and is not the solution that I could ever advise on. Forcing a motor to push against it's limits is bad for the motor and while, in this case at least it may not be enough to break the chassis (who knows if it is or not?) it could on other chassis. It will also increase the current draw of the motor which will decrease the battery life amongst other things.
As Alan said, high end RC cars and planes use servos. Cheap $10 RC cars are built to budget and are often found to be poorly built, this one is no exception to that rule.
Also, the YouTube video posted where this method is used, well the scotch tape holding it all together speaks for itself really. At least it has spring return to centre position (without that, good luck!)
If you want a quality build which wont cause problems and wont fall apart spend the time to retrofit a servo to the steering or at the very least a feedback pot.
The quickest way is not always the easiest way.
Thanks for the advice, despite the fact that it Advocates for reinventing the wheel.
If no one can answer how to use the front motor with ezb, i will consider this post closed due to lack of experience on the matter. This wasn't a question for speculation. It was a, 'I want to use an rc vehicle, by only implementing an Hbridge like with arduino'.
The answer is inconclusive.
Kudos to Rich for steering conversation to switching to a servo, or installing treads.
The answer is "doing so will damage the components and is bad practice therefore I am not willing to provide an answer which leaves you with a sub standard end product".
The answer you seek is in the tutorial I wrote which I have referred to multiple times and linked to in the first reply. The tutorial explains how the L298n works. By reading it and understanding it you will find the answer you are looking for.
What we need to understand is that other people may also use this post for guidance, they may search for the same thing but with a lesser quality motor or chassis or a larger motor, both of which could cause damage as previously mentioned. While it may be fine by you to risk ruining a chassis or motor it's not something I want to advise to anyone.
Read the tutorial I posted, learn about what signals to which pins will cause what to happen to both motor channels. It's all there.
Just to reiterate, the lack of the solution you wish to have is not due to inexperience or lack of knowledge but due to refusal to enable bad practice.
The answer of how to use a front motor is to use a custom movement panel, rather than an H-bridge movement panel, so you can control which digital pins go high or low based on your desired action.
I think we answered that back on the first page. We then tried to explain why it is a bad idea and the kinds of problems you are likely to experience by using an H-bridge in a manner for which it was not designed, but the question was answered.
Alan
No RC car worth having uses motors for steering rather than a servo.
@Perses You don't like my analogy?.... LOL.... How about this then.... You can steer an airplane with the rudder... It's not easy or very efficient but it can be done.... If you're the pilot though, wouldn't it be a no brainer just to use the ailerons?.... As @Zap said, real RC cars use servos to steer. Toys use cheap alternatives in order to reduce manufacturing costs...
Head on over to an RC enthusiast forum and ask them how they steer their RC cars....
thats fine, damaging it is of no consequence to me. this is just for testing. Will eventually move to a custom rig, but for now am trying to conserve space by using onboard motors.
Basically, if it ain't broke, dont fix it. thanks for the work around advice, but id like to stay with my thickskulled rudder idea.
@zap, i agree but the closest rc shop is far, and have no time for it.
I can always order online, but thats waiting time. i was looking for a quick working fix without much work, so i can focus on programming instead of engineering.
@Alan, here are some closeups