Issue link: https://resources.mouser.com/i/1442841
21 / debugger, and a mechanism for transferring binary program images to a microcontroller. The AVR-IoT WG board is programmable using several different IDEs, including two that are available from Microchip Technology. For this project, we'll use the free Atmel Studio 7 IDE that runs on Windows. It supports the full range of Microchip Technology AVR ® and SAM microcontrollers and is available through the Microchip Technology Atmel Studio 7 web page. Atmel Studio 7 supports the Nano Embedded Debugger (nEDBG) interface built into the AVR-IoT WG board. The debugging interface allows compiled programs to be downloaded and executed with debugging support for breakpoints and memory inspection. Atmel START Atmel START is a free tool available by Microchip Technology on the Atmel START web page. It consists of example projects and libraries you can browse and select to generate your own source code projects. The purpose of this tool is to quickly create new projects containing necessary functions and libraries to connect the AVR-IoT WG board to the Google Cloud IoT through the internet. The libraries interact with the ATECC608A cryptographic coprocessor, the Wi-Fi module, and the onboard sensors and LEDs. They also implement communication and security protocols including Transport Layer Security (TLS), Message Queue Telemetry Transport (MQTT), and JavaScript Object Notation [JSON] Web Tokens (JWT), which Google Cloud employs. Google Cloud Platform and Google IoT Core Google Cloud Platform is a collection of computing services and tools that run in Google data centers located throughout the world. The platform provides a large set of services that can be useful building-blocks to create a variety of applications using a pay-as-you-go billing model. Cloud services include computing, storage, database management, networking, monitoring, containerization, mapping, data analytics, pub/sub, machine learning, and IoT. We'll use Google's Cloud IoT Core service to integrate our board with the Google Cloud. Wi-Fi Access Point The AVR-IoT WG board contains a built-in Wi-Fi module that connects to the internet through a Wi-Fi access point supporting 802.11 b/g/n standards. The access point must supply a DHCP Internet Protocol (IP) address to the Wi-Fi module and allow outgoing internet traffic without blocks by a proxy or firewall. gcloud The gcloud command-line interface is a tool for interacting with Google Cloud from the command line of a PC. The tool is available as part of the Google Cloud SDK. We'll use gcloud to display real-time data the Google Cloud IoT receives. Figure 3: Solution Explorer appears after importing the Atmel START Project. (Source: Mouser Electronics) THE SETUP (SOFTWARE) Download the Project Click AVR IoT WG Sensor Node, and then click Download Selected Example. The download file is named AVR IoT WG Sensor Node.atzip, and the .atzip extension means it's an Atmel Studio project file. Double-click the downloaded AVR IoT WG Sensor Node.atzip file to open it in Atmel Studio. You'll see a project import window (Figure 2) with default names and directory locations filled in. Click OK to complete the import. If you get a warning message about necessary device updates, it may be because there are Device Pack updates you haven't installed yet. After the project is imported, it will appear in the Solution Explorer pane (Figure 3). Verify Building the Project Code Try building the project "as is" by using the Build Build Solution menu command. The project should build without any errors. Note that the current code does generate a few build warnings. We'll come back to the source code later, after we've set up our Google Cloud IoT environment.