Rotary Display Menu for Raspberry Pi Pico in MicroPython

  Рет қаралды 17,247

Kevin McAleer

Kevin McAleer

Күн бұрын

Пікірлер: 50
@kevinmcaleer28
@kevinmcaleer28 4 ай бұрын
The code is available here: github.com/kevinmcaleer/rotarydisplay
@VEEBProjects
@VEEBProjects 3 жыл бұрын
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!
@kevinmcaleer28
@kevinmcaleer28 3 жыл бұрын
Thanks!
@cirkulx
@cirkulx Жыл бұрын
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!
@lorisrobots
@lorisrobots Жыл бұрын
Thanks! Your menu code is really masterful! I was able to adapt the concept to momentary switch control.
@iKostanCom
@iKostanCom 3 жыл бұрын
I like this format of short tutorials very much.
@kevinmcaleer28
@kevinmcaleer28 3 жыл бұрын
Thanks - they are fun to create too!
@OhHeyTrevorFlowers
@OhHeyTrevorFlowers 3 жыл бұрын
The production values of your videos are great! Thanks for sharing.
@Rolohaun
@Rolohaun 3 жыл бұрын
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!
@AJB2K3
@AJB2K3 3 жыл бұрын
Ouu interesting and perfectly connects with the previous rotary guide.
@kevinmcaleer28
@kevinmcaleer28 3 жыл бұрын
Thanks Adam!
@mandyli3844
@mandyli3844 3 жыл бұрын
Very good explanation!
@kevinmcaleer28
@kevinmcaleer28 3 жыл бұрын
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.
2 ай бұрын
Ja jetzt läuft es. is gegen == getauscht. Großartiges Programm.👍👍👍
@kevinmcaleer28
@kevinmcaleer28 2 ай бұрын
I'm glad you got it working!
@thweiser
@thweiser 3 жыл бұрын
great explanation!!! Well done 👍👍👍
@seanchallenge
@seanchallenge 3 жыл бұрын
Excellent
@LorisHW
@LorisHW Жыл бұрын
Thanks for this video Kevin - very helpful!
@jackcookson6906
@jackcookson6906 3 жыл бұрын
A really good project, thanks
@plazmax
@plazmax 3 жыл бұрын
Hi, very informative thank you
@60pluscrazy
@60pluscrazy 2 жыл бұрын
Thanks
@thewilltejeda
@thewilltejeda Жыл бұрын
Love this
@EcoHamletsUK
@EcoHamletsUK 3 жыл бұрын
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 жыл бұрын
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 жыл бұрын
Thanks for saving me lots of effort working out how to do it myself!
@AM-pi7jy
@AM-pi7jy 2 жыл бұрын
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
@layz6243
@layz6243 7 ай бұрын
How do i replace the rotary encoder with my proprietary buttons?
@gabelogan6869
@gabelogan6869 2 жыл бұрын
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 жыл бұрын
It depends on the joystick - do you have a particular one in mind
@gabelogan6869
@gabelogan6869 2 жыл бұрын
@@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.
@BoeAllen
@BoeAllen 10 ай бұрын
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.
@josephjensen8436
@josephjensen8436 2 жыл бұрын
Next do a laser tag!!
@robertolszowka4107
@robertolszowka4107 Жыл бұрын
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 ?
@StaticStorm17
@StaticStorm17 2 жыл бұрын
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 жыл бұрын
Yes - just add .replace(‘.py’,’’) to the file name string
@nick-qw2zh
@nick-qw2zh 3 ай бұрын
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
@gamerzarena9808
@gamerzarena9808 Жыл бұрын
is there a possibility to run files in files by your program
@kylejohnson5446
@kylejohnson5446 2 жыл бұрын
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.
@MrDrake333
@MrDrake333 10 ай бұрын
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 ?
@JonneTerlouw
@JonneTerlouw 14 күн бұрын
After duplicating the project, I found out that my rotary encoder was not working. tried a lot of things, nothing worked. with other coed encoder was working, even with OLED display. After a decent search I found a thread where some people looked into this code. What helped me with this code is replacing all " is " with " == ". Now everything is working fine.
@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?
@alejandroS5050
@alejandroS5050 4 ай бұрын
Where is the code? 😭😭 can you upload the code again? please 🙌🙌
@kevinmcaleer28
@kevinmcaleer28 4 ай бұрын
Done - github.com/kevinmcaleer/rotarydisplay
2 ай бұрын
Display is ok. show the menue. Rotary is nothing function. Not right, not left, not button. sorry, wat can i du my english is not so good.
@JonneTerlouw
@JonneTerlouw 23 күн бұрын
same here, display shows the .py programs as a menu, but rotary encoder does not work. I have one where I need to connect + and gnd, then I have CLK, DI and SW.
@JonneTerlouw
@JonneTerlouw 14 күн бұрын
after a decent search, I found the problem with this provided code. please replace all "is" for "==". this solved my problem.
@Новости-з3й
@Новости-з3й 2 жыл бұрын
Can you stop this awful music? It is really painfull and useless!
Potentiometers and Pico with MicroPython
5:02
Kevin McAleer
Рет қаралды 8 М.
Micropython Threads - Use Both Cores, on Raspberry Pi Pico and ESP32
44:21
Почему Катар богатый? #shorts
0:45
Послезавтра
Рет қаралды 2 МЛН
Jaidarman TOP / Жоғары лига-2023 / Жекпе-жек 1-ТУР / 1-топ
1:30:54
УЛИЧНЫЕ МУЗЫКАНТЫ В СОЧИ 🤘🏻
0:33
РОК ЗАВОД
Рет қаралды 7 МЛН
Raspberry Pi Pico Rain Gauge
17:11
ExplainingComputers
Рет қаралды 41 М.
10 Raspberry Pi Pico project ideas to get you started
1:07:32
Kevin McAleer
Рет қаралды 8 М.
Raspberry Pi Pico: Inputs & Servo Control
17:20
ExplainingComputers
Рет қаралды 135 М.
Pi Pico W with the Arduino IDE | Using WiFi
49:26
DroneBot Workshop
Рет қаралды 160 М.
Using PICO Interrupts
25:15
Making Stuff with Chris DeHut
Рет қаралды 20 М.
Transform an old broken Keyboard to a Macro Keyboard
8:11
NerdCave
Рет қаралды 62 М.
Hacking my garage door with the Raspberry Pi Pico W
11:50
Jeff Geerling
Рет қаралды 345 М.
Почему Катар богатый? #shorts
0:45
Послезавтра
Рет қаралды 2 МЛН