# Best library for ADXL 362/346 and Photon 2?

**URL:** <https://community.particle.io/t/best-library-for-adxl-362-346-and-photon-2/66207>\
**Category:** Firmware\
**Created:** [January 21, 2024, 11:27pm UTC](https://community.particle.io/t/best-library-for-adxl-362-346-and-photon-2/66207 "2024-01-21T23:27:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mprogers](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/mprogers/32/18458_2.png) [@mprogers](https://community.particle.io/u/mprogers)\
**Post date:** [January 21, 2024, 11:27pm UTC](https://community.particle.io/t/best-library-for-adxl-362-346-and-photon-2/66207/1 "2024-01-21T23:27:57Z")

</div>

Hi, All:

I am trying to get what I believe is an ADXL 362/346 (at least that's what it says on the board) to work with a Photon 2, and just getting 0's for acceleration. I did solder the headers myself, but they _look_ OK. I am using the particle\_ADXL362 library as is -- there's no real documentation, I dunno if it's really designed for the Photon 2 or not. Any suggestions / help would be appreciated!

---

<div class="post-metadata">

**Author:** ![rickkas7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rickkas7/32/8681_2.png) [@rickkas7](https://community.particle.io/u/rickkas7)\
**Post date:** [January 22, 2024, 11:03am UTC](https://community.particle.io/t/best-library-for-adxl-362-346-and-photon-2/66207/2 "2024-01-22T11:03:07Z")

</div>

I've used the [ADXL362DMA](https://github.com/rickkas7/ADXL362DMA) library on the Photon 2 and it worked properly.

---

<div class="post-metadata">

**Author:** ![mprogers](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/mprogers/32/18458_2.png) [@mprogers](https://community.particle.io/u/mprogers)\
**Post date:** [January 22, 2024, 3:19pm UTC](https://community.particle.io/t/best-library-for-adxl-362-346-and-photon-2/66207/3 "2024-01-22T15:19:29Z")

</div>

Whatever they're paying you, it's not enough -- please tell your boss that. 😀

With the ADXL362DMA library, and changing the SS pin from A2 to S3, I'm now getting non-zero numbers, around -105, 50 and 1320. I found [this data sheet](https://www.analog.com/media/en/technical-documentation/data-sheets/adxl362.pdf), and if I'm reading it right the scale factor is 1000 LSB/g, so ... divide by 1000? Meaning that gravity is around 1.32g? That seems a little high, but it's certainly in the ballpark.

Thanks again for your help, I am grateful.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/3/2/3291e3c9351789fe8620ae5bcec8d3fec67ff221.png) [@system](https://community.particle.io/u/system)\
**Post date:** [February 22, 2024, 1:20am UTC](https://community.particle.io/t/best-library-for-adxl-362-346-and-photon-2/66207/4 "2024-02-22T01:20:06Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
