sparkfun DEV-17272 Hook-Up Manual page 24

Micromod asset tracker carrier board
Table of Contents

Advertisement

#include "AssetTrackerPins.h" // Include the Asset Tracker pin and port definitions
#define SERIAL_PORT Serial // This is the console serial port - change this if required
#include <SparkFun_u-blox_SARA-R5_Arduino_Library.h> //Click here to get the library: http://lib
rarymanager/All#SparkFun_u-blox_SARA-R5_Arduino_Library
// Create a SARA_R5 object to use throughout the sketch. Pass it the power pin number.
SARA_R5 assetTracker(SARA_PWR);
void setup()
{
initializeAssetTrackerPins(); // Initialize the pins and ports (defined in AssetTrackerPins.in
o)
}
void loop()
{
digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN)); // Flash the STAT LED at 0.5Hz (Read-Inv
ert-Write)
delay(1000);
}
All Example1 does is blink the STAT LED on the Processor Board. That's all it does. Yes, really. But it proves that
you have the correct Processor Board selected and that code compilation and upload works. The good stuff
comes in the following examples.
Example 2: IMU
Example2 demonstrates how to get readings from the ICM-20948 Inertial Measurement Unit on the Asset Tracker.
Open AssetTracker_Example2_IMU.ino and upload to the Processor Board. Now open the Serial Monitor or a
terminal emulator and connect to the Processor Board at 115200 Baud. If all is well, you should see the following:
Click Send or hit Enter and you should then see the following, followed by lots of lovely IMU data scrolling up the
screen:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DEV-17272 and is the answer not in the manual?

Questions and answers

Table of Contents