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.

-1
votes
0answers
20 views

Can I control the speed and direction of 4 brushed dc motors with arduino uno and shield? [duplicate]

I want to use the arduino uno and the Adafruit Motor Shield v2. I'm looking for the cleanest set-up to control 4 DC brushed motors. I want to make all the motors spin CW at the same speed ...
0
votes
1answer
26 views

Can I control 4 DC Brushless motors with arduino uno and Adafruit motor shield? [duplicate]

I need to control 4 DC brushless motors. I have no experience with arduino or coding. After some research the cleanest setup seems to be using the Adafruit motor shield, however the motors I'm using ...
0
votes
0answers
31 views

How can I control 4 DC brushless motors with an Arduino Uno? [closed]

I need all the motors to simultaneously spin at 80 rpm in the clockwise direction. I am looking for the cleanest set-up, along with the code. I have very limited experience coding or working with ...
1
vote
1answer
33 views

Arduino based fully controlled aquaculture

I am doing a project on aquaculture,so I am using temperature sensor, water level sensor, dissolved oxygen sensor, pH sensor and also 4 motor's and water heater is it possible for a single Arduino to ...
0
votes
2answers
42 views

NEED Help With Servo motor

I have just bought a MG90s tower pro servo for my school project and there is a problem. As soon as I connect my servo to the cnc shield or directly arduino, the whole arduino board turns off. I ...
0
votes
1answer
26 views

Doubt in choosing the right DC motor?

Take this motor as an example - https://www.robotshop.com/en/12v-100rpm-583-oz-in-brushed-dc-motor.html it has torque of 42kg.cm I know all the calculation to find the payload of dc motor from here -...
0
votes
0answers
27 views

Issues regarding pre programmed arduino micro quadcopter flight

I'm having little trouble in order to control the Arduino Micro Quadcopter that we are building. This quadcopter is built for a programmed flight sequence. It has an MPU6050 as the IMU, 4 coreless ...
0
votes
1answer
29 views

Is it possible to combine a HC-05 Bluetooth module and a shrinked arduino ATtiny45/85 to control a motor, LEDs, or other components? [closed]

I'm thinking of making a tiny RC toy project that is controlled through Bluetooth with most components at its tiniest size. I'm a complete beginner in this area so i'm not completely familiar with ...
-1
votes
0answers
37 views

Control 24 stepper motors in same time via arduino

I want to do myself this project https://vimeo.com/174226879. I refer to this question I2C Master-Slave Arduino system to control array of steppers. In this question are use just 6 stepper motors but ...
0
votes
0answers
43 views

Chittering / stuttering of closed loop DC motor with potentiometer

I'm having trouble with using a motorized sliding potentiometer with L298N h-bridge motor driver and a arduino programming environment. The problem is the algorithms that I've explored to slow ...
-1
votes
0answers
74 views

Mini water pump

I've bought an Arduino Nano, a 5V relay module and a mini water pump (3v-5v). It's the first thing I'm gonna do with this, but I can't find any simple diagram that just uses the 5V out of the Arduino ...
-1
votes
0answers
18 views

DM860H motor driver with Nema34

I'm making a ventilator that responds to internal and external conditions and operates on its own. However, the reaction from all other conditions is correct, but only the stepper motor, which is the ...
0
votes
1answer
19 views

How To Stop Linear Actuator?

I wrote a code but the motor does not stop, it keeps moving can anyone send to a code that can I stop the motor after my code that shows bellow? const int forwards = 7; const int backwards = 6;//...
1
vote
1answer
56 views

Creation of multiple power cells to be controlled by Arduino [closed]

I'm fairly new to the Arduino world, but have a history of good working knowledge of computers and software (I'm a software engineer), but I've only had the opportunity so far to create a few simple ...
0
votes
2answers
34 views

What components do I need to build Arduino based water pump controller? [closed]

I have situation at my home which is causing us a lot of headache. We get drinking water only at midnight and someone has to wake up and switch on electric pump. This electric pump will pump water ...
0
votes
1answer
30 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
36 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
2answers
31 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
112 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 ...
-1
votes
1answer
55 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
91 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
93 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
52 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
1answer
61 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
36 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
39 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
198 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
81 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
89 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
53 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
4answers
70 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
20 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
30 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
121 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
47 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
293 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
504 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
73 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
259 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
43 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
662 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
215 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
49 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
46 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
24 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
718 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
70 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
88 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 ...