Secure AVR® BLE IoT Node: Setup Tutorial
Objective
This is a very basic step-by-step tutorial that demonstrates how you can download and compile the example Secure AVR® BLE IoT Node project. This example project allows you to connect your node to your Android® or iOS® device.
Reference Materials
Procedure
Download the Secure AVR Mobile App
To find the compatible mobile application, navigate to your smartphone’s app store and search for: Secured AVR BLE IoT Node.
Download the Secure AVR Example
Navigate to http://start.atmel.com/
In the search bar, type Secure Avr and you should see the Secure AVR BLE IoT Node example. Download this example.
Connect Your Device
In this tutorial, we are using an Atmel-ICE. This device is used to program your Secure IoT Node via the UDPI protocol. The ICE needs to be connected via USB to your computer. Additionally, the IoT node will be powered via USB from the computer as well. If all is well with the power for your targeted device, the LED on the left-hand side will be a solid green.
Setup Atmel Microchip and Program
Navigate back to your internet browser and click on the downloaded file. Microchip Studio should automatically open an “Import Atmel Start Project” prompt. Click OK to continue.
Program Your Device
First, you will need to tell Microchip Studio what type of device you have and the interface you will be using. Navigate to the Solution Explorer on the right-hand side. Right-click on your project folder. Click on Properties at the bottom. This should open up a new window. Under Tool, set the debugger to your connected Atmel-ICE and ensure that your interface is set to UPDI. Press CTRL+S to save these settings.
Now click the start without debugging button in the center of the toolbar.
You should see a success or failure message in the terminal at the bottom of the screen when compilation is complete. If compiling and programming the device is successful, then you can now close Microchip Studio.
Connect To Your Phone
Open the Secured AVR BLE IoT Node on your smart device. You should see a device in the opening screen along with a button to connect to that device. After the connection is established, you will be taken to the first screen which shows how close your smart device is to your IoT Node.
Swipe to the left to monitor the temperature of your current location.
Swipe to the left again and hit the Start button. You willl now be able to see the accelerometer readings from you IoT node.
Results
You will now have a secure connection between your smart device and your IoT node. Through the app, you will be able to monitor temperature, acceleration, and proximity to your IoT node in real time.
Conclusions
This example project is a great template for connecting your own devices. Turning your project and future projects into connected devices will be a lot easier with the Secure AVR BLE IoT Node.