One of the best walkthroughs, I have come across, thoroughly explained. And got me well to controlling one motor. However, when I tried the same with another motor using the same approach, for some reason, that just didnt work . Sometimes the motor would keep running (even before running the code) and didnt respond to the Pi instructions. Other times, it would just stay put and not move at all. I was wondering if there is a choice of pins involved? E.g. just a few pins that truely support the PWM etc? Is this a problem that is commonly faced? Been breaking my head on this a couple days, not able to figure out.
Hi Mr. Murtaza I found your tutorial very easy to understand, will look forward to all your tutorials. I have followed this tutorial and have my robot running without problem but the robot seems to go right when forward, It seems the right motor has less power.
Yes this is a common issue. Both motors rotate at different speeds. This can be corrected in the software part where you can add and subtract a certain tuning value to the motors. But if the turning is quiet significant than the motor might be damaged or there might be a loose connection.
@@murtazasworkshop Thanks for your reply, I found the problem, the left, and right motors have different gear ratio after replaced with the same motors it works just fine.
In this video, you used a separate power source for the motor, but instead of doing so, can't I modify the poser supply of raspberry pi (by making some voltage distribution circuit) and use only one power supply? Appericiate for making a good video
This is great, but one complaint I have is that the diagram for the wiring doesn't display the actual pin names we are plugging them into. It's only a problem for me because I'm using a breakout board and I don't know where the ones you used, are mapped on the breadboard now. I have the Rpi pinout diagram, but I can never tell which directionthe arduino is supposed to be facing in relation to the pinout. It's a minor thing, and I know I can just go look it up, which I will, but I wish I could tell which pins you are actually using, by name!
This video was great, thank you, but I have a question, there is a project and I will connect a 2 dc motor with a raspberry so I need a motor driver. I don't know which type to use. Is this stable? If we stop the engine, the wheels can move by any external influence or will remain stationary
I am a beginner. Can you tell me the difference between a motor controller and pico in working with motors? Do I need both? Is one better than the other?
There is no red light on my motor driver unless I put the live/red wire in the far left and the black one in the far right. Any ideas what I am doing wrong?
Hi there. :) Any idea why is the motor so slow? When I apply the batterypack directly to it, it goes a lot faster. At 100 duty cycle the robot can't move at all across my carpet.
Do you mean duty cycle of lower than 30? If you are talking about duty cycle it’s coz the average voltage will be the duty cycle/100*high voltage. So if your high voltage isn’t that high then 30/100*high voltage will be a low average voltage value.
Hi Murtaza, Im facing issue with the change in direction of dc motor. I connected single dc motor to raspberry pi using REES52 L293D driver module. In this driver module for a single motor i only have two pins referred as MTR and IN1 . So i tested with the code that u suggested in the video but its not working. For me the motor always rotates in the clockwise direction. PIN 20 - Connected to MTR pin in driver module and PIN 21 - Connected to IN1 pin in driver module . I dont have L298N driver. Could you help me in fixing this issue. I want to control the motor direction based on the IR sensor data. print("Change direction") GPIO.output(20,GPIO.LOW) GPIO.output(21,GPIO.HIGH) print("Change direction") GPIO.output(20,GPIO.HIGH) GPIO.output(21,GPIO.LOW)
the best walkthrough i have seen yet. i just started with writing script 2 days ago and this is already super simple to understand.
Great job, walking through the steps and then discussing why OOP. Thank you!
I just love you bro, you are amazing. Thanks a lot for your videos cause they have helped a lot.
One of the best walkthroughs, I have come across, thoroughly explained. And got me well to controlling one motor. However, when I tried the same with another motor using the same approach, for some reason, that just didnt work .
Sometimes the motor would keep running (even before running the code) and didnt respond to the Pi instructions.
Other times, it would just stay put and not move at all.
I was wondering if there is a choice of pins involved? E.g. just a few pins that truely support the PWM etc? Is this a problem that is commonly faced? Been breaking my head on this a couple days, not able to figure out.
Hi, a good introduction to motor control and object orientated programming. bye
fantastic explanation - thank you ser.
Thank You Which software you used for circuit diagrams(Starting of video) ??
Fritzing
Hi Mr. Murtaza I found your tutorial very easy to understand, will look forward to all your tutorials.
I have followed this tutorial and have my robot running without problem but the robot seems to go right when forward, It seems the right motor has less power.
Yes this is a common issue. Both motors rotate at different speeds. This can be corrected in the software part where you can add and subtract a certain tuning value to the motors. But if the turning is quiet significant than the motor might be damaged or there might be a loose connection.
@@murtazasworkshop Thanks for your reply, I found the problem, the left, and right motors have different gear ratio after replaced with the same motors it works just fine.
In this video, you used a separate power source for the motor, but instead of doing so, can't I modify the poser supply of raspberry pi (by making some voltage distribution circuit) and use only one power supply?
Appericiate for making a good video
This is great, but one complaint I have is that the diagram for the wiring doesn't display the actual pin names we are plugging them into. It's only a problem for me because I'm using a breakout board and I don't know where the ones you used, are mapped on the breadboard now. I have the Rpi pinout diagram, but I can never tell which directionthe arduino is supposed to be facing in relation to the pinout. It's a minor thing, and I know I can just go look it up, which I will, but I wish I could tell which pins you are actually using, by name!
what software do you draw the circuit on? thanks
Fritzing
awesome and detailed tutorial...can you please make tutorial with bts 7960 motor driver
This video was great, thank you, but I have a question, there is a project and I will connect a 2 dc motor with a raspberry so I need a motor driver. I don't know which type to use. Is this stable? If we stop the engine, the wheels can move by any external influence or will remain stationary
I am a beginner. Can you tell me the difference between a motor controller and pico in working with motors? Do I need both? Is one better than the other?
can i use the same power source for raspberry and the motor driver ? thanks soo much
U r great sir❤️
Thank you appreciate your support
Hi which app do you use for schematics?
Thank you sir !! 😊
Which version of rpi.gpio did you use?
What is the name of the editor you are using? please.
Thank you.
There is no red light on my motor driver unless I put the live/red wire in the far left and the black one in the far right. Any ideas what I am doing wrong?
Hi there. :) Any idea why is the motor so slow? When I apply the batterypack directly to it, it goes a lot faster. At 100 duty cycle the robot can't move at all across my carpet.
Hi! I have a question, do you have any idea why the motor won't budge at power levels lower than 30? I am using the exact same setup as yours.
Do you mean duty cycle of lower than 30? If you are talking about duty cycle it’s coz the average voltage will be the duty cycle/100*high voltage. So if your high voltage isn’t that high then 30/100*high voltage will be a low average voltage value.
@@ananthramvijayaraj4554 bro it’s been a year😂
Hi Murtaza, Im facing issue with the change in direction of dc motor. I connected single dc motor to raspberry pi using REES52 L293D driver module. In this driver module for a single motor i only have two pins referred as MTR and IN1 . So i tested with the code that u suggested in the video but its not working. For me the motor always rotates in the clockwise direction. PIN 20 - Connected to MTR pin in driver module and PIN 21 - Connected to IN1 pin in driver module . I dont have L298N driver.
Could you help me in fixing this issue. I want to control the motor direction based on the IR sensor data.
print("Change direction")
GPIO.output(20,GPIO.LOW)
GPIO.output(21,GPIO.HIGH)
print("Change direction")
GPIO.output(20,GPIO.HIGH)
GPIO.output(21,GPIO.LOW)
noobie here, is this working on raspberry4?
Hi, Sir. May I know what application that you used to build the digital electrical circuit for raspberry pi? (0:35)
I think he is using fritzing
Frit
hello where have u written this code?
Hi is it possible for you to do a video with servo motor like MG 996R?
how can i do speed control with raspberry pi pico?
What is the name of the program you use from 0:08 to 0:14 sec?
firtizing
It’s fritzing right?
Hii, sir.
Traceback (most recent call last):
File "/home/pi/motorCode.py" , like 5, in
GPIO,setwarings(false)
AttributeError: module 'RPi.GPIO' has no attribute 'setwarings'
problems sir.
Tq
does anybody know this software he is using
Can you tell the python IDE you are using for your Pi?
Thonny.
What ide u are using plz tell me sir
Its called 'Mu' its preinstalled in Raspberry Pi
But sir I don't have are u using latest rasbain..?
Yes its the latest one . You can try installing using
sudo pip3 install mu-editor
OK sir thank you so much❤️
Sir one question can I share ur video on my website If the content match ur video
not working your website! sad
GG
your website is now working
please check it out
Which simulation program are you using?
firtizing