Want to program your microcontrollers in Python and connect them to WolkAbout IoT Platform?
If your answer is yes, Zerynth will provide you with a suite of development tools which supports Python or hybrid C/Python firmware development for 32-bit microcontrollers and the most popular prototyping and industrial boards (Flip&Click, ESP32, ESP8266, Arduino DUE, ST Nucleo, Particle Photon and Electron, and more). By using Zerynth, you can connect them to the top Cloud infrastructures, among which is WolkAbout IoT Platform.
In a step-by-step tutorial published on Hackster, you can explore Python code development within the Zerynth Studio using a Flip&Click by MikroElektronika (based on the microcontroller SAM3X by Microchip) connected to WolkAbout IoT Platform. When finished with this tutorial, you will be able to publish data on WolkAbout IoT Platform, visualise the sensors’ data and control a LED using a sample code provided.
The following steps are:
- Step 1: Download Zerynth Studio and use it to virtualise your microcontroller device. We used the default Zerynth enabled board Flip&Click SAM3X and a Wifi 4 Click to enable WiFi connectivity. Note: If you have previously downloaded Zerynth Studio, remember to re-virtualise all boards with the new virtual machines.
- Step 2: Next, browse the examples tab in Zerynth Studio and look for WolkAbout folder. From it clone the “Controlled publish period” example. This example contains everything necessary to publish data from your device to WolkAbout IoT Platform.
- Step 3: Define a device template and create a device on the free instance of WolkAbout IoT Platform that will represent the data you wish to publish to the cloud and actuations you want to receive on your device.
- Step 4: Modify your code to make use of your sensors and actuators while also adding your device key and password. Then uplink(flash) the code to your device.
This is it. In just a few minutes you’ve used MQTT to connect securely to WolkAbout IoT Platform using Python code uploaded with Zerynth to the Flip&Click SAM3X. Now it is time to deploy your own application with Zerynth, Flip&Click SAM3X and WolkAbout IoT Platform. :)