Available only for PRO users
Heatmap Chart is a two-dimensional visual representation of data, where X-axis is time, and Y-axis is a value visualized with color intensity.
An example of use could be a chart of temperature change depicted in color, but it can also be used to visualize on/off or mode states.
It's possible to plot up to 5 datastreams in one widget. Only INT, DOUBLE, and ENUM datastreams are supported.
When using ENUM type, colors will be taken from Datastream settings, for others you can set your own color mapping.
How data will be aggregated:
- AVG will plot average value per minute;
- Raw will plot using all the data available (PRO plan only)
- MIN will plot the minimum value per minute;
- MAX will plot the maximum value per minute;
Set the color scale to color the incoming values.
When using ENUM datastream, colors will be taken from datastream settings, for others you can set your own colors.
To send data to the chart, use standard command:
vPinis a number, and
valueis the actual value you want to send.
// Declaring a global variable to for sensor data
// This function creates the timer object. It's part of Blynk library
// Writing sensor value to datastream V5
//Connecting to Blynk Cloud
Blynk.begin(auth, ssid, pass);
// Setting interval to send data to Blynk Cloud to 1000ms.
// It means that data will be sent every second
// Reading sensor from hardware analog pin A0
sensorVal = analogRead(0);
// Runs all Blynk stuff
// runs BlynkTimer
You can also use HTTPs API to send data. Check the articles below: