Рет қаралды 27,713
Another simple weekend project ...
Parts:
- Arduino Pro Mini
- I2C OLED display
- A3144 Hall effect sensor
- Neodymium magnet for spinner
Features:
- 4 values are displayed: rotation counter, RPM, max RPM and time of rotation
- results are kept on the display until new rotation starts
- interrupt is used for accurate measurement (pin 2, interrupt 0)
- my own old OLED lib is used with companion of fast software I2C library
- any pins can be used for SDA and SCL
- however regular hardware I2C can be used too, just set "USEHW 1"
Source code:
github.com/cbm80amiga/ssd1306...