Rotary Display Menu for Raspberry Pi Pico in MicroPython

Поделиться
HTML-код
  • Опубликовано: 2 окт 2024
  • Rotary Display Menu for Raspberry Pi Pico in MicroPython
    For more information, tutorials, parts and more visit:
    www.smarsfan.com​
    To join the membership at bronze, silver or gold levels, head over to
    www.smarsfan.c...
    Enjoy this video? Buy me a coffee!
    www.buymeacoff...
    Music by Epidemic Sounds
    www.epidemicso...
    Rotary Menu Display code::
    github.com/kev...
    #Pico​ #MicroPython​ #Robotics

Комментарии • 44

  • @kevinmcaleer28
    @kevinmcaleer28  Месяц назад

    The code is available here: github.com/kevinmcaleer/rotarydisplay

  • @VEEBProjects
    @VEEBProjects 2 года назад +4

    This is great. As a cheeky bonus, you casually throw in how to use a rotary encoder that isn't on a breakout board. I scoured the internet for exactly this the other day and came up with nothing. Thanks!

  • @cirkulx
    @cirkulx Год назад +1

    I saw this code and was able to adapt it to a 4 button layout, and in the process I changed some things like the amount of items per page. Good code!

  • @Rolohaun
    @Rolohaun 3 года назад +5

    Great work Kevin, your one of the best micropython and electronics channels! Alot of production value goes into your videos. I would love to see your take on making a simple eReader on the pico. Something that just loads a local text file. I made a version using a large 1309 OLED display. Cheers!

  • @lorisrobots
    @lorisrobots Год назад

    Thanks! Your menu code is really masterful! I was able to adapt the concept to momentary switch control.

  • @layz6243
    @layz6243 4 месяца назад +1

    How do i replace the rotary encoder with my proprietary buttons?

  • @jackcookson6906
    @jackcookson6906 3 года назад +1

    A really good project, thanks

  • @OhHeyTrevorFlowers
    @OhHeyTrevorFlowers 3 года назад +5

    The production values of your videos are great! Thanks for sharing.

  • @thewilltejeda
    @thewilltejeda Год назад

    Love this

  • @alejandroS5050
    @alejandroS5050 Месяц назад +1

    Where is the code? 😭😭 can you upload the code again? please 🙌🙌

    • @kevinmcaleer28
      @kevinmcaleer28  Месяц назад +1

      Done - github.com/kevinmcaleer/rotarydisplay

  • @BoeAllen
    @BoeAllen 7 месяцев назад

    I'm trying to use a 16x2 LCD instead of the oled, I've come to the issue of 'shift' and 'short_list'. Now I only have two lines to work with, how would that affect the menu. I have the LCD set up and I've done my best integrating it where oled code was but I can't seem to figure out making a loop between menu elements.

  • @MrDrake333
    @MrDrake333 7 месяцев назад

    Q: have you made it for the normal Raspberry Pi? The coding is only working for micro python. If I have understood the code correct ?

  • @robertolszowka4107
    @robertolszowka4107 11 месяцев назад

    Awesome video but there is only one level menu there I curently looking for some like two layer menus can You show how to do that ?

  • @AJB2K3
    @AJB2K3 3 года назад +2

    Ouu interesting and perfectly connects with the previous rotary guide.

  • @nick-qw2zh
    @nick-qw2zh 24 дня назад

    Hi Kevin, thank you very much for your videos and especially this one. However, I have a problem. I can install the code in Thony. I can upload it to the pico and the ssd1306 displays the 11 items that I have stored as .py on the Pico so I have changed the number of items in the list. The rotary encoder that I am using is on a breakout board. The first one I used did not change the menu at all so I changed the rotary encoder which has pull up resistors on all ( sw, dt, clk). output and therefore modified your code to take away the pull-up instruction for the three terminals but it’s still made no difference and the code / shortlist/ menu does not respond to the rotary encoder when it is turned or the button is pushed. I expect I am missing something simple but so far it evades me . If you have any thoughts I’m all ears
    Cheers
    Nick

  • @kylejohnson5446
    @kylejohnson5446 2 года назад +1

    I keep getting
    Traceback (most recent call last):
    File "", line 96, in
    File "", line 44, in get_files
    TypeError: 'NoneType' object isn't iterable
    Any tips?

    • @kevinmcaleer28
      @kevinmcaleer28  2 года назад

      I'm looking through the code - it looks like there are no files on the file system its looking at (which is really wierd). Can you tell me a bit more about the setup - what version of MicroPython are you using, what board is it running on etc.

  • @seanchallenge
    @seanchallenge 2 года назад +2

    Excellent

  • @mandyli3844
    @mandyli3844 3 года назад +2

    Very good explanation!

    • @kevinmcaleer28
      @kevinmcaleer28  3 года назад +1

      Thanks! I’d recorded a 15 minute video of me typing out each line of code for this, but honestly I think I’d made the worlds most boring video so I cut that out.

  • @iKostanCom
    @iKostanCom 3 года назад +2

    I like this format of short tutorials very much.

  • @AM-pi7jy
    @AM-pi7jy 2 года назад +1

    Thanks for the inspiration. What kind of rotary encoder is this? I have a KY-040 and it doesn't work properly.

    • @kevinmcaleer28
      @kevinmcaleer28  2 года назад

      Not sure where I got this one from, I can recommend these though shop.pimoroni.com/search?q=rotary

  • @EcoHamletsUK
    @EcoHamletsUK 3 года назад +2

    Brilliant. Thanks Kevin. I've been wondering if this is possible since the day the Pico was launched, but it seems to go beyond what I'd hoped for! Being able to run multiple programs in this way is what really makes the Pico stand out from Arduinos, so the next question is whether it can be done in C++!

    • @kevinmcaleer28
      @kevinmcaleer28  3 года назад +1

      If we can do it in Python we can certainly do it in C++ (and probably quicker too). Thanks for inspiring this video - I really enjoyed doing this one!

    • @EcoHamletsUK
      @EcoHamletsUK 3 года назад +1

      Thanks for saving me lots of effort working out how to do it myself!

  • @plazmax
    @plazmax 3 года назад +1

    Hi, very informative thank you

  • @josephjensen8436
    @josephjensen8436 Год назад

    Next do a laser tag!!

  • @thweiser
    @thweiser 3 года назад +1

    great explanation!!! Well done 👍👍👍

  • @StaticStorm17
    @StaticStorm17 2 года назад +1

    Love this project! I am making it happen now and it works perfectly. I was wondering if there’s a way to do it where the file extension “.py” is not shown for each file in the menu. Thanks!

    • @kevinmcaleer28
      @kevinmcaleer28  2 года назад +1

      Yes - just add .replace(‘.py’,’’) to the file name string

  • @gamerzarena9808
    @gamerzarena9808 Год назад

    is there a possibility to run files in files by your program

  • @60pluscrazy
    @60pluscrazy 2 года назад

    Thanks

  • @gabelogan6869
    @gabelogan6869 2 года назад +1

    Hello, thanks for your work, I have a question: If I want to use a JoyStick how should I do? Im a bit lost... Thanks again

    • @gabelogan6869
      @gabelogan6869 2 года назад

      nvm I figured it out! xD

    • @kevinmcaleer28
      @kevinmcaleer28  2 года назад +1

      It depends on the joystick - do you have a particular one in mind

    • @gabelogan6869
      @gabelogan6869 2 года назад +1

      @@kevinmcaleer28 I managed to make the joystick work! Thanks anyway! Awesome video
      Edit: it was a joystick that comes together with the OLED display. Firebeetle oled cover.
      Now it works perfectly i made a program based in your code, you helped me a lot.

  • @LorisHW
    @LorisHW Год назад

    Thanks for this video Kevin - very helpful!

  • @mehdikarimpoor9401
    @mehdikarimpoor9401 2 года назад

    Hello good time
    I program with esp32 in ThonnyIDE environment.
    When I upload and run the code, to continue coding, when I hit the stop button and ctrl C, the code and repl environment does not open for me, and there is no way to install the firmware on the board again.
    What is the method for this problem? Does using the Visual Studio Code environment solve this problem?

  • @Новости-з3й
    @Новости-з3й 2 года назад +1

    Can you stop this awful music?
    It is really painfull and useless!