You are on page 1of 2

Individual in-Lab Assessment

Topic 2: Internet-of-Things – the Things

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

Project: SMART BARRIER

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:

1. Use LED pallete to get your virtual LED.

Pallate name: node-red-contrib-ui-led


more info https://flows.nodered.org/node/node-red-contrib-ui-led

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

You might also like