The ADXL345 accelerometer is an SPI device in the LabWired part catalog. Its catalog type is adxl345_spi. It connects to the MCU over SPI. The catalog gives a supply range of 2–3.6 V. It has 6 pins. A registered peripheral model runs in the engine: the firmware talks to it over the real bus and gets device-accurate responses.
| Category | SPI devices |
|---|---|
| Catalog type | adxl345_spi |
| Interface | SPI |
| Supply range | 2–3.6 V |
| Pins | 6 |
| Datasheet | Analog Devices ADXL345 datasheet |
Simulated device model
Built from the datasheet. Implemented from the part’s register documentation and exercised by automated tests. Nothing physical was ever placed next to it.
| Pin | Electrical type | Function |
|---|---|---|
VCC | Power input | Supply |
GND | Power input | Supply |
CS | Input | SPI chip select (CS) |
SCK | Input | SPI clock (SCK) |
SDI | Input | SPI data out of the MCU (MOSI) |
SDO | Output | SPI data into the MCU (MISO) |
Modelled from Analog Devices ADXL345 datasheet.