# Interfacing an ADXL1002 analog accelerometer with an analog input from SWAN board

**URL:** <https://discuss.blues.com/t/interfacing-an-adxl1002-analog-accelerometer-with-an-analog-input-from-swan-board/2042>\
**Category:** Hardware\
**Created:** [March 23, 2024, 4:35pm UTC](https://discuss.blues.com/t/interfacing-an-adxl1002-analog-accelerometer-with-an-analog-input-from-swan-board/2042 "2024-03-23T16:35:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![iarakis](https://avatars.discourse-cdn.com/v4/letter/i/7c8e57/32.png) [@iarakis](https://discuss.blues.com/u/iarakis)\
**Post date:** [March 23, 2024, 4:35pm UTC](https://discuss.blues.com/t/interfacing-an-adxl1002-analog-accelerometer-with-an-analog-input-from-swan-board/2042/1 "2024-03-23T16:35:15Z")

</div>

Hi,

I need to interface an ADXL1002 analog accelerometer with an analog input from SWAN board. Then I need to sample the analog value at least at 6KHz. What is your recommendation on how to do it?

> **[ADXL1001-1002.pdf](https://www.analog.com/media/en/technical-documentation/data-sheets/ADXL1001-1002.pdf)**

> **[EVAL-ADXL100X Evaluation Board | Analog Devices](https://www.analog.com/en/resources/evaluation-hardware-and-software/evaluation-boards-kits/eval-adxl100x.html)**
>
> The EVAL-ADXL1001Z and EVAL-ADXL1002Z are simple evaluation boards that allow users to quickly evaluate the performance of the ADXL1001 and ADXL1002 vibration sensors. The EVAL-ADXL1001Z and EVAL-ADXL1002Z are specifically designed to mount onto a...

---

<div class="post-metadata">

**Author:** ![dcaudillo](https://avatars.discourse-cdn.com/v4/letter/d/e68b1a/32.png) [@dcaudillo](https://discuss.blues.com/u/dcaudillo)\
**Post date:** [March 27, 2024, 12:31am UTC](https://discuss.blues.com/t/interfacing-an-adxl1002-analog-accelerometer-with-an-analog-input-from-swan-board/2042/2 "2024-03-27T00:31:31Z")

</div>

Hi @iarakis, thank you for reaching out. That’s a great question. The ADC will indeed need to be configured to sample at the appropriate rate. To assist you further, could you please specify which programming language or framework you intend to use? (Arduino, MicroPython, STM32 Cube Programmer, etc.)

---

<div class="post-metadata">

**Author:** ![ujur007](https://avatars.discourse-cdn.com/v4/letter/u/e9bcb4/32.png) [@ujur007](https://discuss.blues.com/u/ujur007)\
**Post date:** [April 4, 2024, 10:47am UTC](https://discuss.blues.com/t/interfacing-an-adxl1002-analog-accelerometer-with-an-analog-input-from-swan-board/2042/3 "2024-04-04T10:47:09Z")

</div>

Sorry to jump directly in this discussions but I have a related question.  
I have notecarrier-AF (I know it is old) and I want to use the analog pins to read the sensor values.

Could anyone point to API requests for reading this analog pins?

---

<div class="post-metadata">

**Author:** ![iarakis](https://avatars.discourse-cdn.com/v4/letter/i/7c8e57/32.png) [@iarakis](https://discuss.blues.com/u/iarakis)\
**Post date:** [April 5, 2024, 9:54am UTC](https://discuss.blues.com/t/interfacing-an-adxl1002-analog-accelerometer-with-an-analog-input-from-swan-board/2042/4 "2024-04-05T09:54:33Z")

</div>

Sorry for late reply, Arduino.
