秋月電子通商で購入できる「LED付ロータリーエンコーダー(赤)ツマミ付セット」をESP32で、1msec間隔でポーリングして、AとBの値を監視して、グラフにしてみる実験。 理想では、「右回り (CW): 00 → 10 → 11 → 01 → 00」、「左回り (CCW): 00 → 01 → 11 → 10 → 00 ...
“I looked at all the available rotary encoder sketches and none of them met my needs, so I have written my own, and here it is”. Well, I looked at all the ...
const int encoderPinsA[NUM_ENCODERS] = { 10, 8, 6, 4, 2 }; // Encoder A pins; any PCINT pin const int encoderPinsB[NUM_ENCODERS] = { 11, 9, 7, 5, 3 }; // Encoder B pins; arbitrary - pick any IO #ifdef ...
We always think it is interesting that a regular DC motor and a generator are about the same thing. Sure, each is optimized for its purpose, but inefficiencies aside, you can use electricity to rotate ...
lv_obj_set_flex_flow(parent, LV_FLEX_FLOW_COLUMN); lv_obj_set_flex_align(parent, LV_FLEX_ALIGN_START, LV_FLEX_ALIGN_CENTER, LV_FLEX_ALIGN_CENTER); lv_obj_t * obj; obj ...
The Arduino development board has grown in popularity over the last few years and has spawned a myriad of interesting projects such as auto-lacing shoes, The EyeWriter 2.0, and the Mobile Dance Stage.