Apply low pass filter on ADXL345

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
nayan_agg
 
Posts: 40
Joined: Fri May 19, 2017 2:49 am

Apply low pass filter on ADXL345

Post by nayan_agg »

Hi,
kindly help me in applying the digital bandpass filter (range 0.3Hz to 10 Hz) on ADXL345 accelerometer real-time readings.

User avatar
sj_remington
 
Posts: 994
Joined: Mon Jul 27, 2020 4:51 pm

Re: Apply low pass filter on ADXL345

Post by sj_remington »

You can set the ADXL345 BW_RATE device register (0x2C) to 0b1000, for 25 Hz data rate (bandwidth 12.5 Hz).

For more information, be sure to consult the ADXL345 data sheet.

User avatar
CircuitFlyer
 
Posts: 21
Joined: Thu Sep 17, 2020 11:01 pm

Re: Apply low pass filter on ADXL345

Post by CircuitFlyer »

If the micro-controller board you are using includes the built in module ulab then I'd suggest reading https://learn.adafruit.com/ulab-crunch- ... cuitpython. The Filter Example: Measuring barometric pressure is likely very similar to what you require. I found it very helpful when I needed to apply a low pass filter to an accelerometer output. I use https://fiiir.com/ to determine the filter coefficients required.

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”