-
Notifications
You must be signed in to change notification settings - Fork 0
Vibrations
rmarabini edited this page Apr 12, 2020
·
13 revisions
ADXL355Z mounted in an evaluation board as https://www.analog.com/media/en/technical-documentation/user-guides/EVAL-ADXL354-355-UG-1030.pdf
| ADXL355 Pin Number | ADXL Pin description | GPIO Pin |
|---|---|---|
| P1 | ||
| P1-1 | Digital Power | 17 |
| P1-3 | Digital Ground | 1 |
| P1-5 | Digital Ground | 9 |
| P2 | ||
| P2-2 | Chip Select | 24 |
| P2-4 | Serial Clock (SCLK) | 23 |
| P2-5 | Master In Slave Out (MISO) | 21 |
| P2-6 | Master Out Slave In (MOSI) | 19 |
stby 3 to gnd
See figure A3.1 (https://upcommons.upc.edu/bitstream/handle/2117/121564/memoria.pdf)
https://github.com/gpvidal/adxl355-python
https://github.com/nuclearfutureslab/adxl355-pi
In order to use SPI on Raspberry Pi, the interface must be enabled. On the raspberry console:
$ raspi-config
teste on line http://onlinetonegenerator.com/
- record data for a minute with frec= 50
- perform 1D fourier transform
- see plot
cd temp_sensor/rpiWebServer/adxl355-pi
Single measurement: demo-connection.py
Loop (each second): demo-connection_loop.py Loop at a certain rate: record.py