Rotary Encoder Interface Options for My Pet Arduino

Sdílet
Vložit
  • čas přidán 12. 12. 2013
  • Here are about half a dozen different ways you can use a rotary encoder and an input interface for your next Arduino Project. You will find a link to the sketch at the end of this description.
    If you haven't viewed parts 1 and 2 of this series, be sure to so. Part 2 explains in detail how we get values by rotating the knob on our encoder and ignore key bounce that is far too common with the inexpensive versions of these parts.
    You can see the sketch here: drive.google.com/open?id=0B8Q...
    There are some issues with the sketch. The 'Send Menu' has too many items in it which means that some will get overwritten by other data as you run the program. Also, the project is not very easy to use when you are actually on the air. I would recommend that you only use parts of this program in your own project.
    Budd - WB7FHC
  • Věda a technologie

Komentáře • 43

  • @lamorimferreira
    @lamorimferreira Před 6 lety

    Congratulations, it is a very good example how to use a rotary encoder with knob to insert values in the arduino!

  • @dparson
    @dparson Před 9 lety +1

    This is a really nice demonstration and I really like the pointer method you came up with for entering text! In a recent project of mine I used a 2 line OLED and came up with a UI where you edit 1 character at a time by rotating the knob, advance to the next character with a short click, and complete editing with a long click. So it was very cool to see another method that works so well, thanks!

  • @UpcycleElectronics
    @UpcycleElectronics Před 6 lety +2

    Sub'd after this was suggested in my home feed. I have been searching for rotary encoder and LCD menu project examples recently while working on a similar design. Thanks for the upload. I have added this to my "IDE Arduino" playlist for future reference, and started another I named Rotary Encoder LCD Menu because I have several uploads saved that I should add to that list. My playlists and subscriptions are publicly listed for anyone looking for a moderated and compiled source of helpful electronics references. I'm not monetized and don't plan to be. I'm simply trying to make it an easier path to walk for the next person searching for info :)
    -Jake

  • @StevenFAllen
    @StevenFAllen Před 9 lety

    Great video, very helpful. Thank you for posting the code. Excellent work!

  • @DAustinUK
    @DAustinUK Před 9 lety

    Thanks for this Budd :) Really well explained :)

  • @BEdmonson85
    @BEdmonson85 Před 9 lety

    Thank you, Mr. Churchward. This was such a well explained and very informative video. It was exactly what I was searching for. I hope to get my technician class ham license within the next month or two. Maybe I'll hear you on the air sometime. Thanks again for a great video.

  • @jeffhill6769
    @jeffhill6769 Před 8 lety

    Great work! Very helpful.

  • @alek66
    @alek66 Před 10 lety

    Hey thanks for sharing this!!! I am struggling now with making my own menus. This is a great starting point!

  • @anthonyorsi
    @anthonyorsi Před 9 lety

    Excellent video. Thanks.

  • @sparktechedm
    @sparktechedm Před 9 lety

    Very very nice project!!

  • @ochre6887
    @ochre6887 Před 9 lety

    I like how you break down the code and explain what's going on. How about a video on real time clocks with an encoder. A lot of people ask for this in the arduino forum, it would be good to see a video on this topic.
    Great work.

  • @robertpendergast2620
    @robertpendergast2620 Před 9 lety

    I also have an IC 735. What WONDERFUL Radio it is.

  • @BuddChurchward
    @BuddChurchward  Před 10 lety +8

    I put together a project that would demonstrate many different ways to use a rotary encoder has an input device for and #Arduino. Maybe some of you will get some good ideas from it.
    When I actually tried out live on the air, it wasn't a complete success. I put too many features and choices into one application. Trying to run it AND copy Morse Code at the same time proved to be a challenge.
    Even so, I learned a lot. I think a simpler more scaled down version will be something that I can use. #hamradio #morsecode

    • @katebradlovic2924
      @katebradlovic2924 Před 6 lety

      Nice ideas you got there !
      Have you wondered how it could be efficient with dual screen and dual rotary encoders ?
      I'm on my way trying something like that with two nokia 5110 screens and two rotary encoders
      Left encoder and left screen = menus
      Right encoder and right screen = edit values
      "keyboard" mode can use both screens and encoders, I'm convinced it could be rendered as a quite intuitive and fast interface to use.

  • @radiorob007
    @radiorob007 Před 9 lety

    I have seen two videos from you,
    it was a pleasure to look at it!
    very educational!
    previously done much with HF,
    now working with 3D printer and Arduino
    And also with Arduino loose,
    with the experimental kit (from china)
    (Arduino programming process is a bit difficult for me)
    thanks for the video
    and friendly greetings and succes.
    from Netherlands / Rotterdam.
    Rob.
    (I hope the translation went well! Google) ;-)

    • @BuddChurchward
      @BuddChurchward  Před 9 lety

      Translation was good, Rob. I wish you good luck with your projects.

  • @AlexLPD
    @AlexLPD Před 10 lety

    Thank you very much... I will be from great help! ... Danke!

  • @bluematrix5001
    @bluematrix5001 Před 6 lety

    I wish i can be as smart as you are to build my ideas!! :( cool video

  • @agonymobile
    @agonymobile Před 9 lety

    Excellent job, Id give it 6 or even more depending weather you reached your goal or not
    I used a mouse rotary encoder for my test project, has 3 Buttons each have a resistor that change a voltage on a voltage divider and I can combine buttons ( click and hold ) for the desired command, like (both left and right clicks reset).
    Using analog wasn't that easy though, there's noise I had to cancel. I was using A14 analogue pin (Arduino MEGA).
    anyway I come up with an idea is to replace rotary switch with IR remote control.. there's a library for it and easy to use.
    the mouse costs me only $1 but hacking 4 USB wires for both clicks and rotary was a process I wanted to avoid repeating.
    Pin A15 used to check battery status a 1/3 voltage divider 20K vs 10K ohm to ground then with another resistor to DC jack + pin

  • @ChadHarzkeKK6DPE
    @ChadHarzkeKK6DPE Před 9 lety +3

    I'm finally getting a little deeper into Arduino. I was looking for a way to create a menu and use the encoder with it. I found this. I was NOT disappointed! Well, maybe a little bit. This is LIGHT YEARS over my head. LOL How do I download your brain so I can understand all of this? :P If you ever do a menu system that's a bit easier to understand and especially edit, please let me know.
    Well, time to spend a few days tearing this apart so I can TRY to understand it.
    *SUBSCRIBED*
    GREAT INFO!!
    Thanks
    KK6DPE

  • @RonFinlay1
    @RonFinlay1 Před 7 lety +1

    This was awesome and exactly what I'm looking for, encoder, push button, menus, sub menus, text entry. Been searching for weeks !! I'v got an OLED not LCD, but I'm sure it's adaptable. How could I get this wonderful code. A bit over my head too, but I understood most of it thanks to you

  • @ronneilcamara5071
    @ronneilcamara5071 Před 9 lety

    You are amazing!!!!! Thanks for the awesome video!!! Do you have any rotary encoder recommendation? Also, is that called a quadrature encoder?

  • @adamderbent6986
    @adamderbent6986 Před 5 lety

    SUUUPEEEER!!!!!!!

  • @bbjodel3778
    @bbjodel3778 Před 4 lety +1

    Hi Budd can you share your code ? Your link don't work...

  • @jurgenbillhofer3207
    @jurgenbillhofer3207 Před 5 lety

    Great video, could you please post the sketch in Arduino-IDE format, instead of this HTML file?
    Being not familiar how to extract the program related commands from the formatting commands, makes this difficult to use.

  • @rebirth3X
    @rebirth3X Před 10 lety

    Curious, could the rotary encode step through the menu as an Array, as opposed to chunks of String?

    • @BuddChurchward
      @BuddChurchward  Před 10 lety

      rebirth3X ... yes. The video shows two menus. One is an Array. The other is a string. I will post the sketch today.

  • @yiannisbrokos5267
    @yiannisbrokos5267 Před 9 lety

    Hello
    I'm trying to use the sketch and it only changes two messages "Now in Command Mode"
    and "Now in Send Mode"
    when i press the knob it stucks.
    I have done something wrong or I have to put my hand on the code to make it work?
    I have make some changes because I have a I2C 20x4 lcd but i dont think that is the problem
    SV1EOR

    • @BuddChurchward
      @BuddChurchward  Před 9 lety

      ΓΙΑΝΝΗΣ ΜΠΡΟΚΟΣ In my example pressing the knob acts as a push button. On when I press, off when I let go. Perhaps yours acts as a latch. On when push the first time then off when you push the second time. The sketch would not work if that is the case.

  • @gregs78cam
    @gregs78cam Před 10 lety

    Budd, thanks for this info. Could you show more of the code for this?

    • @BuddChurchward
      @BuddChurchward  Před 10 lety +1

      The code is now available at:
      googledrive.com/host/0B8Ql_9-ygoisczg4STFicFZPWEE/RotaryEncoderOptions.html

  • @kd5aj
    @kd5aj Před 9 lety

    Hi Budd!! I would like to know how to order this kind of perf board, what is it called and who would be a cheap source??
    Kelly

    • @BEdmonson85
      @BEdmonson85 Před 9 lety

      Kelly Mabry Radio Shack used to carry it before they closed down. Probably the cheapest source I know of now would be E-Bay

  • @MkmeOrg
    @MkmeOrg Před 10 lety +1

    Excellent video! Very well explained. Just great overall. Very nice project- have you shared the code anywhere by chance? Would love to borrow some. Definitely got some great ideas from it. Cheers and 73.

    • @BuddChurchward
      @BuddChurchward  Před 10 lety +1

      The code is now available at:
      googledrive.com/host/0B8Ql_9-ygoisczg4STFicFZPWEE/RotaryEncoderOptions.html

    • @UpcycleElectronics
      @UpcycleElectronics Před 6 lety

      I definitely found this helpful too.
      *to anyone else that finds this* This link /^\ is broken but the one in the description still works ;)
      -Jake

  • @MyFizzypop
    @MyFizzypop Před 4 lety

    great vid, 2E0CUH marconi founder station GB4IMD operator Cornwall UK

  • @bogdanflorea3649
    @bogdanflorea3649 Před 10 lety

    Hello,can you post the sketch for this video?

    • @BuddChurchward
      @BuddChurchward  Před 10 lety

      I will be able to post the sketch in a few weeks. I am not where I have access to it at this time. Watch for it to appear.

    • @bogdanflorea3649
      @bogdanflorea3649 Před 10 lety

      Ok,I wait the sketch by email (yo7gpn@gmail.com) because mail access it more often than youtube.Thank you very much and 73' !

    • @BuddChurchward
      @BuddChurchward  Před 10 lety

      The code is now available at:
      googledrive.com/host/0B8Ql_9-ygoisczg4STFicFZPWEE/RotaryEncoderOptions.html