Does your project require high-precision, cutting-edge distance, speed, motion, and/or gesture sensing? We’re not talking ultrasonic, or even infrared here, but 60GHz radar! Say hello to our tiny, pulsed radar friend the Acconeer A111!
The A111 is a single-chip solution for pulsed coherent radar (PCR) – it comes complete with antennae and an SPI interface capable of speeds of up to 50MHz. Applications for PCR include distance-sensing, gesture, motion, and speed detection. The sensor can monitor one-or-more objects at distances of up to two meters.
Our breakout board for the A111 includes a 1.8V regulator, voltage-level translation, and it breaks out all pins of the pulsed radar sensor to both 0.1-inch and Raspberry Pi-friendly headers.
To use the A111 you’ll need either an ARMv7 or an ARM Cortex-M4 – the closed-source SDK currently only supports these architectures. This tutorial will explain how to use the radar sensor with a Raspberry Pi – a platform based on an architecture supported by the A111’s SDK.
The A111 Breakout includes a 20-pin, 2×10 female header, which should mate to Raspberry Pi’s of any generation. If you’d rather manually wire the A111 to your Raspberry Pi, male headers and about 9 male-to-female wires should do the trick.
Setup the Hardware
Raspbian and SPI
This tutorial assumes you’ve already set up a Raspberry Pi with Raspbian. For help installing the Debian-based OS on your Pi, check out the docs on Raspberrypi.org. Or — better yet! — check out our Headless Raspberry Pi Setup tutorial.
You’ll also need to enable SPI on your Pi. For help with that, check out our SPI on Pi tutorial.
The A111 Pulsed Radar Breakout is designed to sit directly on top of a Raspberry Pi. It doesn’t span all 40 (2×20) pins of a Raspberry Pi B+ (or later), but the 26-pin – 2×13 – header should be compatible with any Pi.
Solder the 2×13 header so the female side is facing away from the greenish-black A111 IC. Then connect the shield to a Raspberry Pi ensuring that the “Pi Display” text on the breakout matches up with the display header on your Pi. The sensor should be facing up after plugging it in.
A111 Breakout plugged into a Raspberry Pi.
Or, if you’d like to manually wire the breakout up to a Pi, here is the pin-out we’ll use through the rest of this tutorial:
|Breakout Pin||Raspberry Pi Pin Name||RasPi Pin Number|
|GND||GND||6, 14, 20, etc.|
⚡ Input Voltage and Logic Levels: This board breaks out both “VIN” and “VCCIO” pins. “VIN” should power the sensor, which can consume up to about 80mA. “VCCIO” sets the I/O voltage, which may be lower than VIN.
The Raspberry Pi pin breakouts, for example, connect VIN to 5V and VCCIO to 3.3V, as the Raspberry Pi’s 3.3V bus may not be able to fully power the A111, but the Pi can only handle 3.3V I/O.
Enable SPI on your Raspberry Pi
Get the SDK
The software development kit (SDK) for the A111 is, unfortunately, locked behind a closed source blob that currently only supports Cortex-M4 and ARMv7 platforms. To download the SDK, visit Acconeer’s “Products” page.
Towards the bottom, under the “A1 Software Development Kit” header is a link to GET SOFTWARE**. Read through the license, agree, and then request the A1 SDK for Linux ARMv7 software.
Requesting the ARMv7 SDK from Acconeer.
After supplying your email address, you should receive a download link email nearly instantaneously.
SCP the SDK to Your Pi
Once downloaded, you’ll probably need to transfer the ZIP’ed SDK over to your Pi. To achieve this, we recommend SCP. If you’re on Windows, WinSCP works very well for transferring files from one device to another.
Using WinSCP to drag-and-drop the SDK into the home directory of your Pi.
If you’re on a Mac or Linux machine, with SCP available, you can use a command like the below to copy the ZIP file over:
scp acconeer_evk_service_linux_armv7l_xc111_r4a_xr111-3_r1c_a111_r2c_v1_3_5.zip 192.168.0.100:~
Unzip the SDK
Once uploaded, you can use the terminal to unzip the SDK using the following commands (included are commands to install unzip):
unzip acconeer_evk_service_linux_armv7l_xc111_r4a_xr111-3_r1c_a111_r2c_v1_3_5.zip -d a111
Then cd to the “a111/evk_service/…” directory to prepare to build the example software.
The A111 SDK includes source code, archived libraries, include files, and documentation for using the A111 pulsed radar sensor. Here’s a quick overview of what’s included with the SDK:
- doc – Doxygen-generated documentation for the A111 API and source code.
- include – Header and API files which describe how to interact with the pre-compiled A111 libraries.
- lib – Pre-compiled A111 static archives. API for these files are provided in the “include” directory.
- out – Compiled board and example object and executable files.
- rule – Recursive Makefile rules for board and example files.
- source – C source files for custom boards and example applications.
- makefile – Top-level makefile. Recursively calls files in the “rule” directory to build example and board files.
Adding Custom Example and Board Files
The SparkFun A111 Breakout’s default pins will not work with those of the SDK’s examples. To build and run an example with this board, we have an example board definition, make scripts, and example applications. Click the button below to download these files from the GitHub repo:
If you copy this ZIP file to your home directory, this command will unzip it to the right directory (assuming your SDK was unzipped to: “~/a111/evk_service_linux_armv7l_xc111_r4a_xr111-3_r1c_a111_r2c”.
unzip sparkx-a111-source.zip -d a111/evk_service_linux_armv7l_xc111_r4a_xr111-3_r1c_a111_r2c
The SparkX ZIP includes these files, which should be extracted to their matching SDK directories:
- rule/makefile_build_sparkx_detector_distance.inc – Build rules/Makefile for the sparkx_detector_distance.c source file.
- rule/makefile_build_example\_\*\_sparkx – Build rules/Makefile for the sparkx-breakout example files.
- source/acc_board_rpi_sparkx.c – Board definitions – pin connections, clock frequency, etc, for the SparkX A111 Breakout.
- source/sparkx_detector_distance.c – Modified distance detector source file.
Once downloaded, these files should be extracted to the like spot in the original ZIP file.
Example of SparkX example files added to the “rule” directory. (Don’t forget the “source” directory files too!
Build and Run the Test Sketch
Building the Board and Example Applications
Once uploaded to your Pi, executing the make file – and it’s recursive dependencies – should build all of the examples you may use with the A111. To build all board and example files, navigate to the SDK’s top-level directory and type make
Read More Info…..