How to control a DC motor with an encoder

How to control a DC motor with an encoder

Curio Res

3 года назад

426,654 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

everest8km
everest8km - 29.10.2023 05:50

Great ! One of the best tutorial on DC motor control. When I run part4.ino, how to close the autoscale in serial plotter?

Ответить
It4heath
It4heath - 28.10.2023 22:17

Very nice video, and close to what I'm looking at doing. My plans so far will be with any Arduino board, I'm wanting to have a AS5600 read a direction/step every second and write/save that info, so an average can be calculated for later use. Then once a minute or so read another AS5600 with a Stepper motor and have the stepper match the average direction/steps of the other one.

Ответить
Vikash G
Vikash G - 25.10.2023 11:31

Hearfull of thanks for this video, which helped me to built my rover arm.🥰🥰

Ответить
APTERA EVoL-eR
APTERA EVoL-eR - 23.10.2023 06:42

👏 👏 👏 really good instructions, 🙏 thanks ❤️

Ответить
Adnan Ahmad Knowledge video
Adnan Ahmad Knowledge video - 21.10.2023 21:56

This is very helpful video on PID control. I Understood How P and I work but I didn't understand how the derivative term helps to smooth the output. I am researching it from past 3-4 days but still not get how the derivative term works I mean how it make changes in the equation and reduces the overshoot? Please explain me 🙏

Ответить
Oscar Manuel Cabrera Vidaña
Oscar Manuel Cabrera Vidaña - 19.10.2023 06:49

OMG this is a well very made video, congrats!!

Ответить
Daksh
Daksh - 17.10.2023 11:32

Are the connections of this encoder same for arduino Nano with a Hall effect encoder?

Ответить
Math Maker
Math Maker - 03.10.2023 08:22

Please do a video using LQR control in arduino! The quality of your explanation would be super!

Ответить
Live Free Or Die
Live Free Or Die - 01.10.2023 11:13

Great video, I liked the detailed info you supplied. I have 2 questions though. Could I use this to control a 12/24 Volt DC 250W/350 Watt Gear Reduction Brushed Electric Motor that only has a positive and ground wire, no encoder? What I'm trying to do is, press a button to start the motor and have it automatically stop after 100 revolutions. I also want to be able to easily adjust the speed and number of revolutions of the motor using 2 adjustable digital displays. One for motor speed and the other for motor revolutions as needed, without having to rewrite the code every time. Is that possible?

Ответить
Emastino
Emastino - 13.09.2023 09:27

Awesome video! Quick question, would this implementation not run into trouble if the interrupt and the control loop both try to access the “pos” variable?

I found that you could just temporarily shutoff interrupts but wouldn’t that run the risk of missing some counts?

Best!

Ответить
Chefseg
Chefseg - 11.09.2023 02:56

If using this "servo" motor in a more complex application would it be more computationally efficient to dedicate 1 Arduino for calculating and sending position values via the PID algorithm you just demonstrated and have an additional, main Arduino dedicated to the overall processes and handshaking with the other Arduino? Sorry for the convoluted question, great video extremely informative!

Ответить
Daksh
Daksh - 29.08.2023 10:49

Does this work if we use L298N motor driver IC instead of the one used in this video?

Ответить
Taher Rad
Taher Rad - 08.07.2023 05:04

Hi. Thank you so much for this useful video.
I have a question: What should I add or change if I want the motor to reach the desired position, with a certain velocity (let's say 10 rpm)?
Thanks

Ответить
squeaky cheex
squeaky cheex - 04.07.2023 01:17

Wouldn't motor power ground lead be connected to second pin A- rather than B-? Also, don't you need VCC +5VDC out from Arduino to VCC pin on motor controller to power controller?

Ответить
The Jayden X.
The Jayden X. - 27.06.2023 02:37

Thanks to Heavens I found you! THIS IS WHAT I TRULY NEED! Thank You SOOOOOO MUCH.

Ответить
Simon Detlefsen
Simon Detlefsen - 25.06.2023 11:06

You are amazing 👏
Now I'll have to study more 😅🇦🇺

Ответить
Ben Lucy
Ben Lucy - 25.06.2023 01:46

Feel like I struck gold finding this video - huge thank you for making it!

Ответить
AR Electro Projects
AR Electro Projects - 23.06.2023 08:51

Nice Detail Explanation . can we change Target RPM when Motor Is the Running condition ?

Ответить