BLYNK YOUR ZIO

by Alex_chu in Circuits > Wireless

637 Views, 1 Favorites, 0 Comments

BLYNK YOUR ZIO

Blynk Zio QG-489x489.png

Blynk is a Platform with iOS and Android apps to control IoT compatible hardware and modules over the Internet. It's a digital dashboard where you can build a graphic interface for your project by simply dragging and dropping widgets. It's really simple to set everything up and you'll start tinkering in less than 5 mins.

This guide will show you how to set up Zio’s IoT development board - Zuino XS PsyFi32 to work with Blynk so you can create an IoT device and an App to go with it too!

This tutorial is also being posted on our website blog. Check out the post here .

Configuration

Helpful Resources:

You should have a basic understanding of how to install Zio development boards. In this tutorial, we assume that your development board is already configured and is ready to be set up with Blynk. If you haven’t configured your board yet check out our development boards Qwiic Start Guide tutorial first:

Hardware:

Software:

Download Blynk App to Your Phone

You need to download the Blynk app for this project.

Download according to your mobile phone’s operating system

Install Blynk Library

Blynk library download.png
arduino-folder.jpg
blynk folders archive.png
blynk libraries folders.png
Blynk library download.png
blynk tools folders.png

You need to manually install the library to your Arduino folder.

Download the latest release .zip file.

Unzip it. You will notice that the archive contains several folders and several libraries.

Copy all these libraries to your_sketchbook_folder of Arduino IDE.

To find the location of your_sketchbook_folder, go to top menu in Arduino IDE:

File -> Preferences (if you are using Mac OS - go to Arduino → Preferences)

The structure of your your_sketchbook_folder should now look like this, along with your other sketches (if you have them):

your_sketchbook_folder/libraries/Blynk
your_sketchbook_folder/libraries/BlynkESP8266_Lib...

your_sketchbook_folder/tools/BlynkUpdater
your_sketchbook_folder/tools/BlynkUsbScript...

Note that libraries should go to libraries and tools to tools. If you don't have tools folder you can create it by yourself.

Set Your Blynk App

Blynk_Zio-01.jpg

Open the Blynk App and create a new project. Name your project and select the board as ESP32 Dev Board with connection type WIFI.

Once you created your project you will receive an Auth token.

Click on the Widget Box

Blynk_Zio-03.jpg

Click on the widget box and add a LCD to your project.

Select Advanced Mode and Set the Pin to V1.

Blynk_Zio-04.jpg

Run your app by clicking the arrow button.

Download Our Hello Zio Blynk Code

Download the Blynk Hello Zio code here.

Open the code and make changes to the following section:

//Set your Auth Token here<br>// You should get Auth Token in the Blynk App.// Go to the Project Settings (nut icon).#define SET_AUTH_TOKEN "put your auth token here";
// Your WiFi credentials.// Set password to "" for open networks.#define SET_SSID "put your wifi name here";#define SET_PASS "put your wifi password here";

Flash Your Code

Blynk_Zio-05.jpg

Flash your code in the Arduino IDE to your Zuino XS PsyFi32 board and check your Blynk app. Your Project app should show the above display

​And That’s It!

Congratulations! You now have created an IoT device!

We have created a template for you to easily connect your Zio PsyFi32 development board and other Zio modules (or non-Zio modules) to send data to your Blynk app. You can get them here.

You will be able to connect your board with your Blynk app and display data collected from your device to your app.

You only need to change the Auth token, add your WiFi settings and insert your own code in the loop section and you are good to go!

In the meantime check out our other awesome and cool Zio projects to give you that qwiic inspiration!

Below is the full code for your Arduino.