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 [motor]

Use this tag for questions about connecting, controlling, and safely operating motors using an Arduino board.

0
votes
1answer
21 views

Programming stepper motor move a fixed step till it reach the target

I have a stepper motor and try to program it like this but I kinda stuck since I'm new to Arduino. 1. The target is set to 2048, means motor have to move 2048 steps. 2. I program the motor to run 200 ...
0
votes
1answer
30 views

Using timer classes within classes

I am trying to develop a class for a pump that works on a stepper motor, it should be simple but its not working the way I thought it would. Once I move the timer object into the class the code wont ...
0
votes
0answers
18 views

what kind of motor works best with the TransistorMotorControl tutorial?

What kind of motor should I get if I want to follow the tutorial at https://www.arduino.cc/en/Tutorial/TransistorMotorControl I tried getting a uxcell a12122600ux0382 8000RPM 9V 68mA High Torque ...
0
votes
2answers
27 views

Connecting a servo motor to an Arduino

I currently have a push solenoid connected to my standard Arduino board. The Arduino is powered via its USB cable, while the solenoid is powered using a 12V Huawei adapter (in conjunction with a ...
0
votes
1answer
42 views

Speed controller for Ceiling Fan 220V AC 100W

I would like to use ESP32 to speed control my AC ceiling fan which is 220V AC 100 W. Will the below AC dimmer work with ESP32 to speed control the ceiling fan which is 220V AC 100 W? If not, kindly ...
0
votes
0answers
21 views

Kinect-Arduino integration tutorial?

I have found many projects utilising kinect and Arduino to do move servo motors and I intend to do the same but I couldn't find any tutorial telling step by step how to program the kinect and ...
-1
votes
1answer
39 views

Increase and Decrease Motor Speed [closed]

I'm a newbie on Arduino and I'm doing an exercise about the Motor controller "Increase the motor speed from zero to maxium (255) and then decrease slowly from the maximum to the minium." Here's my ...
0
votes
1answer
30 views

Arduino DC motor with 2 buttons

I have a problem with my Arduino project and I tried everything to fix it but nothing helps. I am trying to rotate my DC motor with two buttons: one button is to stop/start rotating on left side, ...
0
votes
1answer
29 views

Controlling a servo motor with a touch sensor

I want to modify my code to move a servo motor only for the duration of time that the sensor is touched and stop moving immediately when the sensor is no longer touched. The code I have moves the ...
0
votes
1answer
45 views

Beginner problem with DC motor

I am new to electronics and I'm having a problem when creating my project. I have created a Bluetooth controlled rover using HC-06, Dual H-bridge motor driver and 4 DC motors. However, only two of the ...
0
votes
0answers
20 views

DC motors not working on Adafruit motor shield

I have a MINI DC GearBox motor and Adafruit Motor Shield v2.3 on an Arduino, powered by a DC wall adapter. I have checked that the soldering is all correct, the motor shield is powered up (LED turns ...
0
votes
1answer
30 views

Shift register with relay board behaving erratically

I have a nodemcu connected to a shift register(https://www.amazon.de/gp/product/B07CHBYR7Z) to control an 8 channel relay board (https://www.amazon.de/Elegoo-Relaismodul-Optokoppler-Arduino-Raspberry/...
-1
votes
3answers
32 views

Preventing EMI on PCB

i've made a project consisting of 3 DC motor pumps, Atmega328p on custom PCB, and a relay. I found a problem which causes my PCB custom arduino trips over and over again caused by 12V DC MOTOR. I fix ...
-1
votes
2answers
33 views

Using external battery for motor [closed]

i have a little project going on, where i want to connect vibration motors to an arduino. I found this, with example code but also found other tutorials wish use a capacitor for the motor. What is the ...
1
vote
2answers
162 views

How to prevent interference between dc motor and arduino?

It may be already asked question in somewhere but I am struggling! I have a four wheel robot which I want to drive it to perform 90-degree left/right turn, I am using the MPU6050 3dof to get angles, ...
0
votes
2answers
71 views

How do I create a state machine for my purpose?

I am new to Arduino. I have a motor which drives a sliding door back and forth. The motor is connected to an H bridge which has two control pins (direction, speed). I have a switch which is intended ...
-1
votes
1answer
62 views

Relay Module for water pump [closed]

I want to switch on/off my water pump by using arduino nano, I have 2 channel relay module. Is this module safe for controlling pump? Specifications pump: power = 746 watt (1HP) single phase, voltage =...
0
votes
1answer
51 views

Making an H-bridge with transistors [closed]

I am trying to make an H-bridge with two NPN and two PNP transistors to drive a motor which works fine on the 5 V Arduino. I have a schematic in the picture. When I use a simple code to have pin 9 ...
0
votes
0answers
32 views

Combining Two Motor Drivers(l293d) Together

Hi, I'm new to Arduino and robotics.For my science exhibition I want to make a RC, 4 wheeler car. I have the Arduino, the motors, the wheels etc. To control the 4 motors of the car, I brought 2 of ...
0
votes
4answers
52 views

How to repeat the code

I want to make my biped robot keep walking, but it only move for twice, this biped robot project is important for my Capstone project. The code below is the code that I used #include <Servo.h> ...
0
votes
0answers
17 views

Use Arduino to send signals to controller for motor acceleration

I'm thinking about possibility to assemble mini pc, Arduino and this controller with this motor. I'm trying to understand if it possible that mini pc collect data from external source of user and ...
0
votes
1answer
25 views

Rc car which returns to middle when left or right button is not pressed

Hi i am currently working on a school project , my only problem is that i want my RC car to return to middle direction (which i have set to 66 in the servo motor) when the left or right button is not ...
1
vote
1answer
82 views

Problem in reading data from encoder with arduino

Hello guys I am trying to count the number of the steps of a stepper motor with an encoder (Avago heds). I found an Arduino sketch to count that steps and display them on the console and I found ...
1
vote
1answer
36 views

Necessary torque of motor to move a door. [closed]

I am building an automatic door opener and for its mechanism I need a motor with a high torque and low speed. My question here is how to measure the torque needed to move the door as I cannot really ...
1
vote
0answers
13 views

CIRC-03 Spin Motor Spin

I am experimenting with CIRC-03 but the DC motor won't start spinning with motorAcceleration(); unless I give it a push. Also, it makes a little noise when it stands still. It does spin, however, ...
1
vote
1answer
137 views

Controlling motors and servo with L298N

I'm using an L298N to control the two motors of a robot car, and I also have a servo controlling the HC-SR04. The motors and sensor work fine together, and the servo and sensor work fine together. But ...
0
votes
1answer
213 views

L298N, HC-05 Simple Bluetooth remote car not running in Arduino

Arduino board type used in this session is Arduino Uno R3 DIP/SMD CH340 Below is the description of wiring and code in Arduino to assemble a Bluetooth RC car using android smartphone: Tested the ...
1
vote
2answers
39 views

DC motor with L289N driver cannot set RPM lower than 130

My setup is using an Uno r3, and the motor driver is an L289N. I am going to set it to run at a lower RPM, but when adjusting enA or enB to set to below 130, it won't spin. // connect motor ...
0
votes
1answer
190 views

Arduino Uno Motor control using 2 Relays, 2 Limit switches and Bluetooth. Forward Reverse Stop

Modified existing project from this link: Problem : Trigger limit switch to stop DC motor I modified this code to control two relays which are wired to motor poles for Forward or Reverse movements ...
-1
votes
1answer
36 views

HC-05 modules with joystick driven platform [closed]

I am working to create a joystick controlled platform using bluetooth to communicate, but am having several problems. The platform https://www.dfrobot.com/wiki/index.php/Cherokey_4WD_Mobile_Platform_(...
4
votes
2answers
426 views

How do I (easily) power a 5 V 3-pin fan?

I have a 5 V 3-pin fan. I want to be able to: power it from an Arduino Uno or a Seeeduino Lotus board, and, ideally; be able to change its speed. Most resources I can find on the web explain ...
0
votes
0answers
131 views

Programming NEMA 17 2 Phase, 4 Wire Stepper Motor

I have successfully programmed the Stepper Motor 28BYJ-48 with ULN2003 driver using the code below. But then I replaced the 28BJY-48 with a NEMA 17 Motor then it won't work anymore. I researched that ...
0
votes
2answers
41 views

How to control a DRV8266 motor controller with an ESP8266?

https://github.com/sparkfun/SparkFun_MiniMoto_Arduino_Library/tree/V_1.1.0 Will this library work on an esp8266? If not is there any way I can get this driver to work on the ESP?
0
votes
0answers
44 views

Motor unexpectedly moving at reset

I'm playing with the standard L298N motor board and Arduino MKR 1000. However something strange happens: when I upload a new firmware and when I turn on the Arduino power supply (every time Arduino ...
0
votes
1answer
20 views

Reduce speed on DC motor

The Arduino starter kit came with a DC motor. I want to have it rotate at a slow speed so it can be on a reel and automatically dispense and wind wire, however, I don't know how I can slow it down. ...
0
votes
0answers
447 views

Controlling motor direction with ESP8266 and Motor Shield

I recently acquired a NodeMCU ESP8266 Board and a NodeMCU Motor Shield, which I have connected very simply to two motors on an RC car. The idea mostly came from this tutorial. From what I understand ...
-1
votes
1answer
49 views

My “avoid car” can't move straight [closed]

I use 2 gearbox motors with 2 wheels .. but if I try to run it, he can not walk straight. he always moves slightly to the right or to the left. How i fix it ?
0
votes
1answer
78 views

Arduino remote-controlled car stops after a few seconds

I am making a remotely controlled car for a project at Uni. The car is made from an Arduino Uno, a 2 motor driver and a Bluetooth transceiver. I have written some code for it, but it randomly stops ...
0
votes
0answers
30 views

problem with following a blackline using a small toy like a car

well I'm new here and i hope to solve this problem with this. Let me explain what i want to do . I'm using a nodemcu ESP 8266 with 4 wheels with an applicacion interface to give orders to move to ...
0
votes
0answers
28 views

DC Motor Not Braking

I have a brushed motor hooked up to a NodeMCU that moves a plate left (moveLeft) and right (moveRight). When a button (buttonOpen) is pressed, it turns to the left until the plate hits a limit switch (...
0
votes
0answers
36 views

Can I output the movement(steps has done or degrees) of a stepper-motor that i manualy turned his axis?

I'm thinking for a project that involves a stepper motor; What I want to do with it is if I can somehow output the steps that has done when I manually rotate the axis ? I want to record that value ...
1
vote
1answer
42 views

My code isn't adjusting the speed of one of the motors and i'm not sure why

I'm trying to change the speed of motors depending on the amount of light hitting the LDRs. Here i'm trying to make it so that if the LDR has a high value than another, then the motor associated with ...
1
vote
1answer
60 views

How to prevent shoot-through when swiching a motor with a bridge?

Ideally, when wiring a motor with an H-Bridge one would ensure that all "open" operations are performed before and "close" operations in order to prevent a short circuit. How does one ensure that ...
1
vote
2answers
648 views

Stopping / starting DC motor with Limit Switches and on/off button

I have an Arduino UNO with 3 switches attached (2 limit switches, 1 activation switch). I'm trying to make the activation switch turn the motor forwards once hit, then wait for any of the limit ...
0
votes
3answers
80 views

Want criticism on my code

The code is controlling 3 blinds. There are 2 buttons for each blind for going each way and 2 buttons controlling all of them at the same time. The motorSerial is a way to control all of the blinds ...
0
votes
1answer
28 views

3.3v Arduino I2C communication with motor controller powered at ~6v

I am trying to just use the voltage from 4 Alkaline AA batteries in series (6v nominal) to power a motor with the TI drv8830 IC. My question is, will this circuit (specifically just pulling the sda ...
1
vote
1answer
105 views

How to stop a loop when using attachInterrupt to catch the change of a button

This what the program does: There is 1 button to start/stop the engine, when the motor is running the green LED will go on, when stopped the red LED is on. The second button is used to change ...
0
votes
0answers
16 views

Controlling DC motor with Pololu shield Arduino

I'm trying to power 2 DC motors with my Pololu DRV8835. I'm using the code found in this library. It works as expected BUT ONLY if the whole thing is powered via USB. When I try to power it through ...
1
vote
1answer
547 views

Problem for control speed of a DC motor with a L298N

(Not native english speaker here, feel free to edit my sentences) I try to control the speed of a DC motor with a L298N shield but it doesn't work very well. Here is my scheme : The power comes ...
1
vote
1answer
16 views

Motor shield not providing enough current to 2 12V DC fans

I have 2 fans and they require up to 3A current, but my motor shield (Arduino Motor Shield Rev3) on my Arduino MEGA can only provide 2A per channel (4A max). Is it ok to run the fans at a lower speed ...