Stack Exchange Network

Stack Exchange network consists of 175 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
0answers
21 views

Can 2 H-Brides be controlled by one Arduino?

The three motors are from windshield wipers, with one of the brushes disconnected in each. The controllers are BTS7960 43A modules One Bridge for two drive motors (speed and direction), and the ...
-1
votes
1answer
56 views
-1
votes
1answer
29 views

L293D with arduino's 5V

I am trying to use L293D with relay to power a 12V DC motor. Can I use arduino's 5V to provide L293D inputs 4 and 8 such as in the drawing? Or do I need to use a separate source, e.g. a power module?
0
votes
1answer
22 views

Arduino acts odd when disconnected from computer

I'm building an self-navigating robot with an arduino, an ultrasonic sensor, and two DC motors. I'm currently within the process of coding the robot but I've discovered I have an unusual problem; ...
-2
votes
0answers
22 views

How to build a Syma X8 receiver by Arduino? [duplicate]

How to control a 4x DC motor (size 180) by one Arduino (similar to receiver Syma X8)?
0
votes
3answers
64 views

analogWrite is not working - while trying to control DC motor speed

I'm trying to control the speed of DC Motor using Arduino R3 NPN Transistor (2N2222A331) 10k potentiometer 2M ohm resistor Diode I'm not using L298N and I'm also not using L293D. DC motor is ...
0
votes
1answer
39 views

arduino is skipping the if statement [duplicate]

Hi guys I am new to this language and i just tested the code to control a servo motor Can anybody help me please ? here is the code void setup() { servo_test.attach(3); pinMode(9, INPUT); ...
1
vote
0answers
23 views

How can I get the count of pulses of two encoders on the serial monitor?

I have two encoders; I connected them to pin 2 and 3 and I want to count the pulses of them to make two DC motors to work until it reaches a specified number of pulses, than stop working. I have ...
0
votes
0answers
21 views

Can rapidly switching an H-bridge controller harm its load? [closed]

I'm planning to use an Elecrow H-bridge shield to control 2 linear actuators. The actuators operate in parallel but can have slightly different and varying loads, so I must monitor their positions and ...
1
vote
0answers
15 views

Having trouble with motor shield running off external power source

I apologize if I don't immediately give important info, I'm very new to arduino's/circuity of any kind. I'll try to include as much info as possible. Some preface: I'm currently working on a project ...
1
vote
0answers
31 views

Help with code for changing motor speed depending on MPU6050 angles read

I have been trying to create code where my MPU6050 is constantly reading the angle it is at and based on that angle, increase or decrease the motor speed. For example the motor will be off when the ...
-1
votes
2answers
44 views

Choosing a motor for my project [closed]

Sorry For my bad English. I will start to make a mini conveyor (100 cm x 30 cm) with an Arduino Uno. What is the best motor should I choose for my project ? - Stepper Motor ? - DC Motor ? Etc. ...
0
votes
1answer
29 views

Servo Motors PWM pins, Arduino Uno

I wanted to understand how people are connecting a servo motor to pins without PWM, so I went searching and I read that the Servo library uses the timer1 of pin 9 and pin 10 to be able to use other ...
0
votes
0answers
14 views

Will this power supply work with a MG-996R Servo?

I'm trying to power a tower MG-996R servo with this universal AC power adapter for an arduino uno project. The adapter can output: 3V/4.5V/5V/6V/7.5V/9V/12V.Output current:1.2A, also has a USB port:5V ...
0
votes
1answer
44 views

Keep motor moving

I have a problem on how to keep my stepper motor moving when button is released. It should only stop moving if I press the button again. For now, stepper motor is only moving IF the button is ...
0
votes
0answers
18 views

Brushless Motor and Electronic Speed Controller Initialisation Issues

I have been trying to make a brushless motor, working in synergy with an electronic speed controller, to work, however, all I have been achieving is the motor vibrating at a specific potentiometer/...
0
votes
0answers
52 views

How to operate a brushless motor & ESC with an Arduino

I have recently bought two brushless motors (Brushless-300w-6-5-Wheel-Tyre-Motor-Hoverboard-Swegway-Board-Replacement-Part) along with two ESC (https://hobbyking.com/en_us/hobbyking-40a-esc-4a-ubec....
0
votes
2answers
43 views

I cannot compile the Arduino sketch when I remove the void loop function?

#include <AFMotor.h>  AF_DCMotor motor(2,MOTOR12_64KHZ); void movefor (); void moveback(); void setup() { Serial.begin(9600); Serial.println("Motor test!");` `motor....
1
vote
1answer
59 views

Motors triggering Interrupt

I am using a 4wd robotic car to measure straight distances. I have attached two encoders on the front two wheels to measure the distance and I am using the back two wheels to adjust the car and keep ...
0
votes
0answers
14 views

How to connect to Arduino with old L293D Motor Driver

How to connect the below motor controller to the Arduino Uno board. I am new to this field. I haven't seen this type of motor controller in any tutorials. Two motors and input battery points I have ...
0
votes
1answer
19 views

Conveyor and Counter Project

I am new to Arduino and looking for advice if Arduino is the right microcontroller for this project. My project is quite simple, I want to build 3 conveyors using 3 DC motors. At the end of each ...
0
votes
1answer
28 views

Do you need an ESC to run this brushless DC motor with Arduino Uno?

This is the motor: https://www.aliexpress.com/item/Wholesale-JGA25-2418-8-5-1977-rpm-Electric-Motors-Brushless-Motor-High-Torque-Speed-Controlled-DC/32360228129.html I'm hooking it up to the arduino ...
0
votes
1answer
40 views

How to properly run 4 DC motors with an Arduino?

I am working on a project where I have 4 DC motors that is controlled by 2 L293D motor drivers. 2 of the motors act as the wheels of the robot, and the other 2 act as a mop. The Arduino board is ...
0
votes
0answers
29 views

How to make a stepper motor move at sinusoidal acceleration?

I am new to arduino but I know basic concepts. How do I make the motor move at sinusoidal acceleration? I used the accelstepper library and it seems that at the end of each loop of distance with ...
0
votes
1answer
39 views

AccelStepper Library: How do I go to a position without decelerating?

When I make the motor move at a certain distance with setMaxSpeed(), setAcceleration(), and moveTo(), it always accelerates and decelerates. Is there a way to disable the deceleration?
0
votes
0answers
45 views

How do you make a stepper motor move in accordance to earthquake data using arduino?

I am new to arduino. I can import the acceleration data from a text file into arduino and I can also make the motor run at that acceleration with a distance calculated from an equation. I use the ...
0
votes
1answer
61 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 ...
1
vote
1answer
54 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
3answers
55 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
33 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
1answer
33 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 ...
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
58 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
37 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
46 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
43 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
34 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
321 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
106 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
230 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
264 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
60 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
133 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
39 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
40 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
297 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
91 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
162 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
91 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
107 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> ...