A diagnostic device developed for US Digital that provides real-time visualization and testing capabilities for various types of encoders. This tool supports multiple encoder interfaces including QEI (Quadrature), Analog, and PWM, making it an essential troubleshooting instrument.
- Multiple encoder interface support:
- Quadrature Encoder Interface (QEI)
- Analog voltage reading
- PWM signal processing (10-bit and 12-bit)
- Real-time position display
- Index signal detection
- Moving average filtering for stable readings
- Interactive mode selection
- Reset functionality
- SSD1306 OLED display interface
- Arduino-compatible microcontroller
- SSD1306 OLED Display (128x32 pixels)
- Pin Connections:
- MOSI: Pin 11
- CLK: Pin 12
- DC: Pin 9
- CS: Pin 10
- RESET: Pin 8
- Button 1: Pin 2
- Button 2: Pin 3
- Encoder A: Pin 4
- Encoder B: Pin 5
- Index: Pin 6
- PWM Input: Pin 7
- Analog Input: A0
- SPI Library
- Wire Library
- Adafruit_GFX Library
- Adafruit_SSD1306 Library
- Bounce2 Library
- Encoder Library
- Displays quadrature encoder position
- Supports index signal reset
- Real-time position updates
- Voltage measurement (0-5V range)
- Moving average filtering
- 3-decimal precision display
- Supports both 10-bit and 12-bit resolution
- Duty cycle measurement
- Position calculation
- Filtered readings with moving average
- Power on the device
- Use Button 1 to cycle through available modes
- Press Button 2 to select desired mode
- In QEI mode, Button 2 acts as reset
- Display automatically updates with current readings
- Written in Arduino C++
- Modular design for easy maintenance
- Debounced button inputs
- Interrupt-driven index detection
- Real-time signal monitoring
- Noise filtering through averaging
- Visual feedback for all measurements
- Auto-scaling display for different modes
This is a capstone project developed for US Digital. For modifications or improvements, please submit a pull request.
[Insert appropriate license information]
- US Digital for project sponsorship
- Adafruit for display and sensor libraries