Exercise 25 - WefaaRobotics/Smorphi GitHub Wiki

Items needed:

  • Computer
  • A USB to USB-C cable
  • Internet connection
  • Wefaa Smorphi Masterboard

Objectives of exercise:

  1. Learn about how to use Blynk and Smorphi Masterboard together
  2. Learn how to get data Blynk wirelessly
  3. Learn how to control with Blynk wirelessly

Steps Description
1 First, please download the Blynk app. from here

After downloading, do create an account for Blynk

2 After creating an account, you will see some icons in the bottom left corner. To connect the master board to Blynk, press on the circle icon and then click on ‘Quickstart’



3 First, choose the hardware you would be using(in this case, esp32). Secondly, After establishing wifi connectivity, click on Arduino.
Follow this video to understand initial setup better.

Blynk video tutorial

4 Now, go to Arduino. Press on Tools and click on Manage Libraries.


Search for Blynk and install the latest version.


5 Now, you can go back to Blynk and enter your Wifi Credentials into Blynk.

After that, you can copy the base code and paste it into the Arduino. Then, upload the code. Once it is uploaded, the device will be connected and you can see the uptime in Blynk.


6 [Learning to create Datastreams]

Go to Blynk, and click on Templates. Thereafter, select your Quickstart Template.

Then, select ‘Datastreams’ and click on edit

Now select ‘New datastream’.


(For button/switch datastream)
Change Data Type to Integer. For the pin number, you can assign any number you want, but for this exercise we use V2 or V3.


(For Gauge datastream)
Change the Datastream as per instructions in the picture below.


Follow this video to understand the above steps better.
Blynk datastream setup tutorial

7 [Editing Dashboard]


Go to WebDashboard and drag and drop the gauge and button/switch widgets.

Click on settings, then choose the ‘Datastream’ that was created in the above steps.


8 [Activity]

For this exercise, you need to make use of the temperature sensor and the master board led. Your task now is to make Blynk show the temperature and once it is above a certain threshold temperature, the led can be toggled on.

Other than this, think of other scenarios where a temperature sensor will be important and how the master board could react to different temperatures.

For this exercise, the following pins are used on the masterboard.

Led pin = 2
Button pin = 10

Make sure the arduino "Tools" settings are as as follows:
* Make sure the flash frequency is in 40MHz
* CPU Frequency is in 240MHz
* The flash mode in “QOUT”
* Flash Size is in 4MB
* Partition Scheme is in Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)



Once you are done, you can compare your solutions here

⚠️ **GitHub.com Fallback** ⚠️