Implementing Blynk Project

After setting up your Arduino IDE, go to this link, copy the code and paste it into the IDE. Now in lines 3,4,5 we need to replace <template>, <Device name> and <Auth token> with your respective credentials.

#define BLYNK_TEMPLATE_ID           "<Template>"
#define BLYNK_DEVICE_NAME           "<Device name>"
#define BLYNK_AUTH_TOKEN            "<Auth Token>"

These details can be found under Device Info tab of the device. There in the firmware configuration the credentials are found.

Now we need to export the Compiled Binary for this program. Go to Sketch and select Export Compiled Binary. This should save a hex file at the location you have saved this sketch. Now go back to IoTIFY Virtual Lab and open the new instance we had created for this project. Our workspace will now open. Upload the sketch_name.ino.standard.hex file by clicking on the Arduino and navigating to where the sketch was stored. Now we just need to reset the Arduino and the program will be loaded.

The Arduino will now connect to the Blynk server and start sending the sensor data. We can see the output of the device Dashboard. As we change the sensor values, it will also update the graphs on the Dashboard in real-time. Also using the switch in the dashboard LED 4 in Arduino can also be controlled.

We have successfully completed this project. Now you know how to use the Arduino Uno with the W5500 to connect to Blynk and publish the real-time sensor data.

Last updated