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
1answer
54 views

raspberry pi prevent overload current from turning on a high current motor

I am trying to use only 1 power supply instead of 2 to power Raspberry Pi and motor, but when I turn on the high current (>10A) motor, it will lead to the Raspberry Pi restarting. I guess it is ...
0
votes
2answers
44 views

Can Raspberry Pi 4 learn to fly an model aircraft and is it the correct board?

So I have not yet bought a Raspberry Pi, but I just want to know if I have chosen the correct development board that will help to make a model airplane that flies by itself. I know this is too much, ...
1
vote
1answer
26 views

Power supply for stepper motor driver board

I'm doing a project where I wish to use 5 stepper motors simultaneously. I've ordered these (with driver board included) https://www.amazon.ca/gp/product/B015RQ97W8/ref=ppx_yo_dt_b_asin_title_o01_s00?...
1
vote
2answers
1k 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
48 views

L298n driver with 3.3V Voltage

I am using L298N motor driver for DC motor. First, I tested the motor with Arduino, by giving PWM signals to the enable pin of the L298N pin. I have two questions: Arduino can supply average 5V ...
1
vote
0answers
32 views

Pins of GPIO expander 'MCP23017' randomly turning on when connected to multiple motor drivers powering 3V dc motors

I have a MCP23017 GPIO expander connected to four DRV8833 dual channel Motor drivers. This setup is later meant to drive eight motors concurrently. I tried testing a few patterns and noticed that ...
0
votes
1answer
103 views

What will happen if I put my ESC's BEC black wire to ground and yellow/white wire to 5v pin directly

I wanted to do some experiment with raspi, ESC and BLDC motor. I am able to run my motor using servo tester. But I was curious what will happen if I connect ESC's BEC to Raspi's GND and 5v output ...
1
vote
1answer
58 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, ...
1
vote
2answers
465 views

Single power supply to RP3 and Adafruit Motor Hat

I have a project that includes a RP3 and an Adafruit motor hat (https://www.adafruit.com/product/2348), with 2 5v stepper motors (https://www.adafruit.com/product/858). In the guide they state the ...
1
vote
1answer
42 views

concurrently powering ten micro dc motors in a circuit [closed]

I have built a sort of small raspi controlled remote car with 12 tires using regular drone motors such as these ones and am using a raspberry pi and six drv8833 motor drivers to control them. The ...
4
votes
2answers
686 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
26 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
vote
1answer
179 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/...
2
votes
1answer
56 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 ...
0
votes
1answer
171 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 ...
1
vote
2answers
231 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
57 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
1k views

Raspberry Pi 3: DC motor power supply problem

I'm newbie in electronics. I'm joining RPi's world through a starter learning kit but there's a wiring incongruity in DC Motor lesson: In the 1st image there's only RPi's 3.3V power. In the 2nd image ...
0
votes
1answer
55 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
1answer
3k views

Problem with ESC, brushless motor and Raspberry Pi

I have connected an ESC (an electronic speed control) with a battery and a brushless motor. The Raspberry is connected to the ESC to control it. I know - when I turn on the program that is on the ...
-1
votes
2answers
449 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
0answers
31 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
213 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,...
1
vote
1answer
132 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
46 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. ...
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 ...
3
votes
1answer
1k views

How to control unipolar/bipolar stepper/stepping motors such as 28BYJ48 using motor drivers such as L293D

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 ...
-1
votes
1answer
3k views

ESC Control with RPi GPIO Pins

Ok so, I’m going to be using a pi zero and an esc to control a brushless motor based on a Bluetooth controller input. Basically, I want to know how via python I can control the esc. I heard using gpio ...
0
votes
1answer
416 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
votes
1answer
62 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
31 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 ...
0
votes
1answer
43 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
3answers
2k views

Incorrect Encoder tick counts using Raspberry Pi

Hi I have a DC motor with encoder which has a PPR count of 990 (No load RPM = 107). However, I tried to read the number of ticks (on a Raspberry Pi 3B) by rotating the wheel 1 turn and I get a PPR ...
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
114 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
72 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
63 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
59 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 ...
0
votes
0answers
86 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
58 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-...
-1
votes
4answers
1k views

Coding a GUI in python and driving stepper motor by user input

I am hoping to use my Raspberry Pi 3 in a senior project for my mechancical engineering program. I want to use the pi to drive a vice like fixture to predetermined positions by connecting a stepper ...
2
votes
2answers
199 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
34 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
587 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 ...
1
vote
1answer
58 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
376 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 ...
1
vote
3answers
217 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
vote
2answers
327 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 ...
0
votes
0answers
43 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
424 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 ...