Тёмный

Rotary Encoders with the Raspberry Pi Pico and MicroPython 

Kevin McAleer
Подписаться 32 тыс.
Просмотров 10 тыс.
50% 1

Rotary Encoders with the Raspberry Pi Pico and MicroPython.
Do you want to use Rotary Encoders with the Raspberry Pi Pico and MicroPython? Then this is the video for you.
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.com/membership
Enjoy this video? Buy me a coffee!
www.buymeacoffee.com/kevinmca...
Music by Epidemic Sounds
www.epidemicsound.com/referra...
Encoder MicroPython Code on GitHub:
www.github.com/kevinmcaleer/p...
#Pico​ #MicroPython​ #Robotics

Развлечения

Опубликовано:

 

6 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 28   
@kevinmcaleer28
@kevinmcaleer28 3 года назад
I'm going to add a rotary encoder, an ssd1306 display and bluetooth to a pico to create a menu screen that can control which program the robot is going to run.
@Anguiano1976
@Anguiano1976 Месяц назад
Thanks for the video, very well explained. It would be nice to talk about the Alps RKJXT1F42001, which is also a rotary + 4 directions pad. Greetings
@VEEBProjects
@VEEBProjects 2 года назад
Excellent stuff. A video on reading a rotary encoder using interrupts would be great
@FengXue1949
@FengXue1949 2 года назад
Hey man! Thank you so much for your video. There are not too many videos about pico I think. Your videos are extremely helpful for a new learner like me! Thanks again! You R the Best!
@zaksept
@zaksept 2 года назад
Very helpful. Searched rotary encoders and this was the first result. Thanks for the great vid.
@kevinmcaleer28
@kevinmcaleer28 2 года назад
Thanks Zach
@variouslifedjak426
@variouslifedjak426 2 года назад
The code in the video worked great. Very good information to get a person new to the rodeo coder up and running.
@allthegearnoidea6752
@allthegearnoidea6752 Год назад
Very good video thanks for the detailed explanation
@ryan1328
@ryan1328 Год назад
This was so helpful! Thank you!
@cfg83
@cfg83 2 года назад
I'm really impressed with the rotary encoder directional demonstration. The direction of rotation was not intuitive to me, but now I can describe it to others and it *makes sense*,
@kevinmcaleer28
@kevinmcaleer28 2 года назад
Awesome, glad you liked it
@AJB2K3
@AJB2K3 3 года назад
button debounce is required because in the old days when you released the button, the contacts would bounce and retrigger a detections.
@SimonParkes
@SimonParkes 2 года назад
Not really as can detect this in the code.. irq(trigger=Pin.IRQ_RISING | Pin.IRQ_FALLING, handler=callback) .. However, long press is not handled and can cause an issue
@oluwatosinjimoh2706
@oluwatosinjimoh2706 2 года назад
This video was super helpful.
@PontusThePilot
@PontusThePilot 3 года назад
Great video as always! Really informative in a way that is easy to understand :)
@kevinmcaleer28
@kevinmcaleer28 3 года назад
Thank you!
@SperlingMark
@SperlingMark Год назад
fantastic tutorial. really helped, thanks!
@kevinmcaleer28
@kevinmcaleer28 Год назад
Thanks Mark!
@Kosro
@Kosro 2 года назад
Great video, really dig the quality of the content :)
@kevinmcaleer28
@kevinmcaleer28 2 года назад
Thanks Robert! Really appreciate the feedback
@Dasol0246
@Dasol0246 2 года назад
Can you do a video on micropython pid controller for positional control? Thanks
@HanD_1964
@HanD_1964 10 месяцев назад
Hi Kevin, Is it possible to detect the button press by using another threat in Python? That seems a much easier way... I think.
@mehdikarimpoor9401
@mehdikarimpoor9401 Год назад
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?
@tiarakusumadewi2337
@tiarakusumadewi2337 Год назад
Hi, Sir. can we use raspberry pi pico to read the incremental rotary encoder? (ex: photoelectric-encoder-E38S6G5-400B-G24N)
@Mirage2020
@Mirage2020 2 года назад
is there a way to make this with C'? :/
@brantwinter
@brantwinter 2 года назад
That's not really the correct definition of debounce
@kevinmcaleer28
@kevinmcaleer28 2 года назад
Hey Brant - what did I say wrong 🥹
@rdan-gx7cg
@rdan-gx7cg 9 месяцев назад
@@kevinmcaleer28 Hello Kevin. Thank you for the video, very clear and instructive. Regarding the remark of Brant: your code is in fact detecting a change of state of the button (this is an edge detector) and does an action when switching from not pushed to pushed. Debouncing is something else. In your case, the goal would be to remove any hardware/mechanical bounces while switching from not pushed to pushed. A classical method is to confirm a stable state by verifying that the state does not change for some time.
Далее
Potentiometers and Pico with MicroPython
5:02
Просмотров 7 тыс.
E003 Using Rotary Encoder Switches on the Raspberry Pi
15:58
Raspberry Pi Pico W: Wireless Weather Station
17:13
Просмотров 284 тыс.
Все ради семьи!❤️
0:55
Просмотров 2,4 млн
Магия вне Хогвартса
0:11
Просмотров 1 млн