Questions tagged [dc-motor]

DC motors are commonly used in robotics and vehicles. They come in brushed and brushless versions; the latter also includes stepper motors. Note they are distinct from servos, for which there is a separate tag.

Filter by
Sorted by
Tagged with
1
vote
0answers
32 views

Connect 5V DC fans to a Raspberry Pi 4

I wish to connect four 5V DC fans (each one current is ~0.1-0.15A) to a Raspberry Pi 4. As I can not add another power supply (PSU) beside the one of the raspberry Pi 4, I was thinking to connect them ...
0
votes
1answer
20 views

RPi drives motors on L298n for a few seconds and then stops

I am trying to make a Robotic Car using 4 motors and L298n for a motor driver. The motor specifications as listed on the purchase site are given below: Operating Voltage: 3V~6V DC Gear Ratio 1:48 No-...
2
votes
2answers
84 views

How to detect an electric current in a secondary circuit (12v)?

I want to detect if there is an electric current in the wire where I wrote "here > > > > > >" (on the image) The secondary circuit is a 12v circuit. How can I do this ? ...
2
votes
0answers
22 views

How do i properly daisy chain two motor drivers that both provide power to the Pi zero-w? [closed]

I am using two waveshare dual motor drivers to drive a total of 3 motors with room for another one. The HATs can be placed on top of each other as they have adjustable i2c addresses. I am planning on ...
1
vote
2answers
61 views

Is it ok to power L298N 5V from Raspberry Pi 4 5V GPIO? (or use 6V for L298N power supply?)

Disclaimer: I am a very beginner in electronics and experiencing it's first steps into Raspberry Pi and its functionalities. So, please forgive me any rookie mistakes and correct me if I have any ...
0
votes
0answers
49 views

Delay/Lag when controlling motors with arduino from raspberry pi

I'm making a car-type-thingy where I control motors connected to an arduino with a raspberry pi via serial communication. I'm using the adafruit motor shield to control the motors. I want to control ...
0
votes
2answers
174 views

How can I connect Raspberry Pi to L293D motor driver shield?

I am new to Raspberry Pi and I'm trying to connect my Raspberry Pi 4 to an L293D motor driver shield. I have scourged the internet for circuit diagrams but I have only found either L293D IC or L298N ...
1
vote
1answer
37 views

Using a motor driver such as the L298N with only one GPIO pin

I am currently working on a project that requires many different motors to be powered by a raspberrypi. Common drivers like the L298N use two gpio pins to drive a single motor in a direction, the ...
-1
votes
1answer
61 views

Raspberry Pi & Motor Control [closed]

I am looking to use raspberry pi to control a motor that has multiple speeds but want all speed and timing to be controlled on the pi. Would the proper setup be a breadboard with a servo motor ...
0
votes
0answers
37 views

Using DC motors on a PI

first question here. Ive looked through some of the otehr answers Project - a two axis solar tracker that calculates the position of the sun and drives two actuators. I started with a PCduino and ...
0
votes
0answers
30 views

Raspberry Pi3 - Controlling 4 DC motors

I need to feed 4 DC motors of 5V on my Raspberry Pi 3 Model B using PWM (Pulse Width Modulation). Currently, I have the next components: 2 NPM transistors, 1 L293D integrated circuit, resistors (220 ...
0
votes
0answers
85 views

How to disable output to serial (GPIO) during boot

I'm trying to drive a motor control over the Raspberry Pi's GPIO serial pins (GPIO 14 and 15) I've disabled the serial console, however, during bootup of the Raspberry PI, it still sends data over ...
0
votes
1answer
46 views

Issues with Throttle Control on ESC with RPi 3B+

I am using the 30A BLDC ESC to control a brushless motor from my Raspberry Pi 3 B+. The documentation for the ESC can be found here: ESC pdf I seem to have successfully calibrated the ESC, but after ...
0
votes
0answers
27 views

brushless motor overheating when connected to l298n motor driver

I am using a brushless motor such as this one and am trying to drive it in both directions using a l298n mini motor driver. However, when connecting the motor to the board and the board to the 5v ...
1
vote
3answers
102 views

How can I prevent motor drivers back powering my Raspberry Pi

I have a Raspberry Pi 4B controlling an L298N module. I also have 2 cell batteries powering both. The cell batteries power the Pi through the 40 pin connector. The motor driver is powered by the cell ...
1
vote
1answer
66 views

Running pump & servo - Relay needed?

simulate this circuit – Schematic created using CircuitLab So I am working on a project that will require both a servo motor plus a small water pump. Both run on 3.7 -6v and I am going to use ...
0
votes
0answers
28 views

Need to control a simple RC car using my Pi. Can't I directly connect it to the Pi's GPIO pins?

I wanted to do a project where I can self drive my RC car using machine learning. However I have never used a Pi before and im not sure how to proceed. Here are the basics of what i have right now. ...
1
vote
3answers
85 views

Can I reliably control four ESC with a servo driver board?

Im currently looking into building a quadcopter from scratch. The Raspberry Pi only has two PWM pins though, which isn't enough. And software PWM isn't great either, because you can't control a motor ...
1
vote
0answers
58 views

pigpio: Read PWM from RCcontroller then send to ESC via GPIO

Im trying to learn Python by combining my interest in designing an AWD radio controlled car (3D printed, Im decent with Fusion 360 too) with some smarts from Pi/Python to allow things like software ...
2
votes
0answers
35 views

Can powering a DC motor through the USB ports of my Raspberry Pi Damage the Pi?

I'm working on a project that contains two DC motors and a Raspberry Pi, I do not have other components like Relay, Motor Drivers, transistors etc. I am aware that powering a motor directly from an ...
2
votes
1answer
139 views

Rpi python GPIO PWM control L298 and PCA9685 motor HAT

I need to find out which GPIO pin on the raspberry pi will be connected to which module when I fit the Adeept Motor Hat v2.0 on the 40 GPIO pins. I am attaching the image and the schematic of the ...
1
vote
1answer
33 views

Robot Buggy Not Moving Once Set On Surface

I am using the standard tools and setup to make a Raspberry Pi robot buggy: 2 Miniature Brushless DC Motor 3 to 6V 2 Wheels Raspberry Pi L298N Motor Driver( with its battery pack connected) I have ...
0
votes
1answer
496 views

Rpi python GPIO PWM control L298N motor direction and speed problem

I am unable to understand parts of the code #!/usr/bin/python3 # File name : motor.py # Description : Control Motors # Website : www.adeept.com # E-mail : support@adeept.com # Author ...
0
votes
1answer
469 views

Rpi python using L298 motor driver and PCA9685 servo controller to change speed and diretion of robot car

I am unable to understand the code provided with the raspberry pi robo kit I got. I need help in understanding the code as I am new to raspberry. Thanks! #!/usr/bin/python3 # File name : ...
1
vote
1answer
140 views

Is it safe to use 3V3 on raspberry pi 3B+ to control a 3V DC motor?

I want to connect power to a 3V DC motor straight from 3v3 GPIO. Is it safe or will I brick my Pi 3B+ ?
0
votes
0answers
22 views

RasPi Drive RB-01 C073A

Does anyone have info on the RasPi Drive electronic controller motor Driver? I can't find information on how it should be connected between the RP 3 and a small DC motor.
1
vote
1answer
36 views

How to calculate the battery usage of raspberry pi with 2 motor drives

We have a raspberry pi 4 with 2 12v motor drive L298, 5 ultrasonic sensors, and raspberry pi camera but we need to know how to calculate the battery usage of all these chips, could anyone help with ...
2
votes
2answers
132 views

Driving 2 12v - 30A brushed DC motors with Raspberry Pi 3

For a robotic project we are building a security robot. As a base we bought one of those electric cars for 2 kids, where they can drive in themselves without a remote. We took it apart, and we now ...
0
votes
0answers
145 views

Unable to stop motor through GPIO in Python

I'm using an rPi to send a GPIO signal to a servo motor. When I run the program, the motor starts turning, and then continues without stopping, even if the program has terminated through the use of a ...
-2
votes
2answers
59 views

Is L293DNE Dual H-Bridge Motor Driver Chip/Board also a 5V voltage regulator/converter to power the Raspberry Pi itself?

Have been reading many articles showing how to connect DC motors to the Raspberry Pi and of course a DC Motor Driver Chip/Board is needed to come between DC motors and the Raspberry Pi GPIO Pins to be ...
1
vote
1answer
95 views

What is the frequency and cycle length of the pigpio library?

I've got a raspi 3b with an esc and a brushless motor attached. I can run the motor using pigpio the following commands: # First start the pigpio daemon sudo pigpiod # calibrate the esc pigs s 12 ...
1
vote
2answers
186 views

Raspberrypi unable to read 2000 PPR encoder

I am using a DC motor attached with a 2000 PPR incremental encoder. I am using RPI to count the number of ticks, my code works fine but I am not able to calculate all the 2000 ticks. Any help would be ...
1
vote
1answer
71 views

Robot arm using “Solenoid”

I'm looking to create some kind of "pianoplaying" Pi robot. I started to look into ways to create some kind of "arm" that can make a lateral movement and came across solenoids.I'm looking to create ...
0
votes
1answer
45 views

Counting Two Pulses Generated By Rotating Motor

I want to Count pulses based on some Conditions which are: (1) Count all the rotations generated during motor Rotations. (2) Count all the motor rotation pulses when an additional signal is enabled. ...
1
vote
1answer
524 views

Rpi GPIOzero L298N DC Motor Driver Problem

I built a buggy: https://projects.raspberrypi.org/en/projects/build-a-buggy/2 it seems like it works correctly, except the motor doesn't stop even when I run robby.stop() is there some other command ...
1
vote
0answers
63 views

Raspberry pi robot wheels not moving

I need some help with a Raspberry Pi robot I am attempting to put together. I'm using an L298N h-bridge to manage both DC motor wheels. I have a simple python script on the Pi which should simply ...
0
votes
1answer
45 views

How to connect components of an RC (and rPi) car to the battery safely?

I am building an RC car from scratch. I have a 6v motor with an appropriate mdb, a 5v hobby servo, a raspberry pi zero w, and an 2200mAh 11.1v 50 C battery. I will upgrade the motor to a higher ...
-1
votes
1answer
98 views

How to connect a M24 Multi Pin Connector to a Raspberry Pi

How do i connect a M24 Multipin Motor Plug Wire that is coming from a brushless motor to a raspberry Pi , I know i need to use an ESC however the wires attached to my brushless motor is a multipin ...
1
vote
3answers
150 views

How Can A L298N DC Motor Controller Module Fry My Rpi?

I have a fried Pie :( I used a 12 V power supply to this setup. Can you tell me what I did wrong. Here is my sample code in python: IN1- gpio18 / IN2 - gpio27 / EN - gpio5 GPIO.setmode(GPIO.BCM) ...
-1
votes
1answer
183 views

Sg 5010 servo 360 degree modification not working [closed]

As per the video tutorials out there, I opened the motor, took out the potentiometer and measured its resistance at max. Its a b5k pot so it measured 5kohm I put 2.5k ohm from each pin (s and -) and ...
3
votes
1answer
543 views

Controlling 28byj48 bipolar convert with l293d ic

So I'm having issues with controlling the motor with this ic. I have got it to work when it was unipolar with the uln2003. I slit the red wire so there are only 4,two windings. Measured ohms across ...
4
votes
2answers
342 views

Controlling a High Power 13V DC Motor with in-built Hall Effect sensor

I am a beginner with electronics and RPi. I have a Brushed DC Motor that runs at a constant 13V and draws about 4-5 A while running and about 18-20 A at stall. It also has a single Hall effect sensor ...
0
votes
1answer
240 views

Why don't my motors rotate?

I know I asked this question before, but this time I will give a more clearer description. I have been using the raspberry pi for approximately 6 months now. I am making a very simple robot car that ...
1
vote
1answer
675 views

Rpi GPIO Interface L298N DC Motor Driver Troubleshooting Problem

I have used the raspberry pi for almost 5 months now, so I could say I am new. Everything was fine at the start but when I built a car my motors will not spin. I am using DC motors (approximately 9V)...
2
votes
1answer
152 views

part incompatibilities

I am trying to control a 4.5V motor with a pi. I am going to use this to control the motor: https://www.ebay.com/itm/2X-L298N-Dual-H-Bridge-DC-Stepper-Motor-Driver-Controller-Board-Arduino/...
0
votes
0answers
227 views

Control 12V motor from 3.3V GPIO with external 12V Power Supply

I have a 12V motor, which I need to control from my Raspberry Pi (through the RaspiRobot Board). However, the RaspiRobot Board gives me only 3.3V for the motor. At the same time, I have a 12V adapter ...
2
votes
1answer
224 views

L298N not working anymore

This is an image of how I had it routed up, it was working just fine until I attempted to add a rocker switch. I used the 2 pin on/off rocker switch that came with my smart car kit (https://www.ebay....
-1
votes
2answers
661 views

Control motors and servos simultaneously (Python)

I have a Raspberry Pi 2B+ and some knowledge of Python. I need to control a DC motor, two servos and a LED simultaneously. The requirements are: Must control two servos, a LED and at least 1 DC ...
0
votes
2answers
455 views

Tinkering with environment variables

i want to run my pi headless, and only wire up some switches via gpio to operate it. i want it to monitor 3 switches, and tell if theyre high or low, and react accordingly. it should be launched every ...
0
votes
1answer
203 views

How to control Arduino Uno using Raspberry Pi after image processing is done?

I am working on a project which is basically a robot car to collect garbage after the image in front of it is determined as Garbage (image processing using Raspberry Pi). I want my car movements to be ...