"
15
/
Figure 2: The START dashboard lets you configure board components.
(Source: Mouser Electronics)
a kid being at a theme park and
accidentally following the wrong
family around. Watchdog is a
wristband-like device that is worn
by a parent and their child(ren).
Whenever the child and parent go
beyond a specific range from each
other, a vibration motor alarm would
go off, letting them know that they've
gone too far. With Watchdog, my
parents and I would have immediately
known I was trailing off. In this project
article, you'll see how to build Watchdog.
DEVELOPING WATCHDOG
In the following sections, we walk you
through the process of developing
Watchdog.
Configure ATSAMC21N
Xplained Pro
We will need to configure the ATSAMC21N
Xplained Pro, the BMI160 Accelerometer,
and the RN4870 for this project. First, install
the drivers for the ATSAMC21N Xplained Pro:
1. Open Atmel Studio.
2. Plug in the ATSAMC21N Xplained Pro
using the micro USB port.
Atmel Studio will automatically detect the
board. As soon as you see a page pop up
with the board's name and information, we're
ready to start (Figure 1).
Configure Drivers
When you're in an Atmel START project,
on the left there is a section called
DASHBOARD. Click that if it is not already
selected (blue). Here, we can add, remove,
and configure drivers and components for
the ATSAMC21N Xplained Pro to use (Figure
2). After we add a software component
to the project, we can configure it by
selecting it; under the diagram it will list all
the configuration options that component
has. We can get information, rename, or
remove it with the buttons to the left of the
configuration.
With Watchdog, my parents
and I would have immediately
known I was trailing off.
"
"