How to Control 2 DC Motors with Raspberry Pi!

  Рет қаралды 11,549

Aviv Makes Robots

Aviv Makes Robots

Күн бұрын

Parts Used:
As an Amazon Associate I earn from qualifying purchases.
• Motor Controller: amzn.to/3h3C4sG
• Power Supply: amzn.to/37DdKLk
• Motors Used: amzn.to/3aticxT
• Motor Controller Shown: amzn.to/3h3C4sG

Пікірлер: 44
@LiquidTensi0nExperim
@LiquidTensi0nExperim 3 жыл бұрын
As a software developer, I struggle to explain basic software syntax in a way that is both clear and not boring to laymen. I think you do a great job of explaining the functional aspects of the program as well as some rational for why syntax is how it is. Great job
@AvivMakesRobots
@AvivMakesRobots 3 жыл бұрын
Thank you!
@DeathGaurdPaints
@DeathGaurdPaints 2 жыл бұрын
How do I write the code can you tell me since you figured it out like how do I get to the area where I write the code
@jomfawad9255
@jomfawad9255 8 ай бұрын
Can you please make a video how to connect 2 dc motors using a DBH-12 motor driver and raspberry pi? Thank you!
@AvivMakesRobots
@AvivMakesRobots 7 ай бұрын
I am trying to get these brushless motors to work now. I want to start using brushless w/ sensor instead of brushed.
@shingrutashish5639
@shingrutashish5639 3 жыл бұрын
How to connect dc motor encoder to raspberry Pi which motor driver is required ? Does L298N will work ?
@AvivMakesRobots
@AvivMakesRobots 3 жыл бұрын
I haven't done it, but I am guessing the encoder would be connected to the Pi and not the motor controller.
@nimfbdhdkdm
@nimfbdhdkdm 2 жыл бұрын
software is easy for me but hardware is so diffucult.
@AvivMakesRobots
@AvivMakesRobots 2 жыл бұрын
For me it's the exact other way around. Maybe we should keep in touch
@ChrisPBacon-fx3ut
@ChrisPBacon-fx3ut Жыл бұрын
How would I code an input as a receiving transmission from a remote control?
@AvivMakesRobots
@AvivMakesRobots Жыл бұрын
The way i control it with a cell phone is with node red. I basically took this code and just used their online web server. You can also just remote into the Pi with VNC on a laptop and just run the code like that. Probably the fastest way is with SSH, but there is less control with it.
@CodeMastersChannel
@CodeMastersChannel Жыл бұрын
good video
@AvivMakesRobots
@AvivMakesRobots Жыл бұрын
Thanks!
@DeathGaurdPaints
@DeathGaurdPaints 2 жыл бұрын
It keeps getting stuck in the first motor how fix
@AvivMakesRobots
@AvivMakesRobots 2 жыл бұрын
Hi, do you mean it only rotates one motor even with the code for both? Be sure the PWM wires are connected to the second motor properly.
@DeathGaurdPaints
@DeathGaurdPaints 2 жыл бұрын
@@AvivMakesRobots no i mean it goes on the second one then switches to the first and never switches back
@micahnissly219
@micahnissly219 3 жыл бұрын
Great vid! Thanks
@AvivMakesRobots
@AvivMakesRobots 3 жыл бұрын
Glad to hear you liked it! More to come.
@Drxxx
@Drxxx 3 жыл бұрын
Cool video
@AvivMakesRobots
@AvivMakesRobots 3 жыл бұрын
Thanks!
@emirhaikal2014
@emirhaikal2014 3 жыл бұрын
bos can you help me. how to run 4 12v dc motor using raspberry pi 4
@AvivMakesRobots
@AvivMakesRobots 3 жыл бұрын
I would look for a 4 channel L298 driver depending on the motor current you need. There are many available.
@emirhaikal2014
@emirhaikal2014 3 жыл бұрын
@@AvivMakesRobots nice, thank you for helping :)
@emirhaikal2014
@emirhaikal2014 2 жыл бұрын
what f i use 2 l298n
@DeathGaurdPaints
@DeathGaurdPaints 2 жыл бұрын
How do I write the code?
@AvivMakesRobots
@AvivMakesRobots 2 жыл бұрын
Feel free to copy the code I put in the video. You may need to change it a bit to fit your needs.
@KaivitiSingh
@KaivitiSingh 3 жыл бұрын
This looks like a promotional video to sell Raspberry Pi. This is too expensive and has almost no resources online. Better would be to use Arduino with L293D motor controller for any such work. Another important issue is that Pi uses 'Python' (a baby stuff) and not the real stuff which is C, C++.
@AvivMakesRobots
@AvivMakesRobots 3 жыл бұрын
Python is not baby stuff, and the Arduino uses what could be considered "baby C". I know there are no resources on this controller with use for the Pi. That is why it took me a while to make the code for it.
@KaivitiSingh
@KaivitiSingh 3 жыл бұрын
@@AvivMakesRobots I don't know which hidden cave you live-in..please know that Python is only used in kids schools (year 10) in Australia and California. Where as C, C++ is taught at University Level by all Major 4 ranking universities: MIT, UC-Berkeley, Stanford and Harvard. Also Arduino is the largest platform on this earth for programming micro-controllers.
@AvivMakesRobots
@AvivMakesRobots 3 жыл бұрын
@@KaivitiSingh And this is how you control it with python and raspberry pi. I would not discount the power of python... Python is the official coding language of google. The very website you are typing into (youtube) was made in part with python.
@KaivitiSingh
@KaivitiSingh 3 жыл бұрын
@@AvivMakesRobots you should be on Moon. Everyone here in USA or Australia has done Python in middle schools. Some people who have NEVER been to any university and hence didn’t get any chance to learn Complex Languages normally stay with Phython. Parts of Europe && third world countries like India also teach that in universities, this is why Indian degrees are not recognized anywhere in the world. The FACT is that no patent on micro-controllers has EVER been registered with US Patents Office involving this basic language… nearly all patents are in C, C++. Please go and do a proper degree from some ranked university and know the facts. Web programming is a baby stuff and is done in all the basic languages, it doesn’t need any preciseness (this is why there are errors all over the internet). Google is just a domestic search engine, the system which controls the internet is UNIX (look at the format of web addresses) and this OS comes with C language only. Google goes with anything, they have LINUX with C, Android, Pinquino IDE with C, C++ and many more there is no specifics about Python in their documentation. Actually Python is a washed-down and simplified version of C using only few of the C syntax and semantics to stay ‘baby’ and simple. So you can NEVER do any bug-free complex coding with that. I hope this will be of some HELP to you.
@desmondfosterchild841
@desmondfosterchild841 3 жыл бұрын
@@KaivitiSingh BOO this man!! BOOOOOOOOO
The Ultimate Guide to using Motors in Robotics (including ROS, Raspberry Pi)
25:56
Zombie Boy Saved My Life 💚
00:29
Alan Chikin Chow
Рет қаралды 34 МЛН
SPONGEBOB POWER-UPS IN BRAWL STARS!!!
08:35
Brawl Stars
Рет қаралды 24 МЛН
Violet Beauregarde Doll🫐
00:58
PIRANKA
Рет қаралды 48 МЛН
Raspberry Pi Servo Motor Control - No Jitter!
13:52
Gary Explains
Рет қаралды 53 М.
Noobtronics Tutorial: Controlling a DC Motor with Raspberry Pi
5:03
Fringe Dynamics
Рет қаралды 20 М.
How to control a DC motor with an encoder
9:30
Curio Res
Рет қаралды 436 М.
Raspberry Pi  How to Control a DC Motor With an L298N Driver
3:23
Maker Tutor
Рет қаралды 196 М.
Part 3  - Install the L298N motor driver module
9:19
STEManGo Electronics
Рет қаралды 47 М.
L298N Dual H-Bridge Motor Controller (Raspberry Pi)
15:18
PiddlerInTheRoot
Рет қаралды 100 М.
Driving DC Motors with Microcontrollers
1:04:32
DroneBot Workshop
Рет қаралды 645 М.