ROTARY ENCODER WITH INTERRUPTS - Arduino tutorial #12

ROTARY ENCODER WITH INTERRUPTS - Arduino tutorial #12

Bas on Tech

5 лет назад

56,363 Просмотров

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


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

Mihalcea Alexandru
Mihalcea Alexandru - 21.09.2022 21:41

Where are interrupts used?!

Ответить
Ton Holper
Ton Holper - 20.09.2022 15:51

Hi Bas, wich Rotary encoder are u using, it has a pushfunction wich i need

Ответить
ManMadeDesaster
ManMadeDesaster - 01.09.2022 17:18

i have first added the encoder without interrupts- which worked semi okay (its not reading fast enough), so i added the interrupt. Now when i turn the encoder my whole program will stop. I call a switch case with the interrupt and the switch case calls another switch case inside, maybe using an interrupt is forbidden with nested switch cases?

Ответить
Nguyễn Anh Tài
Nguyễn Anh Tài - 16.07.2022 19:37

my encoder bounce all the time and it is driving me crazy, how do you make it not bounce

Ответить
Mahela Munasinghe
Mahela Munasinghe - 13.04.2022 16:01

Thank you for the video.
While this does a fantastic job of explaining the Principle of a rotary encoder, the code can't really be used in a project because this it doesn't do any debouncing or filtering.

Ответить
canister
canister - 19.03.2022 01:12

thanks. just what was after. very well explained.

Ответить
Naboulsi Khalid
Naboulsi Khalid - 19.01.2022 16:52

that explains all the things I wanted to know and settles down all the dust that cloud my understanding of rotary encoder. Great tutorial. thank you very much

Ответить
Allan Miners
Allan Miners - 20.10.2021 01:56

Best ever explanation of how a rotary encoder works.Two little dots fit it

Ответить
Hector Ponce
Hector Ponce - 30.09.2021 05:49

I loved your video, but when implementing the interrupt, I am now getting left on left and mostly left on right. Before implementing the interrupt each direction is mostly correct.

Ответить
ünal akdoğan
ünal akdoğan - 29.09.2021 16:41

Perfect

Ответить
_Twich_
_Twich_ - 30.05.2021 09:29

lets say i want to connect 2 encoder, i assume is possible to contec the pinA to arduino pin2 and 10 and the other encoder pinA to arduino pin3 and 11. i assume thinks will work the same way. of course by doublening the code, with deferent pins and names, will this work?

Ответить
Jaime Riquelme
Jaime Riquelme - 11.05.2021 04:54

Hi Bas on tech, how did you verify this program when ' digitalPinToInterrupt' was not declare in this scope, help me please to understand. Thanks for your time.

Ответить
Longdong Silver
Longdong Silver - 27.02.2021 23:55

Thanks for your help. This video kept me surely from searching for the solution during hours. I was using the polling method to read my encoders and it was far from satisfying. I had lots of misreads and the reliablilty depended too much on the encoder quality. Interrupts was the way to go.
BTW, your english pronunciation is perfect ;-)

Ответить
Elias A. Olsson
Elias A. Olsson - 15.01.2021 19:31

I´ve tested it on other pins that arent 3 and 4 and it doesnt work, why does this happend? Before you ask, I´ve changed the code so that the pins are different. If there is something misssing please let me know!

Ответить
Eric Ellenbrook
Eric Ellenbrook - 09.09.2020 23:47

Theoretically could you assign a count to the encoder so when you turn to the left it decreases and to the right it increases? And could you display that value on the LCD screen?

Ответить
Mikey's Lab
Mikey's Lab - 25.07.2020 17:08

You should handle the denouncing in hardware, not software. Adding a couple resistors, a cap and a 74hc14 will give you a nice clean signal.

Ответить
Sahan Jay
Sahan Jay - 23.05.2020 08:04

Great video. Clear instructions. Please do more and more videos

Ответить
Anak Rantauan
Anak Rantauan - 01.02.2020 20:11

If led brightness control with two leds. How to code ?

Ответить
muratcan barut
muratcan barut - 25.11.2019 17:22

süperb

Ответить
steven irish
steven irish - 08.09.2019 18:51

Thank you!

Ответить
Startobytes
Startobytes - 09.06.2019 21:10

Can you make more videos please

Ответить
محمد درارني
محمد درارني - 02.02.2019 19:51

Teach us!

Ответить
TY88
TY88 - 02.01.2019 13:35

Kan je een video maaken over RBG led

Ответить