Yes, there is a way to increase or decrease the speed of DC motor, its called "Pulse width modulation - PWM" . you can use pin 3, 5, 6, 9, 10, and 11 for that purpose. Thanks for the comment.
@@VirtualEngineer_MKS Thank you for replying, but i used rpi gpio functions i got the way to control motor speed by defining motor enable pins as pwm output as = GPIO.pwm(,1000) .start()
Hi Joody, thank you for the comment.. it very easy.. if you keep update your code completely and click on simulate, the error goes off.. Try it! if it still exist please let us now.
man, I code like you 100% but it said:"TabError: inconsistent use of tabs and spaces in indentation " at line 16( GPIO.output(DC_motor_b , GPIO.LOW)), can you paste your code here, I dont know what is that error
Informative.
In my simulation the motor works very faster, is there any way to control motor speed by using code or by configuring power.
Yes, there is a way to increase or decrease the speed of DC motor, its called "Pulse width modulation - PWM" . you can use pin 3, 5, 6, 9, 10, and 11 for that purpose.
Thanks for the comment.
@@VirtualEngineer_MKS Thank you for replying, but i used rpi gpio functions
i got the way to control motor speed by defining motor enable pins as pwm output as
= GPIO.pwm(,1000)
.start()
How did you solve the error at the end of the video ? I had the same error
Hi Joody, thank you for the comment.. it very easy.. if you keep update your code completely and click on simulate, the error goes off.. Try it! if it still exist please let us now.
@@VirtualEngineer_MKS how did you solve the error
man, I code like you 100% but it said:"TabError: inconsistent use of tabs and spaces in indentation " at line 16( GPIO.output(DC_motor_b , GPIO.LOW)), can you paste your code here, I dont know what is that error
its seems like you had made mistake while coding. please check the code and run the simulation