Using Rotary Encoders with Arduino

  Рет қаралды 723,216

DroneBot Workshop

DroneBot Workshop

Күн бұрын

Пікірлер: 403
@noobdernoobder6707
@noobdernoobder6707 4 ай бұрын
Finally a channel that does not stall two sentences worth of information past the 10 minute mark to allow more advertising time, but straight to the point explains what has to be explained, and that's it. KZbin as it should have been. Thank you and well done, Sir, I learn a lot from your channel!
@altamiradorable
@altamiradorable 5 жыл бұрын
I'm far from being a beginner but I enjoy so much your videos ! It's a clean job ! The filming is excellent, the audio is crisp and your explanation is alway accurate and simple ! A real paradise for robotics enthousiasts ! Keep on the good job !
@1973darrell1
@1973darrell1 4 жыл бұрын
HI I am building a CNC machine can you help me to set up a code and what drivers I need or show me some codes to try it out with?
@asapatheist
@asapatheist 4 жыл бұрын
the room noise cutting in and out every sentence I wouldn't necessarily deem "crisp"
@WistrelChianti
@WistrelChianti 4 жыл бұрын
Yes it was good. If I could make any suggestions I'd say to avoid the "blue like" wire on the "blue like" background (or emboss it) and, when explaining the state detection, reference back to the signal wave form would have helped a little bit.
@asapatheist
@asapatheist 4 жыл бұрын
@G Guest fine, yes, crisp, no.
@vasantkerai6814
@vasantkerai6814 4 жыл бұрын
Vasant Kerai from London, I am very interested with these projects many many of them being a electronics engineer for 40 years now retired, love to know arduino project more about kits available to assemble, to demonstrate and learning, please a list of many many projects available,and easy to assemble.my email keraivasant@gmail.com
@rogerbeck3018
@rogerbeck3018 5 жыл бұрын
my 62 years have enabled real pleasure watching AND learning from your production - very many thanks; I'll be back
@obviouslytwo4u
@obviouslytwo4u 4 жыл бұрын
The internet is great so learn about the true suffering of slaughtered animals that's if you really care about the planet
@Heathmcdonald
@Heathmcdonald 3 жыл бұрын
@@obviouslytwo4u dude, what about the suffering of PEOPLE? it takes a real sociopath to care more for a dumb beast than a being as complex as a human. Not to mention ppl smell so much better during sex than the equine verity you are fond of.
@JonSpink
@JonSpink 3 жыл бұрын
@@obviouslytwo4u It has great recipes too.
@coronelkittycannon
@coronelkittycannon Жыл бұрын
​@@obviouslytwo4u what is your problem?
@marcelbron6128
@marcelbron6128 4 жыл бұрын
As an avionics electronics technician I have to say that I really enjoy watching all of your very clear and to the point explanations. Keep up the good work Bill, it's really appreciated 👍👍👍
@Android-vi4ph
@Android-vi4ph 3 жыл бұрын
Always i wonder how you teach like a 100yrs experienced in every project. Wonderful and crystal clear explanation. Thanks for all videos.
@RDarrylR
@RDarrylR 5 жыл бұрын
I have to say you have some of the most detailed and well produced videos for arduino and electronics on youtube. I really hope your channel catches on even more and your subscriber count grows immensely. The majority of stuff you show i have learned from others before or on my own but you go in much more detail and i always pick up a few new things in each.
@CarlosChavez-gs1ld
@CarlosChavez-gs1ld 8 ай бұрын
I agree 100% with many of the comments here. Your videos are always straight to the point, little to no fluff, and easy to follow. Well done.
@typheousvenom1335
@typheousvenom1335 5 жыл бұрын
What a wonderfully perfect video. Clear, thorough, concise with no extra baggage. I really love your format. Keep up the great work!
@keyurkulkarni2417
@keyurkulkarni2417 4 жыл бұрын
My grandpa has a difficult time figuring out if he has held his smartphone straight or upside down.. And then there is you who almost has technical knowledge to build a smartphone.. Hats-off to your explanations, better than most stuff seen on youtube..
@Rogueixpresents
@Rogueixpresents 5 жыл бұрын
Man I love your videos. Thank you for your time, keep up the good work sir!
@TekCroach
@TekCroach Ай бұрын
Very nicely explained as always... All of your explanations in each and every video in your channel are so easy to understand and elaborate. Thank you.
@dougb1542
@dougb1542 2 жыл бұрын
Hands down the best channel on youtube for electronic tinkerers! Your videos are very well done. Clear and concise explanations are so helpful to a person wanting to get back into electronics after several years. Thankyou Sir!
@Andonchoto
@Andonchoto 23 күн бұрын
Your lessons are the BEST, and i dont say this often. Thank you for the quality content sir!
@kineticpaintings
@kineticpaintings 3 жыл бұрын
Well done Bill. You are my go-to KZbin channel for arduino and motion control stuff. Your explanations and visual coverage of the topics are excellent and so helpful. Many thanks for this one, just needed to get get my head around rotary encoders for a CNC mill that I have been rebuilding.
@HardwareUnknown
@HardwareUnknown 3 жыл бұрын
It's a bit ridiculous how much useful information is packed into your videos. I just watched the one on stepper motors, then this one, and already I feel I have a good enough understanding to get started with my own basic project. I like that you go through the theory as well as the application/code, both at a good pace. Every part of the video has a purpose, and I learn a lot from them throughout. Thanks so much for the lessons.
@ChrisWilliams-pu8pj
@ChrisWilliams-pu8pj Ай бұрын
Thank you for an excellent video. I can't imagine how much work you put into these videos. Thank you again.
@alfredocliftong4376
@alfredocliftong4376 4 жыл бұрын
Realmente es muy buena tu explicación. Lo mejor es tu inglés ya que no es necesario traducir para entenderte. Your explanation is very good. The best thing is your clear english since it is no necessary to translate to understand you
@artthurman3446
@artthurman3446 5 жыл бұрын
Nice job. Just what I was looking for. I am a newby Arduino project guy, but have been in manufacturing control for 35+ years. Concepts easy, hardware/firmware constraints require learning. Fun! I am building a wooden boat with Arduino control of throttle and steering. Not a model...it is 16 foot. I want everything super light weight. Your videos will all help.
@saturdayscience5540
@saturdayscience5540 3 жыл бұрын
No doubt I'm not the first to mark a slight error; at 20:20 you say the phases are about 180° yet they are 90°. I really enjoy your videos; thank you for taking the time to prepare, record and share these videos.
@naboulsikhalid7763
@naboulsikhalid7763 5 жыл бұрын
as usual, a great explanation that makes electronics and programming easy. Thank you very much for helping me to evolve, to become well educated. No price will be enough.
@memylastname9972
@memylastname9972 4 жыл бұрын
Another great video. I love how clear your wiring diagrams are. Thank you.
@dryan8377
@dryan8377 3 жыл бұрын
Thanks for this. I've been out of arduino for about 10 years now. Did some huge projects (17 code pages+) back then. This was very helpful!
@EsotericArctos
@EsotericArctos 5 жыл бұрын
I always enjoy watching your videos. They are well presented, explainations are given, without too much waffle. Easy to understand for newbies and those wanting to learn, but equally enjoyable for more experienced people as there is no waffle to detract from the content. I hope to see many more videos from you as all that I have seen so far have been of very high quality.
@brandonmakridis1565
@brandonmakridis1565 2 жыл бұрын
This video is a great resource, but I would like to point out a couple things that people might get caught up on if they try to follow along. The CPR value for quadrature encoders is typically for reading rising and falling edges on both encoder channels. So, if you are only using 1 channel and only looking at the rising edges, you will probably need to divide this value by 4. Also, most encoders are directly reading the motor shaft and not the output shaft of the gearbox, so you will need to take into account the gear ratio when calculating the RPM of the output shaft (e.g. if you are using a 30:1 gear ratio, the motor shaft turns 30 times faster than the output shaft of the gearbox).
@captainpugwash4100
@captainpugwash4100 5 жыл бұрын
You are right about jamming the rotor too often, but we do this every day as part of the Factory Acceptance Test on large electric motors. It is called the “Locked Rotor Test”. The rotor is clamped to the housing and the motor is powered up to full power for a second or two, and then the internal insulation is checked for shorts. But we only do it once per motor!
@mcotherman5957
@mcotherman5957 5 жыл бұрын
Great job with the production quality! Your videos show you put effort into your work!
@teodorpironkov4589
@teodorpironkov4589 Жыл бұрын
a
@BeyondDuctTapeFixItRight
@BeyondDuctTapeFixItRight 4 жыл бұрын
Sir, your channel is increasingly becoming my go-to resource for all things Arduino and ESP32! Your excellent content and outstanding production value brings me back for more. You're top 3 trending towards #1.
@ismaeeladebayo3663
@ismaeeladebayo3663 4 жыл бұрын
this is my number one youtube channel. good job sir
@uriahfindley6231
@uriahfindley6231 2 жыл бұрын
thank you for teaching me step by step how to do this. excellent video!
@benhurvillarcanal
@benhurvillarcanal 4 жыл бұрын
This is a lecture of how to lecture. Great video. I'm glad I found it.
@ZhaoGongZiDepcb
@ZhaoGongZiDepcb Жыл бұрын
Thank you very much for your detailed sharing. I have been working on a project related to encoders recently, and this video is very helpful to my project.
@northshorepx
@northshorepx 5 жыл бұрын
Wow Mark, that's explained exactly what we need to control the robot very well.
@dasficus
@dasficus 4 жыл бұрын
You remember my electric engineer Teacher, good explaination and plenty of passion ...
@BeyondDuctTapeFixItRight
@BeyondDuctTapeFixItRight 4 жыл бұрын
Your videos are terrific! It's a combination of your informative content and superb delivery that make for a compelling channel. I'm excited to view them all, past, present and future. Please keep them coming!
@NathanBuildsRobots
@NathanBuildsRobots 4 жыл бұрын
Great video, just what I needed for my balancing robot. I like how you added real world examples of rotary encoders in things I use every day.
@danielvanschalkwyk3749
@danielvanschalkwyk3749 4 жыл бұрын
This is just what I needed to see for my Mechatronics project. Thank you so much for the brilliant video.
@DiscoverRajivVlogs
@DiscoverRajivVlogs 5 жыл бұрын
It's just basically 2 switches left and right also one for middle switch. Only difference is that it rotates, while switch needs to be pressed. Good job.
@mjwalter2537
@mjwalter2537 4 жыл бұрын
Have learned a lot DroneBot Workshop! Building a animal feed mixing system now.
@victordanielcorrearamirez9390
@victordanielcorrearamirez9390 Жыл бұрын
As always, good explanations and good ideas for our projects. Thank you so much.
@gangleweed
@gangleweed 3 жыл бұрын
I'm not into Arduinos or Pi' s but I still found it very interesting on how to control a servo motor in precise steps.......this could lead onto another interest if the yen for more projects gets into top gear and I might yet get an Arduino to learn more. I have to say that the video was very well spoken and extremely clear and to the point with exact placing of the various components and the results of the variations.
@omarherrera1786
@omarherrera1786 4 жыл бұрын
First time here and this is a golden channel. Awesome video
@baxtermoonga9145
@baxtermoonga9145 4 жыл бұрын
Very clear to understand ❤❤💯
@Vikijangir
@Vikijangir 5 жыл бұрын
Great job Sir, no word to appreciate your work. Thanks, for so much informative and clear tutorial.
@michaelhawthorne8696
@michaelhawthorne8696 5 жыл бұрын
Nice video as usual...very polished with clear and precise graphics...
@kennethpetersen8912
@kennethpetersen8912 5 жыл бұрын
You did again I love your videos I've learned a lot from Bill. Great job
@robytryall
@robytryall 3 жыл бұрын
Awesome tutorial! There is only one thig I want to point out, for people who use only the rotary encoder without the pcb module, you need to have pinMode, inputCLK and inputDT set to INPUT_PULLUP, otherwise it won't work.
@mpsadre132
@mpsadre132 8 ай бұрын
This video is still relevant for newbees like me, thanks.
@Zorgens
@Zorgens 4 жыл бұрын
Awesome.! So clean. You are one of my favorite channel.
@gabrielesabbatino2460
@gabrielesabbatino2460 3 жыл бұрын
Great video and GREAT explanation! Amazed! You got a new subscriber from Italy :-)
@trespatterson7521
@trespatterson7521 3 жыл бұрын
I instantly subscribed. I've been looking for a channel like this!
@suraiyaanjum2907
@suraiyaanjum2907 3 жыл бұрын
Also check paul McWhorter channel
@drewkryger1102
@drewkryger1102 5 жыл бұрын
your videos are so well put together
@chrislusbytaylor3197
@chrislusbytaylor3197 2 жыл бұрын
You detect a rotation only when the inputCLK pin changes. You could also test the inputDT pin to see if it has changed. This would give you twice as many detected rotations per revolution which, in many applications, would seem preferable. The logic is only a little more complex. You have to record the previous state of both pins and enter the pulse routine if either changes.
@bteck2005
@bteck2005 Жыл бұрын
You are absolutely right and it is good you brought up this option. But it should be trated as a special case when you want to detect input changes faster than the clock speed. In most cases, it is unneccessary, as it will consume extra processing power of the microcontroller, especially when you may want the controller to handle other functions.
@Dasgath
@Dasgath 5 жыл бұрын
the second code you have published in your webpage for this lesson is missing a { at the "void loop ()" line
@sandyjohnston9457
@sandyjohnston9457 4 жыл бұрын
thankyou
@ranaimran5387
@ranaimran5387 4 жыл бұрын
Your every video is informative and i am very thankful about your work,please keep it up
@alejandroleon3170
@alejandroleon3170 4 жыл бұрын
Great!!! This is the best channel I ever experienced!!!
@SpeccyMan
@SpeccyMan 5 жыл бұрын
At 20:21 the phase difference between the signals is 90 degrees and not 180 degrees!
@Marva123
@Marva123 5 жыл бұрын
I thought that as well. I guess he is just considering the time when the pulse is high, which would make it 180, but if you consider the time the pulse is low it would make it 90. Since this is a digital signal and not an analog signal that is continuous, I'm not sure if you account for the time the signal is off as part of the phase?
@SpeccyMan
@SpeccyMan 5 жыл бұрын
@@Marva123 Simply put, if the signals had a phase difference of 180 degrees then they would mirror each other on the x axis. Phase is taken over the entire cycle of a wave.
@Johennessy
@Johennessy 5 жыл бұрын
it must be 90° since thats how every stepper works. He ment 90° but if u rush trough it so fast u can mistake those two.
@infinytower3317
@infinytower3317 5 жыл бұрын
As always, super great educational video! Thank you so much! 👍👍 🙏🏻🙏🏻🙏🏻
@kimkouki6804
@kimkouki6804 3 жыл бұрын
thank you for your videos , it is very explicite , please do much videos like this
@fernandolobinho2752
@fernandolobinho2752 2 жыл бұрын
Hi, thank you for this intuitive and useful video. It was my intention to use a pot and "AnalogRead" input to generate decimal numbers but as I've for long time a encoder so let me play with it, ;) Many Thanks
@DanielStJohn-hc7mh
@DanielStJohn-hc7mh 4 жыл бұрын
Great Job! You are outstanding. It was hard to find where to start. You make everything so simple. Thank You.
@simonabboud5987
@simonabboud5987 4 жыл бұрын
I have enjoyed your style of teaching
@dgb5820
@dgb5820 4 жыл бұрын
You make the obsolute best videos on youtube
@David_11111
@David_11111 3 жыл бұрын
subscribed to news letter .. now going back to explore your site.. Thankyou.
@TheRokkis
@TheRokkis 5 жыл бұрын
Your voice is the best ASMR =D
@3nagib
@3nagib 5 жыл бұрын
Another great episode Bill.keep up the great work
@VanDerLaars
@VanDerLaars 4 жыл бұрын
You are an AMAZING teacher!
@IvoBallie
@IvoBallie 5 жыл бұрын
Great educational video. It would be nice to see a sketch using the rotary encoder to control the speed of the motor instead of the pot.
@MrRoman238
@MrRoman238 Жыл бұрын
Nice video, I've enjoyed. Thanks a lot.
@DaruoshAghajaney
@DaruoshAghajaney 5 жыл бұрын
Nicely presented video and enjoyable to watch even for someone who is experienced and watch it for fun. However I was expecting to see how to handle the rotation when MC is busy with other stuff like reading other sensors or adjusting different motors speed. Interrupts are very important part of driving rotary encoders and I hope you cover them in your future videos. Thanks again.
@imappami
@imappami 5 жыл бұрын
I agree. The microcontroller is busy all the time checking for changes in input. A better approach, using interrupts, can be found here: kzbin.info/www/bejne/enOQnXaDr9yiaKs
@nipunkavishka
@nipunkavishka 4 жыл бұрын
perfect video. Learnd so many things. 💪🤘❤❤
@isidorovazquez6968
@isidorovazquez6968 4 жыл бұрын
Love your videos and for sure they inspire me to create something else! God bless you!
@Nutshell_In_Chains
@Nutshell_In_Chains 5 жыл бұрын
Thank you for the clear explanation in your videos. At 14:15 you mention to connect ground of the power supply to ground of the arduino and that it is an important connection. Why is this connection necessary and why is it important?
@patwicker1358
@patwicker1358 5 жыл бұрын
Same question.
@TheUnofficialMaker
@TheUnofficialMaker 5 жыл бұрын
@@patwicker1358 to keep the noise low
@sd4dfg2
@sd4dfg2 5 жыл бұрын
When a power supply says +6V volts it just means 6 volts higher than its ground, it's a relative value not an absolute value. By connecting all your grounds together you now know that the positive side of your +6V supply really is only one volt higher than the +5V pin on your board.
@Nutshell_In_Chains
@Nutshell_In_Chains 5 жыл бұрын
@@sd4dfg2 thank you
@ChristianRThomas
@ChristianRThomas 5 жыл бұрын
The quick answer is that it keeps all the grounds somewhere near 0V so that the the 0s and 1s fall within the logic ranges - which are pretty easy going as to what counts as a zero and what counts as a one. A more important factor is that multiple supplies are being used and (mostly), these ultimately go back to a transformer. Transformers float unless one end of the secondary(ies) is attached to ground. That floating can be pretty high - I have heard of differences of 60V between components - so if you pin one side of your transformer, and say, the negative of your battery each to ground then you won't get 60V being dropped across a bit of cable. When you look at the problem in detail it's surprising how infrequently the problem actually arises (or how infrequently it burns down houses) but it is potential pitfall where high currents are being drawn.
@Chris-m1x6o
@Chris-m1x6o Жыл бұрын
Any advice appreciated 👍
@markvreeken
@markvreeken 4 жыл бұрын
Excellent information. Thanks will help me to tackle an upcoming project.
@Farm.Modern
@Farm.Modern 3 жыл бұрын
thank you, your videos really helped me
@kazibakey1301
@kazibakey1301 2 ай бұрын
Can you explain the rotary encoder switch?
@hugbearsx4
@hugbearsx4 3 ай бұрын
Is there any chance there will be a video shedding light on using linear absolute encoders with Arduino??
@dougsteel7414
@dougsteel7414 4 жыл бұрын
They're really useful for when you want to externally influence a user parameter - I realised this making a midi CC device, where values are set from a document, and you want to make deltas . Otherwise you need motorised pots which cost a fortune
@camicar2698
@camicar2698 5 жыл бұрын
Gracias por el video amigo, Saludos desde Colombia
@damithsm1980
@damithsm1980 5 жыл бұрын
You make everything simple...Good job..Thank you very much...Love it...:-)
@jerrysmagic007
@jerrysmagic007 5 жыл бұрын
You would have an aneurysm if you saw the mess in my work shop... ... nice videos by the way
@goddlediddles
@goddlediddles 4 жыл бұрын
I have watched most of your videos, and I have to say they are absolutely excellent - they're clear and very detailed. You've made me very enthusiastic about using Arduino. I wonder could you answer an important question? When controlling a stepper motor remotely, how long can any of the cables be, either to the motor or from the rotary encoder. I need to remote-control a stepper motor from a distance of 15 meters. Many thanks, goddlediddles.
@davidoflight1313
@davidoflight1313 3 жыл бұрын
Are the output channel bit states opposite or identical for (CW) clockwise rotation? The software explanation (10:09m) doesn't seem to match the encoder operation description (3:27m). Please clarify? Great Instructional video!
@tomsunnex7215
@tomsunnex7215 5 жыл бұрын
Another fantastic tutorial
@maciekm7953
@maciekm7953 5 жыл бұрын
Thank You very much for that precious knowledge 👍
@CONNIEMALAN
@CONNIEMALAN 5 жыл бұрын
Thanks for another super video, top quality !!!
@muhammadrafiqulislamkhan6994
@muhammadrafiqulislamkhan6994 3 жыл бұрын
Thank you. Easy explanation.
@electronic7979
@electronic7979 5 жыл бұрын
Useful video 👍 very good
@fantasticphil3863
@fantasticphil3863 3 жыл бұрын
If you set up the code to detect changes from both the CLK and DT inputs, you can double the resolution of the rotary encoder, at the cost of simple code.
@Dekan88
@Dekan88 Жыл бұрын
Hi, great video as always. Can you use this dc gearmotor and drive to make the motor move forward and reverse to different position?
@ahmedgaafar5369
@ahmedgaafar5369 5 жыл бұрын
you are a great teacher Sir.
@kwikb
@kwikb 5 жыл бұрын
I agree completely. You could make a video on how to make great youtube tutorials. excellent
@jaysonbutcher1178
@jaysonbutcher1178 5 жыл бұрын
Great work, love your workshop.
@ovidiurosu6632
@ovidiurosu6632 5 жыл бұрын
great job, thank you for yet another very informative & clear video
@tobygibbes2111
@tobygibbes2111 3 жыл бұрын
could you do RFID please? if that is possible
@osmantoprakoglu5040
@osmantoprakoglu5040 5 жыл бұрын
Perfect lecture, thank you.
@sammflynn6751
@sammflynn6751 4 жыл бұрын
Sir, your videos are always a pleasure to watch. They are very informative. I had a question. I have 4 rotary quadrature encoders with 2400 pulses per revolution and for my use case it is essential to use them in this high resolution. My question is what microcontroller will be best to read these pulses. If I use ardunio mega, It often fails to count pulses at high speeds (around 1000 rpm x4 -> 160,000 pulses per second).
@skydahe9615
@skydahe9615 5 жыл бұрын
Thank you so much for this helpful video!
@gregwilliams7354
@gregwilliams7354 9 ай бұрын
Great video. I have a circuit that I'm working on but with the encoder, I get a lot of bounce. I know I can debounce either in software or hardware, but I note no bouncing in your demonstration. Wondering if it is the quality of encoder I have or if you are doing something to counter the bounce. Thanks.
@takisbakalis
@takisbakalis 5 жыл бұрын
Seems it's missing steps? Arround 12:00 the counter is moving up or down correctly.
Big Stepper Motors with Arduino
29:43
DroneBot Workshop
Рет қаралды 1,2 МЛН
Adventures in Science: How to Use Rotary Encoders
12:05
SparkFun Electronics
Рет қаралды 227 М.
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
How to use rotary encoders
14:12
FriendlyWire
Рет қаралды 44 М.
This Component solves "All" Motor Problems?! (Motor Encoder) EB#58
11:34
Control Large Gearmotors with PWM & Arduino
34:34
DroneBot Workshop
Рет қаралды 263 М.
#226 ROTARY ENCODER with no switch bounce 🤓 - you MUST use this
25:49
Making a 5.79”  e-ink/e-paper dashboard with Arduino
15:27
Maker's Fun Duck
Рет қаралды 19 М.
How to use encoders (Optical, Hall Effect, Quadrature)
20:44
Will Donaldson
Рет қаралды 114 М.
Let's build a voltage multiplier!
16:32
Ben Eater
Рет қаралды 2,2 МЛН
Turn any DC Motor into a Servo Motor
25:24
How To Mechatronics
Рет қаралды 302 М.
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН