Hi,
I have problem with setting up SPI communication with ADXL345 on my Pine H64 model B.
Steps I performed:
- Installed Armbian image and set up. (Clean setup, printer MCU is already flashed with klipper)
- Upgraded installed packages.
- Enabled spidev1 through armbian-config (this option made /dev/spidev1.0 exposed).
- Added user to group tty (no GPIO enabled yet).
- Installed klipper through kiauch (based on Python 2.7).
- Followed RPi microcontroller documentation (copied script, updated rc.d, made configuration for linux process and flashed).
- Installed packages following Measuring Resonance documentation.
I've added to printer configuration file lines below:
[mcu rpi]
serial: /tmp/klipper_host_mcu
[adxl345]
spi_bus: spidev1.0
cs_pin: rpi:None
Right now it seems like SPI works improperly.
If i follow wiring accelerometer as in manual in result i get error message
Invalid adxl345 id (got 0 vs e5).
if disconnected i get error message
Invalid adxl345 id (got ff vs e5).
I am guessing that SPI on GPIO pins are SPI1 according to that port assigment
If Armbian is configured with other SPI configuration it does not produce any other usable results.
Does anyone have any idea what might be wrong in my configuration?
I am grateful for any solution to my problem.