element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
At The Core Design Challenge
  • Challenges & Projects
  • Design Challenges
  • At The Core Design Challenge
  • More
  • Cancel
At The Core Design Challenge
Blog Neonatal Incubator Monitoring System - Dashboard #4
  • Blog
  • Forum
  • Documents
  • Leaderboard
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join At The Core Design Challenge to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: rahulkhanna
  • Date Created: 4 May 2023 8:11 PM Date Created
  • Views 421 views
  • Likes 2 likes
  • Comments 0 comments
  • infineon
  • PSoCTm︎ 62 MCU
  • element14
  • PSoC 62S4 pioneer kit
  • modustoolbox
  • dual-core
  • challenge
  • More At The Core Design Challenge
Related
Recommended

Neonatal Incubator Monitoring System - Dashboard #4

rahulkhanna
rahulkhanna
4 May 2023
Neonatal Incubator Monitoring System - Dashboard #4

Welcome to blog 4 of Neonatal Incubator Monitoring System. In this tutorial, we will learn how to display serial data on a Blynk dashboard using the ESP32. We'll be using the Blynk IoT platform, which allows us to create custom dashboards and sends alerts to the doctor/caretaker from anywhere in the world.

image

Set up the ESP32

Connect the ESP32 to your computer using a USB cable and open the Arduino IDE. Install the ESP32 board package by going to "Tools" -> "Board" -> "Boards Manager" and searching for "esp32". Install the package and select the "ESP32 Dev Module" board from the "Tools" -> "Board" menu.

Next, we need to install the Blynk library. Go to "Sketch" -> "Include Library" -> "Manage Libraries" and search for "Blynk". Install the Blynk library and add it to your sketch by going to "Sketch" -> "Include Library" -> "Blynk".

image

#include <WiFi.h>
#include <BlynkSimpleEsp32.h>

char auth[] = "your_auth_token"; // Replace with your Blynk auth token
char ssid[] = "your_wifi_ssid"; // Replace with your WiFi SSID
char password[] = "your_wifi_password"; // Replace with your WiFi password

void setup() {
  Serial.begin(9600); // Set the baud rate to 9600
  Blynk.begin(auth, ssid, password); // Connect to Blynk server
}

void loop() {
  if (Serial.available() > 0) { // If there's serial data available
    String data = Serial.readStringUntil('\n'); // Read the data
    Blynk.virtualWrite(V1, data); // Send the data to the Blynk dashboard
  }
  Blynk.run(); // Run the Blynk event loop
}
   
image

Update SSID, password, Device ID, and Auth Token in the sketch and upload it to the ESP32 Dev board. The ESP32 is now connected to the WiFi router.

Set up the Blynk dashboard

First, we need to create a new project for the Blynk mobile app. Download the Blynk app (App Store, Google Play). Once you're logged in, tap the "Create New Project" button and give your project a name and device type (ESP32 in this case). Choose the "Custom Dashboard" template and create the project. Set the DataStream as shown below

image

Add the elements to the dashboard to make the UI. Now the device is ready to receive the data from PSoc and update it to the Blynk Dashboard. The Ambient Light, Temperature, Heart Rate, SpO2 and finger presence data are sent to the Blynk Console and the devices connected to them.

image  image  

The dashboard is now set up and ready to use. In our next blog, we will focus on integrating all the sensors with the Blynk dashboard. Thank you for reading and stay tuned for more updates.
  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube