-
Notifications
You must be signed in to change notification settings - Fork 1
Example 02
This experiment will guide you to build up web based dashboard for visualizing analog input values which are coming from your MagicIoT device.
Part list:
● MagicZERO/MagicONE development board-01
● 20K potentiometer-01
● Breadboard-01
● Jumper cables
● 5V power supply-01
Circuit Diagram:
Flow
-
Go to your Magicblocks.io Playground .
-
Select INJECT node which is in INPUT Nodes of your Palette and drag it into your flow .
-
Select ANALOGIN node in Magicblocks Nodes of your palette and drag it into your flow.
-
Select GAUGE node in Dashboard nodes and drag it to your flow.
-
Connect three nodes.
-
Double click on INJECT node and configure it.
Payload: Select type as String from the drop down menu and keep value as empty. Repeat:Select Interval and set delay as you wish.
- Configure Analog in node
Name: may be any name Device ID: Copy your device id from Device Manager and place it. Pin:0
- Configure Gauge node
Group:click on edit icon, then it redirect to another window and type any word as Name and click on edit button for select a Tab .You can give any name as the Tab name.(if you select previous tab name the gauge widget also will display as a child of the above dashboard which we made for the experiment 01)
Size: auto Type: Gauge Lebel: any name (it will display as the title of the widget)
-
Click on DEPLOY button
-
Navigate to your dashboard and examine how values change according to the rotation of the potentiometer