Thank you for the comment, I sometimes forget the "purpose" of my own channel to share educational content, and not try to be this established company with this super good videos to feed the algorithm. I am glad to hear these tutorial videos are still helping other creators.
I have something better coming up that I played around with last week, better motor driver and PCB board, The L298N has a high voltage drop not super great
I am powering my motors with 6V battery pack and my robot is not responding sometimes to my input. Is 6V not enough to power both robot motors? I am using 4 AA batteries
it might be if your PWM is set to low the motors will not turn, not having enough energy. These drivers also has a high voltage drop they are not very good drivers
Hello In your video you feed the pico through the usb socket. can it be powered with the LN 298 card? if yes how? otherwise how to power the pico other than through the usb socket?
So I mentioned in video the LN298 does have a 5V output which you can plug into pin39 of Pico to power if the USB is not plugged in, both should not be plugged in at same time, so when programming the Pico do not have power connected from the motor driver to the Pico.
@@NerdCaveYT Thank you very much for your answer. Another question, is the voltage supplied to the LN298 board lowered when it reaches the engines? If I power the board with 7.4V I will have how much power to the motors?
@@pasquentmax If I remember correctly there is a high voltage drop like 1.6V or somewhere in that range, the LN298 is not a great motor driver, I used it because had a few laying around, recently I made a new design for the DRV8833 a custom PCB which I will probably upload next week
All electronic components need a reference point to interpret voltages correctly. This reference point is usually the ground (or 0V) of the system. For the Raspberry Pi Pico, and the L298N, and power source battery, having a common ground ensures that all parts of the circuit share the same reference point. This way, the signals and voltages are interpreted consistently across the components. If we do not have a common ground this can cause signal reading problems
Thanks, I've been trying to do this , but with just using the IC. It works fine with the arduino uno, but when I plug the same thing into the Pico, I get nothing. I check the pico pins with an LED and there are signals coming out. Any ideas?
my pico won't active the power out of the controler for the TT motor, but powering the input 1& 2 with 5v and ground will make the motor spin, how do i get my pico to activate the motors?
I am a bit confused are you power the driver with a separate power source, the pico won't be able to power the motor driver, The motor driver can deliver 5V output which you can connect to pico to power it, but then you can't have USB plugged into the pico.
I have a question, how do i control the speed of the motor normally? i've tried using PWM for the enable pins, and setting the duty cycle lower, but that didn't seem to work. I am not using a joystick, and just want my code to be like the first example, but with speed control. Thanks!
Only way to do speed control is with PWM, now if the PWM duty cycle is to low, the motor will not receive enough power to make the shaft turn and you should hear a high pitch frequency noise, and as you increase the duty cycle it will start to turn. So with button controlling the speed make the duty cycle to a point where motor turns then you can use a button to increase or decrease the duty cycle to control the speed. Also a side note the L298N even though very common motor driver it is not as efficient as the alternatives. I will next week make an update video with a different driver the drv8833
@@NerdCaveYT Hello , i have the same problm . I am trying to make robot follwing the black line but the car is moving too fast , and the lowest pwm i can set is 52000 . What can i do ? if you need i will send you my code , please help
That sounds strange so when the left output works and right output of driver but once you run both it does not, could it be possible a code issue? Do you have a multimeter to check to voltage level that might be that there is to high of a voltage drop from the driver and you might want to increase your PWM if you used it
@@NerdCaveYT yh I think it's a voltage issue but I'm not sure, one runs fast the other slow, the motors are interchangeable so nothings wrong there, but anyway thanks for responding:)
if you connect the board to a breadboard you can just use normal wire then, network cable works well or just anything that works with breadboard if you have no breadboard then directly soldering wire to pins
i do now have access, but now i'm facing a problem. i'm fairly cretain that it's not the motor's fault, but running the code doesn't seem to affect the motors at all.
It's alive, thank you dude...! ~ I'm using four 2A batteries for powersupply, and sometimes there's only beeping sound (and the correct LEDs) from the L298n...! Is this a powersupply issue...?
Is the beeping sound coming from the module? I have not encountered that before. I know if you use the PWM and you do not supply enough voltage to the motors it will give of this high frequency buzz sound.
Thank you, you can change the speed with the duty cycle there is the line EN_A.duty_u16(int(duty_cycle)). A duty cycle of 65535 will be the highest speed
My god! this channel has every tutorial i was needing, excellent!
It should have had more but I was lazy lol, next two years I will be more active on TH-cam
Thank you very much for all your labor and time. You have been very helpful. Greetings from Turkey.
Thank you very much, it is comments like this that keeps me making videos.
@@NerdCaveYT we are always waiting for beautiful shares
I want to say THANK YOU for all your videos. You really helped me out with my projects.
Thank you for the comment, I sometimes forget the "purpose" of my own channel to share educational content, and not try to be this established company with this super good videos to feed the algorithm. I am glad to hear these tutorial videos are still helping other creators.
Great video - exactly what I needed 😃
I have something better coming up that I played around with last week, better motor driver and PCB board, The L298N has a high voltage drop not super great
amazing videos. love the way you go through it bit by bit. very educational
Thank you, I am glad you like them!
thank you for help with my code and for an inspiration for next project👌👍
Most welcome 😊
I am powering my motors with 6V battery pack and my robot is not responding sometimes to my input. Is 6V not enough to power both robot motors? I am using 4 AA batteries
it might be if your PWM is set to low the motors will not turn, not having enough energy. These drivers also has a high voltage drop they are not very good drivers
@@NerdCaveYT Good point! Thanks for your help
Can I control a servo that module? I want to make a roof open and close witj a rain sensor module and one servo that open /close when rains
It depends on the size of the servo and the current that it will draw, there are other more effective motor driver modules then this L298N
Hello
In your video you feed the pico through the usb socket. can it be powered with the LN 298 card? if yes how? otherwise how to power the pico other than through the usb socket?
So I mentioned in video the LN298 does have a 5V output which you can plug into pin39 of Pico to power if the USB is not plugged in, both should not be plugged in at same time, so when programming the Pico do not have power connected from the motor driver to the Pico.
@@NerdCaveYT Thank you very much for your answer. Another question, is the voltage supplied to the LN298 board lowered when it reaches the engines? If I power the board with 7.4V I will have how much power to the motors?
@@pasquentmax If I remember correctly there is a high voltage drop like 1.6V or somewhere in that range, the LN298 is not a great motor driver, I used it because had a few laying around, recently I made a new design for the DRV8833 a custom PCB which I will probably upload next week
Thanks, this tutorial really helped.
Glad it helped!
Why did we connected the ground of l298n, battery and the pico? What would happen if i directly connect l298n ground to the battery?
All electronic components need a reference point to interpret voltages correctly. This reference point is usually the ground (or 0V) of the system. For the Raspberry Pi Pico, and the L298N, and power source battery, having a common ground ensures that all parts of the circuit share the same reference point. This way, the signals and voltages are interpreted consistently across the components. If we do not have a common ground this can cause signal reading problems
@@NerdCaveYT Thanks for the reply but what could be the consequences?
Thanks, I've been trying to do this , but with just using the IC. It works fine with the arduino uno, but when I plug the same thing into the Pico, I get nothing. I check the pico pins with an LED and there are signals coming out. Any ideas?
is it possible to send me your diagram so I can have a better look? discord.gg/BTdMWN7ffr
@@NerdCaveYT thanks. I got it working. The issue was that the 3.3v from the Pico wasn't enough to power the ic. Had to use the other supply.
Great video, quick concise. Thank you
Thank you for the feedback, been thinking of making the coding parts a bit shorter.
my pico won't active the power out of the controler for the TT motor, but powering the input 1& 2 with 5v and ground will make the motor spin, how do i get my pico to activate the motors?
I am a bit confused are you power the driver with a separate power source, the pico won't be able to power the motor driver, The motor driver can deliver 5V output which you can connect to pico to power it, but then you can't have USB plugged into the pico.
I have a question, how do i control the speed of the motor normally? i've tried using PWM for the enable pins, and setting the duty cycle lower, but that didn't seem to work. I am not using a joystick, and just want my code to be like the first example, but with speed control. Thanks!
Only way to do speed control is with PWM, now if the PWM duty cycle is to low, the motor will not receive enough power to make the shaft turn and you should hear a high pitch frequency noise, and as you increase the duty cycle it will start to turn. So with button controlling the speed make the duty cycle to a point where motor turns then you can use a button to increase or decrease the duty cycle to control the speed. Also a side note the L298N even though very common motor driver it is not as efficient as the alternatives. I will next week make an update video with a different driver the drv8833
@@NerdCaveYT Hello , i have the same problm . I am trying to make robot follwing the black line but the car is moving too fast , and the lowest pwm i can set is 52000 . What can i do ? if you need i will send you my code , please help
I love this project!! Nice job!! 😁👍
Thank you, the follow up video will be using a Bluetooth to control it to make a simple robot.
I want to learn about the calculations. Can you please help me out with that.
which calculations ?
The math for the joystick position.@@NerdCaveYT
i have a wierd problme, the driver can control one motor fine but not both, each motor works fine individualy put when both plugged in only one workds
That sounds strange so when the left output works and right output of driver but once you run both it does not, could it be possible a code issue? Do you have a multimeter to check to voltage level that might be that there is to high of a voltage drop from the driver and you might want to increase your PWM if you used it
@@NerdCaveYT yh I think it's a voltage issue but I'm not sure, one runs fast the other slow, the motors are interchangeable so nothings wrong there, but anyway thanks for responding:)
which simulator did u use
Hi, I am confused by what you mean simulator, do you mean the IDE I am running my code in Thonny?
by simulator i mean like tinkercad and wokwi @@NerdCaveYT
he's using fusion 360
i don't have access to male-female wires at this time, how can i still do this?
if you connect the board to a breadboard you can just use normal wire then, network cable works well or just anything that works with breadboard if you have no breadboard then directly soldering wire to pins
i do now have access, but now i'm facing a problem. i'm fairly cretain that it's not the motor's fault, but running the code doesn't seem to affect the motors at all.
wait i am an idiot 😂😂! i didn't provide the power source! silly me! THANKS FOR THE CODE!!!
isnt the motor driver 5 v logiv
When i run the code with all the same connections only one motor spins
did you double check the wiring to the other motor
It's alive, thank you dude...!
~
I'm using four 2A batteries for powersupply, and sometimes there's only beeping sound (and the correct LEDs) from the L298n...!
Is this a powersupply issue...?
Is the beeping sound coming from the module? I have not encountered that before. I know if you use the PWM and you do not supply enough voltage to the motors it will give of this high frequency buzz sound.
@@NerdCaveYT yeah, it comes from the module, not the Pico board...!
Bro my library 'machine' isn't working, please tell me a solution btw great project
Have you installed micropython?
Good video, thank you.
Thank you too!
Can you tell me how to increase the speed of the motor ? (the code for that)
Great video btw !
Thank you, you can change the speed with the duty cycle there is the line EN_A.duty_u16(int(duty_cycle)). A duty cycle of 65535 will be the highest speed
hello bro i need help
What is the problem?
@@NerdCaveYT sorry for distributing problem is solved :D
@@CodingProgrammingAccount glad to hear sorry for late reply busy moving hopefully have my workspace set up in a week
@@NerdCaveYT new workshop let's goo
:D