Комментарии:
Where are interrupts used?!
ОтветитьHi Bas, wich Rotary encoder are u using, it has a pushfunction wich i need
Ответить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?
Ответитьmy encoder bounce all the time and it is driving me crazy, how do you make it not bounce
Ответить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.
thanks. just what was after. very well explained.
Ответить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
ОтветитьBest ever explanation of how a rotary encoder works.Two little dots fit it
Ответить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.
ОтветитьPerfect
Ответить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?
Ответить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.
Ответить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 ;-)
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!
Ответить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?
Ответить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.
ОтветитьGreat video. Clear instructions. Please do more and more videos
ОтветитьIf led brightness control with two leds. How to code ?
Ответитьsüperb
ОтветитьThank you!
ОтветитьCan you make more videos please
ОтветитьTeach us!
ОтветитьKan je een video maaken over RBG led
Ответить