Uncategorized

ADXL345 old rpi forum posts

votes
1answer
I’m trying to access an ADXL345 Accelerometer mounted on a Sparkfun breakoutboard via Python and I2C from a Raspberry B+. I’m following this tutorial However when trying to check for the sensor … to connect there). So my question is: how can make the ADXL345 deliver information at address 53 permanently? …
asked Mar 13 ’15 by Andreas Gohr
1

vote
2answers
My project is using two TMP102’s, one BMP180, and one ADXL345, all on I2C (there are a few other items, but not on I2C). I’m having no issues with anything but the ADXL345. Even when it’s the only … , but there’s still an IO error from the code I have two of these that I’ve swapped out and tried, and have even tried with a Pololu ADXL345 breakout, all with the same issue, so I don’t think that …
asked Jan 14 ’16 by DeltaG
3

votes
0answers
I have a Kistler type 8921 which produces 1g (10m/s2) RMS (at 159 Hz). The ADXL345/Raspberry Pi 3 setup should produce similar g’s, but currently doesn’t. As can be seen, it is not just about a … ADXL345 shown be computed in g’s as follows: Gx=x*(Grange/(2^bitsresolution)); See the attached Matlab MWE. The linked data sheet: https://www.dropbox.com/s/gath8jtrfi58i2r/10bit16g.csv?dl=0
asked Dec 12 ’18 by Stefan
1

vote
1answer
I have an ADXL345 Accelerometer attached via SPI pins to my Raspberry Pi. I use the following Python script to collect data: #!/usr/bin/python # -*- coding: utf-8 -*- import sys, math, os, spidev … ] # Initialize the ADXL345 def initadxl345(): # Enter power saving state spi.xfer2([45, 0]) # Set data rate (accrate = 15 -> 3200 Hz, 14=1600 Hz, 13=800 Hz, 12=400 Hz etc.) spi.xfer2([44 …
asked Apr 10 ’18 by user75374
2

votes
1answer
I’ve two identical GY-291 / ADXL345 sensors. To read the data I use the python-module (https://pypi.org/project/adxl345/). i2cdetect detects the sensors at address x53 correctly. Unfortunately, data … chips and it reads 345B **** **** PHIL. So, I guess it should be an Analog Devices ADXL345. Q Any ideas to get the sensors on track? Edit Say for sensor A: z-axis aligned vertically, static x …
asked May 2 by participant
2

votes
1answer
I would like to connect this Imu to the Raspberry Pi via I2C. I am looking for a C/C++ or Python code to use the data provided by this imu. It integrates the ADXL345 accelerometer, HMC5883L …
asked Jan 26 ’16 by UserK
0

votes
1answer
I am usig a RPi as a datalogger for an accelerometer, the ADXL345 breakout from Sparkfun. Since I need the accelerometer to sample at an exact frequency of 200Hz, I am using a signal to trigger the … using a try-except routine so that the the program would just miss some samples and then recover. My code is as follows: import signal from adxl345 import ADXL345 import time import …
asked May 25 ’15 by user3668294
2

votes
1answer
I’m using the ADXL345 accelerometer with i2c. I’ve connected one to my PI and get good data. I use 3.3V, SDA, SDL and Ground. My project needs two ADXL345 units. So I hooked up a second. Both … come off the same 4 pins on the PI (Pins 1,3,5,9). Of course, this “works” but the data are mixed up, I cab’t read each ADXL345 independently. The default address is 0x53 when SDO is low (https …
asked Oct 5 ’15 by Special Agent Jel
0

votes
1answer
()) IOError: [Errno 2] No such file or directory error was there as I was calling other support files (adxl345.py, hmc5883l.py bmp085.py, l3g4200d.py , i2cutils.py and imu.py etc..) to gy80.py. can anyone explain how to correct this? …
asked Oct 8 ’16 by user54685
2

votes
I would connect SDO to ground. This ensures the ADXL345‘s I2C address is 0x53. If you connect SDO to 3V3 the address will be 0x54. It may float between the two if not explicitly set to ground or … 3V3. I would connect CS to 3V3. This ensures the ADXL345 is in I2C mode. If it is ever low the ADXL345 will enter SPI mode. Other than that I am out of ideas apart from try my Python ADXL345 script …
answered May 4 by joan
0

votes
If you are using I2C you must ensure the ADXL345 modules have different addresses on the bus. Does your module provide a way of setting the address? The documentation for the module you are using … should say. The underlying ADXL345 chip has provision to set two different addresses although this capability is not necessarily brought out on all modules. If you used SPI instead you would use a different GPIO connected to the CS signal to select the ADXL345 module. …
answered Jan 30 ’17 by joan
0

votes
://www.analog.com/media/en/technical-documentation/data-sheets/ADXL356-357.pdf (2) ADXL345 3-Axis, Digital Accelerometer Data Sheet – Analog Devices https://www.analog.com/media/en/technical-documentation … /data-sheets/ADXL345.pdf (3) Adafruit 9-DOF accelerometer/magnetometer/gyroscope sensor Forum Discussion Adafruit 9-DOF or other accelerometer/magnetometer/gyroscope sensor for Raspberry PI 2/3 with …
answered Aug 30 by tlfong01
2

votes
There are hundreds of links available by googling. Google for the sensor + raspberry + language (where sensor is one of ADXL345, HMC5883L, ITG3205, or BMP085). …
answered Jan 27 ’16 by joan
1

vote
I don’t have a MPU6050 so I can’t really test this. However I suggest you look at this ADXL345 example and try similar code to read registers X, Y, Z as a block. import sys if sys.version > ‘3 …
answered Dec 15 ’18 by joan
1

vote
I’d try a sensor such as the ADXL345 which has an I2C/SPI interface and so may be read by the Pi. You may be able to read the raw data from your MacBook. See http://www.suitable.com/tools/seismac.html
answered May 20 ’15 by joan
3

votes
There is no need to use a third party library to access I2C. Just search for Linux I2C to find code examples. Here is a Pi example of mine to read an ADXL345 accelerometer via I2C. Note, this code defaults to bus 0. …
answered Jul 15 ’15 by joan
0

votes
To get a similar Adafruit ADXL345 working on a Pi Zero, do the following: sudo nano /etc/modules add the lines: i2c-bcm2708 i2c-dev save and exit. Also, sudo raspi-config and enable I2C …
answered Apr 9 ’18 by David H.
2

votes
pin to make SDO high, use a GPIO pin in output mode, and put a resistor (1k-10kOhm) on the connection between the GPIO pin and the SDO pin on the ADXL345. What is likely happening is that by … this (3.3V over 1kOhm = 3mA). You could try to do option 2 as well by connecting to 3.3V with the same resistor, but by using a GPIO pin you have more control. Actually, you should give both ADXL345‘s …
answered Oct 5 ’15 by Phil B.
1

vote
accelerometer may I suggest the ADXL345 available here. There is also instructions on the same page for setting it up. I’m not sure what you mean by “How can I accommodate between the difference in …
answered Apr 13 ’16 by Darth Vader
1

vote
will not work, and almost certainly damage the ADXL345 chips. Instead, you should power your accelerometers from the 3.3V pin, and you need to connect both VDD and VS pins of each chip to 3.3V line. As …
answered Jan 30 ’17 by Dmitry Grigoryev
2

votes
reading an ADXL345 with and without the combined flag. pigs i2cz 0 2 4 0x53 7 1 0x32 6 6 3 0 This is a multiple segment transaction on handle 0 (pigs i2cz 0). 2 – sets the combined flag 4 0x53 – sets … the I2C address (ADXL345) 7 1 0x32 – writes 1 byte (0x32) 6 6 – reads six bytes 3 – clears the combined flag 0 – end command In contrast if I bit bang I2C I can use repeated starts without …
answered May 20 ’15 by joan
2

votes
pan-tilt head is moved by a pair of servos. The head holds a sonar ranger and an ADXL345 3-axis accelerometer. The servos control pins are connected directly to Pi gpios. The sensors communicate …
answered Mar 11 by joan
1

vote
Setting a sample rate of 3200 samples per second is a setting for the ADXL345. Transferring 3200 samples per second, which is presumably what you want to do, is not quite so simple. There will be …
answered Apr 10 ’18 by joan
1

vote
start humbly, either 6-DOF MPU6050 (gyro + accelero), or the simplest 3-DOF ADXL345 (accelero), both are very cheap, popular, and recommended by SparkFuan and AdaFruit. Long Answer … Axis Accelerometer and Gyro Breakout – MPU-6050 $29.95 VR IMU Breakout – BNO080 (Qwiic) $34.95 SparkFun IMU Breakout – MPU-9250 $14.95 6-DOF IMU – ITG3200/ADXL345 6-DOF IMU …
answered Apr 17 by tlfong01
.END

Categories: Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s