- Read an ADXL345 accelerometer using I2C libraries generated by MPLAB Code Configurator. Axis output is on a 7-segment display driven by a MAX7219 and on the UART.
- SW0 is used to cycle single axe visualizazion on display
- Board is configured for working at 3.3V
- Accelerometer is powered Is mandatory from VTG pin (3.3V)
- MAX7219 is powered from VBUS pin. If you want to use only UART, simply do not connect anytighing to MAX7219 ports
- UART configured at 9600-N-8-1
- system clock: 32MHz
Function | PIC16F15376 Curiosity Nano pin |
---|---|
SCL | RC3 |
SDA | RC4 |
MAX7219 data | RC0 |
MAX7219 clock | RC1 |
MAX7219 latch | RC2 |
I2C libraries generated by MCC explained. Article is in italian language but there is an automatic translation plugin that will translate the page in your language without your intervention.