Using OLED Display with CASP
This example project demonstrates how to measure speed of a motor and display on a SSD1360 (I2C) based OLED display module with CASP.
Target
Arduino Uno is used for this project. However, any supported micro-controller can be used.
Description
An infra red proximity sensor is connected to pin-2 of the target board. A SSD1360 based OLED display is connected to the board via I2C interface as shown in the circuit diagram. A model is developed to measure the number of counts the motor shaft rotates and correspondingly the speed in RPM and display on OLED display. Please note that interrupt is enabled on pin-2 by default for better timing. However, user may disable the interrupt and enter suitable value in the ‘Debounce Time’ parameter in the ‘pulse counter’ block if the sensor signal is noisy. Please go through the individual block parameters used in the model along with respective documentation for better understanding.
Circuit Diagram
Model
References
Please go through our video tutorials, tutorial projects and CASP main documentation for getting started with CASP.