How to use ROTARYIO from Circuitpython in Micropython ESP32?

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
Disneytoy
Posts: 4
Joined: Tue Jul 14, 2020 7:07 pm

How to use ROTARYIO from Circuitpython in Micropython ESP32?

Post by Disneytoy » Wed Sep 02, 2020 11:53 pm

Hello!

Sorry this is a newbee question. I have an OSRAM Rotary encoder I would like to use with my ESP32. In my searching I found Circuitpython included "ROTARIO" which is supposed to be pretty easy to use.

I have several ESP32 Wroom to play with. I'd put on Circuitpython but I read it is not supported on the ESP32.

I found ROTARYIO from Circuit Python here:

https://github.com/adafruit/circuitpyth ... s/rotaryio

But I'm not really sure how to use it, if I can even use it.

I have been using MU and uPuCraft, and Arduino IDE

My end goal is to display the encoder potion on an OLED, and also have a web server display the position so I can read the data via my phone.

But first, I need to get the rotary encoder to work.

I'm also exploring just going back to a Nano+OLED+Encoder because there is more documentation.

So, any advice would be appreciated.

1) Can I flash Circuit Python on the ESP32 WROOM?

2) How can I use ROTORYIO in Micropython? (would I have to recompile the firmware?

3) Any other option to read the Rotary Encoder.

Thanks

Max

Just to be clear, not those little encoders, an Incremental Rotary
encoder.jpg
encoder.jpg (9.2 KiB) Viewed 2377 times
Encode like this, 600 and 1200 pulses per rev.

shaoziyang
Posts: 363
Joined: Sun Apr 17, 2016 1:55 pm

Re: How to use ROTARYIO from Circuitpython in Micropython ESP32?

Post by shaoziyang » Thu Sep 03, 2020 12:50 am

MicroPython doesn't support ROTARYIO, but encoder is easy to use in micropython.

Post Reply