I dont know why but the dc motor only goes one direcctio. I mean it goes to one side but not to the other side when I say it to go it stops. Can someone help me please?
Raspberry pi is using a different power source. For this example, I was using a 5V 2.5A adapter and on another project (ruclips.net/video/63b76p7MuG4/видео.html) I used a 5V 2.1A power bank to power the Pi. Side Note: I am using Pi 3B+, Pi 4 is more power-hungry.
In theory, you could use the same battery, it depends on the power consumption by your motors and what kind of battery (LiPo/ 9V Alkaline/ 18650 ,etc) you are using, and how much power it can supply. To keep things simple I prefer you use a different power supply.
@@collvy I’m in a battle bot competition and we have a 12 lb weight limit that’s why. Else I would. But we’re using lipo batteries and it’s a 2.2Ah 25C battery for 2 drive motors, a weapon motor, and a pi. Everything else is negligible current draw or power consumption. The two drive motors pull 9.1A together at max speed, and the weapon (flipper) motor at max torque takes 20.45 A. I’m hoping I can connect all to one battery, with in between components like ESCs and junction board etc and connect a pi with a voltage converter
Thanks a lot! This filled in some gaps that "step-by-step" tutorials missed.
Awesome video and really appreciate the time and effort you put into this. It was so easy to follow along.
Thank you so much !!
I dont know why but the dc motor only goes one direcctio. I mean it goes to one side but not to the other side when I say it to go it stops. Can someone help me please?
Does the motor driver regulate the voltage and current to the raspberry pi? Because it has to be 5V to the raspberry pi and can’t go under 3A.
Raspberry pi is using a different power source. For this example, I was using a 5V 2.5A adapter and on another project (ruclips.net/video/63b76p7MuG4/видео.html) I used a 5V 2.1A power bank to power the Pi.
Side Note: I am using Pi 3B+, Pi 4 is more power-hungry.
@@collvy can I use just one battery pack to power motors and a pi? I have a buck converter to step down voltage to the pi. Would this work?
In theory, you could use the same battery, it depends on the power consumption by your motors and what kind of battery (LiPo/ 9V Alkaline/ 18650 ,etc) you are using, and how much power it can supply.
To keep things simple I prefer you use a different power supply.
@@collvy I’m in a battle bot competition and we have a 12 lb weight limit that’s why. Else I would. But we’re using lipo batteries and it’s a 2.2Ah 25C battery for 2 drive motors, a weapon motor, and a pi. Everything else is negligible current draw or power consumption. The two drive motors pull 9.1A together at max speed, and the weapon (flipper) motor at max torque takes 20.45 A. I’m hoping I can connect all to one battery, with in between components like ESCs and junction board etc and connect a pi with a voltage converter
What do we need to enable in raspi confit before we connect the l298n . I know we have to enable i2c but what else
We don't need i2c, we can use regular GPIO to send signals to the PI.
www.collvy.com/blog/controlling-dc-motor-with-raspberry-pi
very thanks
what is the software name to write a Python code in raspberry pi
Thonny
Gbu
The conection esquema is wrong.....
Could you please point out which part?