Get data from the ST LIS2DH12 3-axis accelerometer

Hi, everyone

I do not know if it is possible to get the data from accelerometer from the SparkFun Edge Development Board - Apollo3 Blue?

Since I do not find anything described the accelerometer.

Check out this tutorial:

https://learn.sparkfun.com/tutorials/us … pollo3-sdk

Specifically Example1 Edge Test

https://learn.sparkfun.com/tutorials/us … plications

You may either follow the tutorial and use the AmbiqSuite SDK or you could use the example code from the SparkFun Edge BSP (https://github.com/sparkfun/SparkFun_Edge_BSP) example1_edge_test/tf_accelerometer and make it work in Arduino.

Hi, I followed the tutorial https://learn.sparkfun.com/tutorials/us … plications, and when I used make bootload there appears the errors:

sudo make bootload

…/…/…/…/…/tools/apollo3_scripts/create_cust_image_blob.py --bin bin/example1_edge_test.bin --load-address 0xC000 --magic-num 0xCB -o bin/main_nonsecure_ota --version 0x0

/bin/bash: …/…/…/…/…/tools/apollo3_scripts/create_cust_image_blob.py: Permission denied

make: *** [Makefile:193: wired_update] Error 126

And I have renamed /tools/apollo3_scripts/keys_info0.py to /tools/apollo3_scripts/keys_info.py.

and change the permissions on bsp/tools/uart_wired_update_sparkfun.py to 755.

The driver has changed since the board works well with the voice recognized tutorial.

I used Ubuntu 16.04 and AmbiqSuite-Rel2.0.0. And I also want to know that the serial port on Ubuntu is using ls /dev/tty* or ls /dev/cu*.

Thank you

Sorry you’re having trouble with the SDK. We are currently focusing most support on the Arduino core. In that spirit I created an example sketch and attached it as a .zip.

Use the SparkFun Apollo3 Arduino core and select “SparkFun Edge” as the board.

You can follow this tutorial to install the Arduino core:

https://learn.sparkfun.com/tutorials/ar … th-arduino

When did you get your Edge board? Is it from the TensorFlow Dev summit or from the preorder by SparkFun? There are discrepancies between the bootloaders on the two boards that might give you trouble. I am working on a fix for the Arduino core that will come out soon

Edge_Accelerometer_Arduino.zip (16.2 KB)

I just released v1.0.2 of the Apollo3 Arduino Core - this allows you to easily select the baud rate for upload to the Edge board.

See attached screen capture showing where to make the selection.