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
2
votes
1answer
46 views

Misreadings from hall sensor after using a motor controller

I am measuring a hall sensor included in a motor. A Raspberry Pi 3b+ controls a Sabertooth 2x32 motor controller through radio Signal (ppm) and the Sabertooth output is connected to the motor. I get ...
1
vote
2answers
227 views

Will my L298N circuit work and will it be safe?

I have a diagram below using two DC motors and L298N motor driver, and I just want to make sure whether everything will work perfectly fine.
-2
votes
1answer
56 views

how can you safely assemble and control 4 motors to a rapsberry pi

i am not an electronics expert, before i tried connecting 4 motors to a single motor driver and i think i fried my pi. Could you guys pls suggest a safe way to connect and control 4 motors to the rpi. ...
0
votes
1answer
43 views

Speed control for a generic 12v fan using Pi Zero

I am trying to speed control a generic 12V 2 pin computer case fan (80mm x 80mm x 15mm). I have purchased an Adafruit TB6612 1.2A DC/Stepper Motor Driver Breakout Board and a Raspberry Pi Zero W. I ...
0
votes
0answers
25 views

UART communication between Rhino DC servo motor and RPi4 B

I want to communicate with this Rhino DC servo motor with RPi4 B. I enable uart3 in RPi4 by modifying the /boot/config.txt file. In this file, I add dtoverlay=uart3 in the last. When I used ls /dev/...
1
vote
2answers
135 views

Rpi python DRV8833 motor driver setting up and troubleshooting DC motor driving problem

So what I am trying to do is to get the motor to spin but I want to raspberry pi between the motor so I can spin it clockwise for 5 seconds and then spin it anti-clockwise for 5 seconds. But initially,...
2
votes
1answer
99 views

Using Motor Encoders with Raspberry Pi

I am trying to read a quadrature motor encoder with the Raspberry Pi. After attempting to write the code in Python, I came to the conclusion that Python was too slow (which was expected). I tried to ...
1
vote
1answer
47 views

L298N motor driver either keeps running or slows down the motor with RPi3

So, according to this video which I had followed, my motors should be constantly running as per the program and should stop running after the program is executed. Instead, when I first ran the script, ...
2
votes
1answer
45 views

How to supply multiple servo motor and dc motor while using gsm module?

I've started rc plane but with internet connection instead of regular radio. My plan is using Ai-thinker A6 gsm module so I can use it as live stream camera and control servo together with blynk. ...
1
vote
2answers
499 views

How can Rpi3B+ use the A4988 stepper motor driver to control a NEMA17 motor?

I am very new to the world of raspberrypi and I am probably making some beginner mistakes. I am trying to move a NEMA17 motor (stepper motor) using a Raspberry Pi 3B+ and a4988 driver. First I set the ...
0
votes
1answer
25 views

brushless dc motor connection

i am connecting 2 brushless dc motors to a raspberry pi B and need help on connecting the correct pins . I saw a video on how to connect one motor but don’t know which ones to use to connect the ...
-1
votes
1answer
52 views

Is it possible to move a stepper motor to a specific angle?

For Example: move.stepper(90°) #stepper now points to the east time.sleep(1) move.stepper(180°) #stepper now points to the south time.sleep(1) move.stepper(263°) #stepper now pointing to 263° I ...
1
vote
3answers
30 views

Avoiding voltage drops when simultaneously using multiple DRV8833 motor drivers

I am using three DRV8833 motor drivers. The power supply is currently a usb cable with the ground and power connected to a breadboard with the three motor drivers attached to them. When powering all ...
-1
votes
2answers
343 views

5V Relay only works if VCC is 3.3V

I am very new to all of this, so please excuse if this is a very basic question. I am trying to power a tiny water pump with my raspberry pi. For that I need the 3.3V or 5V output, because the GPIO ...
0
votes
1answer
37 views

Raspberry Pi Model B Current Overdraw from 3.3V Pin

I am using RPi3 ModelB V1.2 for a motor control project. I am connecting Pin1 (3.3V) for power to a micro dc motor. The current drawn by the motor is approx ~70 mA whereas the RPi sources mention that ...
0
votes
0answers
22 views

Motor controller for Raspberry Pi 3 has no effect on attached motors. (Drok XY-160D Board) [duplicate]

I believe this code is correct. I am working connected to the Pi through SSH and tried running it through the Mu shell. Motor controller is hooked up to a 12V power supply. If it helps, I noticed the ...
0
votes
1answer
78 views

Raspberry Pi connected to Motor Controller- Getting error in code

*Hi, I am getting this code error: *blink.py:25: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings.* GPIO.setup(ENA1,GPIO.OUT) ...
3
votes
0answers
69 views

Mechanics required for a stepper motor [closed]

I am making an elevator controlled by a raspberry pi zero and driven by a stepper motor. I have managed to get the engine working using a python script and an MPC28017 pin expander (i2c protocol). ...
1
vote
0answers
60 views

making a DC motor spin both ways

I week ago, I got my raspberry pi, connected it to a DC motor, and made the DC motor spin using python. now, I'm trying to get the motor spinning both ways. I have tried but failed. What is the best ...
1
vote
0answers
56 views

regulating the speed of a motor connected to a TB-6612 FNG motor driver using the pwm output generated by the pca9685 multichannel servodriver

I understand that this type of usage is not typical for the pca9685. I am trying to use one of the pwm pins of the pca9685 to regulate the speed of a motor. As for now the motor works regularly if ...
1
vote
0answers
71 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
47 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
178 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
31 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 ...
2
votes
2answers
510 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
1answer
149 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 ...
2
votes
2answers
2k 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
51 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
336 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
41 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
380 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
92 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
37 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
199 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
193 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 ...
1
vote
3answers
214 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
246 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
37 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
260 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
61 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
2k 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
1k 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
357 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
50 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
314 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
369 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
99 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
181 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
312 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 ...