Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
2answers
36 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
39 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
0answers
27 views

DC Motors Not Moving, Programming or Wiring Error?

I got a Raspberry Pi 3B, That ive hooked 4 DC motors up to (with a motor controller of course). I run the program and they do not move, i cant figure out if im missing something or wired something up ...
0
votes
1answer
59 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
60 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
0answers
37 views

Advanced motion control on raspberry pi

I'm working on a reasonably advanced robot/machine where I'm needing to use an RPi for at least some of the control, because of the need to interface with our MSSQL server and other devices via TCP. ...
0
votes
2answers
184 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 ...
0
votes
0answers
20 views

Rpi stops giving encoder data

I am again reposting my question. I am working on a hobby project and I have written the code to take encoder data and calculate the motor RPM which works fine. But sometimes it is very strange that ...
1
vote
1answer
114 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
106 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
102 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
187 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
243 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
100 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
137 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
138 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
361 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
58 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
53 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
652 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 ...
0
votes
1answer
33 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
167 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
688 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
469 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
51 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
88 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
1answer
476 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, ...
3
votes
2answers
266 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
45 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 ...
1
vote
1answer
251 views

Raspberry Pi_SaberTooth 2X12 and simple serial

I'm trying to control a SaberTooth 2x12 connected to my Pi3. Based my Google research it seemed the best method was Simple Serial. I configured the Pi for Serial in raspi-config. Set the dip switches ...
0
votes
1answer
1k 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
34 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 ...
0
votes
3answers
583 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
3answers
625 views

Motor running slow using PWM

I'm new to PWM. This is my motor and controller. When I have the jumper in (ENA pins: I assume this gives the PWM pin the full 5V, as that is what the controller board runs on). My 6V 47 RPM motor ...
0
votes
1answer
129 views

Trouble using Pi's GPIO pin PWM to control ESC powered by separate battery

Can I use my Raspberry Pi to provide the PWM controlling my ESC, but have the ESC powered by a separate battery? The ESC I'm using is "A1S 3A Blheli 1S Super Mini Brushless ESC". It's awesome. And it ...
4
votes
3answers
2k views

rPi2 model B v1.1 smoke comes out near power port

I am trying to control 2 motors using the E-gizmo Motor driver shield but suddenly smoke comes out near the power port of the raspberry pi 2 so I immediately unplugged the power supply. After that, I ...
0
votes
1answer
1k views

Stepper motor using L298 motor driver

I was trying to run stepper motor from my raspberry pi model 3 B. I used the following tutorial - https://www.raspberrypi.org/forums/viewtopic.php?f=49&t=55580 I have followed various other ...
1
vote
1answer
1k 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
vote
1answer
803 views

Stepper motor troubles

I've been trying to setup my stepper motor with my RPI according to this guide: http://www.raspberrypi-spy.co.uk/2012/07/stepper-motor-control-in-python/ However, nothing seems to be happening, have ...
1
vote
1answer
3k views

Motor shield vs Motor driver

I'm building a simple robot and have a L298N motor drive board to sit between the Pi's 3.3v GPIO, the 5v battery pack and the motors. However I frequently see "motor shields" popping up. What is the ...