Professional Documents
Culture Documents
Objectives:
1. the variables
a. Context
b. flow
c. Global
2. Using the function
3. Use of trigger to create timer
4. Using the inject and debug nodes
You are required to create a Smart Vehicle Barrier system where the barrier gate will open based on
the authorized UTM matric card, which is based on NFC technology.
Instructions:
1. You have to create vehicle barriers (entry and exit). You need to create two (2) node-red
flows, one (1) for the entering barrier and another one (1) for the exiting barrier.
2. Create nodes that emulate at least three (3) UTM matric cards.
(Hint: the smart card will need to be copied for each barrier.)
3. The barrier will record every entry and exit. If a person already enters, the card cannot be
used to enter again until he exits (the barrier for entry won’t open till he exits the exit-
barrier). Vice-versa, if the person does not yet enter, he cannot exit.
(Hint: you have to use global variable, record the info from one flow with another)
4. Use virtual LED from dashboard to emulate the opening and closing of the barrier. GREEN
indicates opening (open for 5 second each time) and RED light to indicate closing.
Additional hints:
2. as the virtual LED running on node-red dashboard, you also need to install the node-red
dashboard pallete,
Pallate name: node-red-dashboard
more info https://flows.nodered.org/node/node-red-dashboard
3. After you successfully installed the dashboard and virtual LED, you can add the LED node
from the list
4. Watch the given videos to start with the node-red virtual LED and dashboard