OLIMEXINO-STM32F3 and ADXL375 with SPI and micro sd write

Started by mgolbs, July 07, 2026, 10:13:37 AM

Previous topic - Next topic

mgolbs

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
,,Wichtig ist nicht die Menge des Wissens, sondern die Güte. Man kann sehr viel wissen, dabei aber nicht einmal das Nötigste."
Leo Tolstoi

LubOlimex

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.
Technical support and documentation manager at Olimex

mgolbs

Hello,
many thanks for the information an the listing of ports/pins!

Greeting Markus

,,Wichtig ist nicht die Menge des Wissens, sondern die Güte. Man kann sehr viel wissen, dabei aber nicht einmal das Nötigste."
Leo Tolstoi