This project demonstrates how to build and connect OKdo E1 powered sensor networks to the cloud using Atmosphere Studio visual editor. We add Wifi connectivity to the E1 using MIKROE’s Wifi7 Click module and sample environmental temperature, humidity and pressure with MIKROE’s Weather Click board, pushing data to the cloud. Because Atmosphere Studio supports all these components, it can be used to build and flash the E1 device firmware and provision IoT devices quickly and easily without the need for programming. This speeds up development and ensures secure and reliable connectivity with cloud services.
This example project builds a sensor network node using MIKROE Click modules which plug together, although some soldering of pin headers is required.
First, prepare the E1 Expansion Board and attach the E1 module. This makes the E1 pin-out compatible with the Arduino Uno form factor:
Now prepare the MIKROE Uno Click Shield with the supplied pin headers. A slight modification to the standard connection is required so the Wifi module can be powered from a separate 3.3V power supply.
The NC, IOREF, RST and VIN pins on the Uno Click Shield are left not connected.
Finally, we built a stable 3.3V power supply on a breadboard using a 3.3V LDO Regulator (STMicroelectronics LD1117V33C) with 100nF ceramic capacitor across Vin and GND and a 10uF electrolytic capacitor across Vout and GND. A protection diode (1N4001) was placed in series with Vin. A bench power supply set to 5V DC supplied the input voltage and the output was connected to the 3.3V pin and GND pin of the Uno Click shield.
In order to flash the Atmosphere firmware to the E1 board and configure the Wifi, the Atmosphere IoT Agent must be installed on the host PC. This bridges between the connectivity protocol drivers and the browser running Atmosphere used to program the device. The agent is available for Windows 10, Mac OS and Linux. We used a Windows 10 host PC:
To use the Atmosphere Studio which is a visual editor for creating projects, you will need a free Atmosphere developer account.
This view shows a representation of how all the hardware elements in the project are connected together. By selecting individual elements, you can view their properties and settings in the panel on the right side of the window.
The example project consists of:
The Weather Click Element is connected between the interval timer and temperature, humidity and pressure device element representing the on-board sensors. The timer is set to uploaded readings every 1.5 seconds.
Clicking the Code Editor icon opens a window displaying the generated C code for the project.
Selecting the Cloud tab shows how the sensor Device Elements are connected to a Cloud Storage Element.
This stores the sensor readings so that they can be retrieved and used in the Dashboard.
E1 is one of the many hardware platforms supported by Atmosphere Studio so the example project has already been set up and configured. The project just needs compiling and flashing with the built-in embedded programmer. This can be accomplished entirely from within the Atmosphere Studio with the help of the Atmosphere IoT Agent previously installed.
The hardware and software build is now complete and the device is ready for provisioning.
Before the E1 can connect and push data to the cloud the Wifi must be configured and the device provisioned. This registers the particular device with Atmosphere and sets up a secure connection.
Once configuration and provisioning is complete, the E1 can be disconnected from the host PC and powered independently. The connection to the network will be made via Wifi.
You should now be able to select the dashboard view in your browser and see your sensor readings, as well as a chart showing how they vary over time. All these elements are configurable in Atmosphere Studio.
Atmosphere also has a mobile app for Android and iOS that allows you to control the RGB Led on the E1 to demonstrate sending signals to the E1 from the Cloud, by clicking the buttons on the display.
In this project, we have shown how to quickly prototype an E1 sensor network and connect it to the Atmosphere cloud using the Atmosphere Studio visual editor.
The Atmosphere platform is extensive in its capabilities and support for IoT deployments and hardware – to understand more visit the Documentation Hub https://docs.atmosphereiot.com/