Stream data using Photon at each 10milisecond and upload to cloud

In this project, I was able to stream 200 12-bit XYZ samples per second from an ADXL362 accelerometer attached to a Photon with no difficulties. Like ScruffR said, you have to be careful with the accelerometer and driver. I wrote a custom SPI DMA driver that uses the ADXL362 queuing feature so it puts almost no load on the Photon and the samples are precisely timed, regardless of what the Photon is doing.

2 Likes