Motor, Potentiometer , L298n, Arduino board

Friends,

I've decided to work my project off of the 2 motor potentiometer build in this link(scroll down to "adding speed controls") So I got the code to work for 2 small motors, However for my project I want to use 12V-600RPM motors (https://www.amazon.com/uxcell-600RPM-Encoder-Mounting-Bracket/dp/B078HYRPZM).

Does anyone know if this will be safe for my board/ what the required voltage is?

Secondly, On his schematic does he have 2 wires going into ground? one from power supply, one from arduino groud?

Please Advise,

bull Engineer

So does this brand new thread supersede this one, this one, this one and this one?

Why do you keep asking the same question when you have been given an answer in previous posts. There are many tutorials out there that show you how to do this.
Seems like you need to brush up on your basic electronics.
Also need to read the sticky at the top"How to use this forum".
It will show you how to post your code in code tags,how to make your links clickable and how to post images. Makes it much easier for people to help you.
Good answers require good questions.

Thanks for the help guys. Maybe I should switch the the rasberripi forum. Those guys are great

Good luck.

BullEngineer:
Thanks for the help guys.

My question was a serious one, not flippant. All the threads are (or seem to be, to me any road) related in some convoluted way, and I was genuinely wondering if this thread is going to be a sort of consolidation of what's been going on.

BullEngineer:
I've decided to work my project off of the 2 motor potentiometer build in this link(scroll down to "adding speed controls")

"this link"? What link is that?

You may indeed be better off in the "rasberripi forum". Whoever they are perhaps they're better at mind-reading than we are.

Steve

Too bad there isn't a feature where you had to pass a basic electronics test before
you could post on this forum.
See so many post's where it is evident that the person doesn't have a basic understanding of electronics.

Too bad there isn't a feature where you had to pass a basic electronics test before you could post on this forum.

I don't think that that is necessary. I, for one, am happy to help someone to understand the basics if I can. That often entails posting links that may help them or posting search terms so that they can find the information that will help them. I haven't the time to write tutorials for every question especially when the information is available elsewhere.

What irks me is when someone asks the same question over and over then ignores all of the advice given and questions asked.

detown:
Too bad there isn't a feature where you had to pass a basic electronics test before

That goes against the whole spirit of this forum, where the very origins of Arduino was to allow artists to add some motion and blinking lights and stuff to artwork. Those guys and gals, almost by definition, have no experience in electronics, and certainly shouldn't be expected to.

Assuming that happened, that there was an entrance exam so to speak, you would next be complaining "Too bad there isn't a feature where you had to pass an intermediate electronics test...."

detown:
Too bad there isn't a feature where you had to pass a basic electronics test before
you could post on this forum.
See so many post's where it is evident that the person doesn't have a basic understanding of electronics.

We assume they're coming here to learn and there are many of us who are happy to help them, provided they put some effort in.

The problem is when the lack of basic knowledge is combined with being unwilling or unable to take in any of the information provided.

Asking the same question many times in the hope of getting a different answer you like better is pretty close to the definition often attributed to Einstein "The definition of insanity is doing the same thing over and over again, but expecting different results".

Steve

Ok new question

So lets consider a circuit with one 12V-600RPM motor(https://www.amazon.com/uxcell-600RPM-Encoder-Mounting-Bracket/dp/B078HYRPZM).
A power supply of 12V 1A ( this is variable as I can change the voltage and ampheres)

If i were to make this https://www.instructables.com/id/Control-DC-Motor-Speed-Using-Potentiometer-L298n-A/
circuit ( i have the same H-bridge and and arduino board)

What size(resistance) potentiometer will I have to use? 10k? remember I can switch the voltage and ampheres

Please advise with any doubts,

Bull Engineer

BullEngineer:
What size(resistance) potentiometer will I have to use? 10k? remember I can switch the voltage and ampheres

Remember that the motor voltage and current isn't going anywhere near your potentiometer. It's not as if the potentiometer is in the motor's power circuit, in the way one might control a motor with a Scalextric hand throttle. I rememeber how hot those got when I was a kid, if you had some serious motors but cheap handsets. Can still imagine the smell....

The pot is just providing a variable voltage of 0-5V on an analog pin which then simply informs the PWM duty cycle via the analogRead() edit oops analogWrite(). It's the 298 which is switching the supply from your power unit according to that duty cycle.

I see the instructable uses a 1k pot, you suggest 10k. I wonder if it makes much difference? It might (just a guess) make a difference to the granularity of the analogRead().

Makes sense! so thats the benefit of the arduino board. If I were to take away the arduino/code and only use a breadboard, NOW the resistance of the potentiometer matters? I get it now.

You could use a potentiometer, but I think wired as a rheostat, to control a motor's speed yes, but then the resistor would be in series with the motor and everything will be very hot.

You have posted a lot recently about using h-bridges, and I must say i sometimes didn't understand "where you were coming from", pardon the cliche. Seems you had a bit of a misconception about it all?

But as you have now said ...

BullEngineer:
so thats the benefit of the arduino board.

... I'm glad the penny has dropped.

Good karma coming your way my man. Unfortunately, I am working on this project with a team and im the only one who wants to use arduino because they believe it is too much work. Ive tried explaining 1000 times that it is easier to get a safer schematic(no overheating) with arduino. I guess we will find out the hardway when we have to buy new motors when ours blow up.