Wearable Devkit Tutorial: Build Your Own Device
Our goal is to enable everyone to build the Wearable Devkit we show on here, and therefore we opened all the information necessary to build such a device. This page contains the necessary information to create your own device. It allows to build an identical device, or use it as an inspiration to create something new!
Information to 3D Print the Case and Build the PCB
The file to 3D print the housing and the gerber files to make your own PCB can be found on our github page here.
The files needed to 3D print the housing are located in the “case” subdirectory. Please note that the materials used for 3D printing can contaminate the sensors. If in doubt, feel free to contact us.
The gerber files to produce the PCB can be found in the “pcb” folder. The gerber files represent a panel with 6 single PCBs. Along the gerber files, you can find the schematic and a bill of material (BOM). For most manufacturers, this information should be sufficient to recreate the PCB as used in our Wearable Devkit.
Installing the Arduino IDE
For programming the system it is necessary to install the USB drivers for the board. Also an integrated development environment (IDE) is recommended for coding and compiling. For this purpose the Arduino IDE is used and referred to in the following examples. It brings all the drivers, compilers and ohter tools necessary together. You can download it from the Arduino website.
Install Board Specific Files for the Sensirion Board
The installation of the IDE only covered the basic system. Because the PCB which is used for the Development Kit has a different microcontroller and another pinmapping, an additional step of software installation is needed.
1. Go to "File" and select "Preferences"
3. Close the preferences dialog
4. From the "Tools" menu, follow the "Board" menu item and select the "BoardsManager"
5. The Board Manager will open, and it will take a few minutes to get the latest update of the different repositories
6. Look for the package "SensirionArduinoZero by Sensirion AG", select it and install it
7. The board manager gets now the board definitions and tools for the new device. This could take some minutes. After the installation the board manager can be closed
8. In the "Tools" menu, select the "Board" menu item and select "SensirionArduinoZero" from the submenu as board of your choice
9. Connect the device to your computer and select the corresponding serial port
10. The initial setup has finished, and you can program the wearable demonstrator
Flashing the Arduino Bootloader (Only Necessary Once)
To initially burn the Arduino bootloader to the device, you'll need a JTAG programmer like the Atmel-ICE, or a similar product. Follow these steps to program the bootloader
- Connect the programmer to the connector ST2 (see schematic for a pin layout)
- In the Arduino IDE in “Tools” go to “Programmer” and select Atmel-ICE (or your alternative programmer of choice)
- Also in “Tools” select “Burn Bootloader”
After that, your device is equipped with a bootloader, and you can program the device via the Arduino IDE through USB.
Installing the Firmware
For the firmware, there's three different options:
1. Use a precompiled firmware image
2. Open Source Firmware
The “firmware-oss” git repository is an open source firmware which provides basic functionality, and can be adapted for your own projects. After downloading, use the Arduino IDE to compile and upload it to the Wearable Devkit.