Rotary Encoder
€4.99 ex. VAT
This breadboard-compatible rotary encoder provides precise position and rotation direction tracking with a simple digital interface. It offers mirrored pins for easy connections and full compatibility with Arduino and Axiometa platforms, making it an excellent choice for control and navigation projects.
SKU: AXM0003
Details
What's inside?
Discussion
Details
Overview
This breadboard-compatible rotary encoder is ideal for tracking position and rotation direction in your projects. With mirrored pins on each side, it ensures easier connections and seamless integration into your setup.
- Integrated button
- Arduino Compatible
- Easy-Interface
- Genesis Matrix Compatible
Documentation
This part is fully open sourced with schematics and 3D files available bellow
AXM0003
Step by step user guide
All Axiometa products come with user guides and setting up instructions
Connection Guide
Here you’ll find connection guide images to help you integrate the sensor with various development platforms.
×
Arduino Example Code
If you haven’t already, check out this tutorial to guide you through setting up the Arduino IDE for uploading and debugging your sketches, as well as installing libraries.
For this part, you will need the following library: RotaryEncoder.h
Code copied!
#include <RotaryEncoder.h>
#define PIN_IN1 9
#define PIN_IN2 8
RotaryEncoder encoder(PIN_IN1, PIN_IN2, RotaryEncoder::LatchMode::TWO03);
void setup() {
Serial.begin(9600);
}
void loop() {
static int pos = 0;
encoder.tick();
int newPos = encoder.getPosition();
if (pos != newPos) {
Serial.print("pos:");
Serial.print(newPos);
Serial.print(" dir:");
Serial.println((int)(encoder.getDirection()));
pos = newPos;
}
}
To see it working open serial monitor
MAC: CMD+Shift+M
Windows: CTRL+Shift+M
Related products
What's inside?
Discussion
Add a review
Rotary Encoder
Rating*
0/5
* Rating is required
Your review
* Review is required
Name
* Name is required
Email
* Email is required
0.0
Based on 0 reviews
5 star | 0% | |
4 star | 0% | |
3 star | 0% | |
2 star | 0% | |
1 star | 0% |
0 of 0 reviews
Sorry, no reviews match your current selections