How To Use A Rotary Encoder With Raspberry Pi Pico

preview_player
Показать описание

In this guide, we'll learn what a *Rotary Encoder* is, when and why we might use a Rotary Encoder, and how to use a Rotary Encoder with a *Raspberry Pi Pico* .

🔧🔨🧰 Hardware featured in this guide:

*Encoder Module with Button:*
*Raspberry Pi Pico:*
*BusBoard breadboard:*
*Jumper Wire:*
*Rotary Encoders:*

0:00 Intro
0:44 When to use a Rotary Encoder?
1:38 How to choose a Rotary Encoder?
2:31 Connecting a Rotary Encoder to a Raspberry Pi Pico
4:36 Download the micropython-rotary library
5:02 Example - Reading values from a Rotary Encoder
7:12 Remix - Reset the Rotary Encoder using the built-in push button
9:29 Conclusion

🌏🦘 *Core Electronics* is located in the heart of Newcastle, Australia. We're powered by makers, for makers. Drop by if you are looking for:

The following trademarks are owned by *Core Electronics Pty Ltd:*

"Core Electronics" and the Core Electronics logo
"Makerverse" and the Makerverse logo
"PiicoDev" and the PiicoDev logo
"GlowBit" and the GlowBit logo
Рекомендации по теме
Комментарии
Автор

Damn, the cable managment is insane. Perfect even

ltus
Автор

Frankly an excellent and complete tutorial. Good on 'ya mate!

daviddrake
Автор

Can i add a display to that rasberry pi or do i need to use an other rasberry pi

clipsmadebynquila
Автор

Can the Encoder Module with button be used on Pi 3 or 4?

muhammadawaisqarni
Автор

Hi mine is not doing anything at all. Nothing is being printed. It is not a module so i did change it to have the pull_up.

jelleotter
Автор

thank you so much for the video...i am completely new to all this but managed to get it to work!!...thank you. One question, if i want to wire up 5 encoders, do i simply use 5 example codes for each encoder or is there another way that is easier? If its the 5 different files, do i save them all and maybe name each one encoder_1, encoder_2 etc? Thank you so much and im honestly sorry for the potentiallystupid qstion.

hubertnovak
Автор

Hi, Thank you for the information an this Rotary encoder library for the Pico with Thonny. But I do have a question; does this library use interrupts in the background? This was a stumbling point for my efforts in using a rotary encoder without using constant IO polling (very inefficient) Bye

duncanmarks