Rotary Display Menu for Raspberry Pi Pico in MicroPython

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ต.ค. 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

  • @layz6243
    @layz6243 4 หลายเดือนก่อน +1

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

  • @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!

  • @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!

  • @OhHeyTrevorFlowers
    @OhHeyTrevorFlowers 3 ปีที่แล้ว +5

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

  • @alejandroS5050
    @alejandroS5050 หลายเดือนก่อน +1

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

    • @kevinmcaleer28
      @kevinmcaleer28  หลายเดือนก่อน +1

      Done - github.com/kevinmcaleer/rotarydisplay

  • @nick-qw2zh
    @nick-qw2zh 22 วันที่ผ่านมา

    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

  • @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 ?

  • @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!

  • @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.

  • @gamerzarena9808
    @gamerzarena9808 ปีที่แล้ว

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

  • @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.

  • @iKostanCom
    @iKostanCom 3 ปีที่แล้ว +2

    I like this format of short tutorials very much.

    • @kevinmcaleer28
      @kevinmcaleer28  3 ปีที่แล้ว

      Thanks - they are fun to create too!

  • @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

  • @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.

  • @thewilltejeda
    @thewilltejeda ปีที่แล้ว

    Love this

  • @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!

  • @jackcookson6906
    @jackcookson6906 3 ปีที่แล้ว +1

    A really good project, thanks

  • @josephjensen8436
    @josephjensen8436 ปีที่แล้ว

    Next do a laser tag!!

  • @plazmax
    @plazmax 3 ปีที่แล้ว +1

    Hi, very informative thank you

  • @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

  • @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?

  • @lorisrobots
    @lorisrobots ปีที่แล้ว

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

  • @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!

  • @Новости-з3й
    @Новости-з3й 2 ปีที่แล้ว +1

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