Hello,
can I use a adafruit ADXL375 - High G Accelerometer (+-200g) with SPI and mircosd write on a OLIMEXINO-STM32F3 and witch port must I use, 3 ore 4 wire SPI?
[CS, SDO, SDA and SCL]
https://github.com/OLIMEX/OLIMEXINO-STM32F3/blob/master/HARDWARE/OLIMEXINO-STM32F3-revision-D/OLIMEXINO-STM32F3_Rev_D.pdf
Goal is, use the raw x, y and z acce with 100Hz sample, internal ADXL375 ADXL375_DATA_RATE_200. 24g are not enough in a drum. If SPI not possible, then must I use I2C.
Greeting Markus
SPI should be possible why not. You should use 4-wire SPI. If using the UEXT connector:
ADXL375 pin UEXT pin OLIMEXINO-STM32F3 signal
----------------------------------------------------
VIN 1 +3.3V
GND 2 GND
SDO 7 SPI1 MISO, D12 / PA6
SDA 8 SPI1 MOSI, D11 / PA7
SCL 9 SPI1 SCK, D13 / PA5
CS 10 GPIO chip select, D4 / PB5
The onboard microSD uses SPI2 separately.
So the recommended setup is ADXL375 on UEXT/SPI1 and microSD on SPI2. Of course, some software effort will be needed.
Hello,
many thanks for the information an the listing of ports/pins!
Greeting Markus