We’re rewarding the question askers & reputations are being recalculated! Read more.

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
36 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
26 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
30 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
16 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 ...
0
votes
1answer
64 views

Raspberrypi unable to read 2000 ppm encoder

I am using a DC motor attached with a 2000 ppm 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
37 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
39 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
138 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
24 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
38 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
42 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 ...
0
votes
2answers
60 views

Wiring DC Motor Controller board to Raspberry Pi 3

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
90 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 ...
2
votes
1answer
121 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 ...
3
votes
1answer
153 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
105 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
279 views

Why isn’t my Raspberry Pi motor spinning?

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
135 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
113 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
106 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
343 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
188 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
144 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 ...
0
votes
2answers
144 views

How best to power a motor hat asking for 6-12V for just two DC motors

I purchased a Waveshare Motor Hat because it has the nice Pi Zero size, extra long headers, and already has headers and blocks soldered, all for less than $13. https://www.waveshare.com/motor-driver-...
1
vote
2answers
126 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 ...
0
votes
2answers
185 views

How to control speed of dc motor using servoblaster

Im using servoblaster in pcm mode and setting pulsewidth from code for turning my servos position to desired angle. But my question is, cant i use it for controlling the speed of dc motor. I read some ...
0
votes
1answer
83 views

Can this DC Motor Driver feed my RPi?

I've bought this motor driver, which features a 5v output pin. I connected this and the ground pins to a micro-USB adapter, so that I could use a 2-cell LiPo battery to power the driver and the driver ...
0
votes
2answers
167 views

Can I power a raspberry pi and motor hat from the same source?

I have a raspberry pi 3 and an Adafruit motor hat. The motor hat is powered from a 24v wall plug adapter while the pi is powered from a 5v one. I'd like to save a wall outlet and cleanup the wires (...
0
votes
2answers
688 views

Powering Motor with Raspberry pi and h-bridge

I am trying to control a 3-6 volt motor with a raspberry pi and h-bridge. I have a separate power source for my pi and my motors. I have tried a 6v, 9v, and 12v power source. However, the motor ...
1
vote
2answers
329 views

Why does my raspberry pi zero w crashes when controlling a DC motor with an L9232D and a 9g Servo motor?

I use this simple circuit to control a DC motor with an L293D, and a 9g servo motor with a Raspberry PI Zero W: I use the simple following code to test the circuit: from time import sleep import RPi....
1
vote
2answers
350 views

Raspberry Pi DC Motor Not Working

So, I am attempting to control a DC motor using a RPi Model 2B. I am using a l293d motor driver to try to control the motor and a 4 AA battery holder. The diagram is supposed to look like this ...
1
vote
2answers
327 views

Raspberry Pi Error: AttributeError: module 'l293d.driver' has no attribute to 'motor'

So, I am trying to use my RPi model 2B to control a DC motor with an l293d controller. I have moved onto the python3 script and imported the 'l293d' module. Here is my code... import l293d.driver ...
3
votes
2answers
581 views

L298N Not working with 4 x AA Batteries

I have a 6V motor attached to a HiLetgo Module L298N Dual H Bridge and controlled via two Raspberry Pi 3B GPIO pins (current just using HIGH & LOW). If I use a 5V power supply from my Raspberry ...
0
votes
2answers
953 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
178 views

Motor driving using template matching using python and opencv on Rapberry pi

I want to drive a motor when my template is matched, I have written code of template matching but can't figure out how to drive the motor with it. This is my code: import cv2 import numpy as np ...
1
vote
1answer
301 views

Updated info/software/advice on using Raspberry Pi to control stepper motor drivers

It's been almost a year since the last posting in here covering this topic - are there any newer examples or libraries that you (Joan or anyone) know of that do the acceleration ramp, constant run-...
0
votes
2answers
161 views

Raspberry PI Relay power motor [closed]

Does anyone happen to have a similar example for a python code when pressing a button a relay is turned on which is powering a motor to open a gate for 5 seconds and then closes by giving a signal to ...
-3
votes
1answer
536 views

DC Motor With PI 3 without l293d [closed]

I have explored the web looking for controlling my 2 dc motors without l293d or something like that.. I couldn't understand why I need it and couln't find project without it or something familiar.. ...
1
vote
1answer
85 views

Raspberry Pi controlling motors?

Disclaimer: Im still new to the Pi and world of electronics, and google is giving me mixed results Im going to be attempting to build a robot with the raspberry pi. The question is how is the pi at ...
0
votes
1answer
64 views

GPIO is not giving maximum 3v3 output

I have a raspberry pi model B, NO B+ OR 2B, jus the model B. I am using it as a brain for a robot but I’m having a little trouble with the motors. I am using the GPIO pins to power it but when I set ...
0
votes
3answers
1k views

Button Press Controls [closed]

I'm trying to write a robot drive python script. There are two variations of this code. To go when the button is pressed, and stop when the button is unpresed. To go when the button is pressed, and ...
1
vote
1answer
52 views

digital pot motor control

I a using a MOT-B24400 motor which has a built in controller and only needs an external 5k pot to control the speed, plus power of course. I have this wired to a relay with a button to send a signal ...
-3
votes
1answer
322 views

Where can I find the “PiMotor” library?

The Motor Shield from SB Components needs the 'import' of "Pi Motor" but after several lengthy searches I am still unable to find it. Any suggestions please.
0
votes
1answer
999 views

Best settings to drive a DC 24V motor with PWM [closed]

I'm driving a 24V motor like this using this motor driver connected to a RPi B+. I'm controlling it with Python and PWM with the following snippet: import RPi.GPIO as GPIO from time import sleep ...
0
votes
1answer
835 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
2answers
93 views

Raspberry controlled fraction collector - what would be the best set?

I was thinking about building a self-assembled easy to use fraction collector controlled by raspberry. A Fraction collector is a piece of equipment used in liquid chromatography which has some tubes ...
1
vote
2answers
118 views

Turning motor on and off from webserver

I have Apache server running on my pi. I send a httprequest from my Java app to the server to turn the motor on and off by executing a pyhton script. PHP code on the server: <?php if(isset($_POST[...
0
votes
2answers
843 views

Simultaneous servo control on RPi 3?

I am building a project wherein I'll be controlling four servos using the Raspberry Pi 3. I wanted to control each pair of servos simultaneously (as in, when one servo is moving to a specified angle, ...
2
votes
2answers
439 views

Why can I drive a motor from the 3.3V pin but not a GPIO?

I have a peristaltic pump which is rated 6V, 30mA that, when plugged into the 3.3V GPIO (& ground of course), runs smoothly. When I code a GPIO to drive the same motor it doesn't move. I measure ...
0
votes
1answer
50 views

How to find a suitable `herz` value for a Low Inertia Solar Motor [closed]

I would like to use a Low Inertia Solar Motor-1820 RPM with the Raspberry Pi. More specifically, I want to control its speed using pulse width modulation (PWM) as is explained in this video ...