|
IoT Microcontroller ExampleBog'liq 2.3 (3)IoT Microcontroller Example
As in the previous two smart-home simulations also a microcontroller example was
added in the smart-campus Cisco Packet Tracer exercise. The simulation replicated the
same IoT sprinkler case while using non smart devices.
SBC module input pins were connected, via dedicated IoT cable, to a non-smart water
sensor. SBC output was then connected to a lawn sprinkler as illustrated in the Figure
50 below.
Figure 50 - Setup of the microcontroller example
As in the IoT version of the simulation, the water sensor detected the water level and fire
up the sprinkler if a value below the threshold was detected.
Difference compared to the IoT case was that logic was defined not in the IoT backend
server but in a custom Blockly program stored in the SBC itself.
The other small difference was that the water sensor utilized returned a number from 0
to 255, this value was then mapped in the SBC program to a range between zero and
twenty centimeters.
Also in this case the rain environmental variables have been manipulated in order to
rainfall through the day.
Logic of the Blockly program running on the SBC is visible in the Appendix 1.
67
Future Expansion of the Simulation
Due to the possibilities opened by exercise complexity, students were encouraged to
widely modify the simulation adding new network and IoT features.
On network level, by design, all the device were able to access to the remote IoT server.
Access restrictions could be apply to make sure that only authorized IPs could connect
to it.
Due to wireless range limitations all IoT device were connected via switch, as this would
be probably not realistically in real applications, students could re-engineer the IoT net-
work setup in order to create a wider WLAN network or a cluster of wired IoT subnetwork.
On IoT prospective, many more simulations could be added in the campus scenario:
electricity generated to power street lights, network of security sensors, evacuation plans
to open all doors and windows etc.
Also microcontroller examples could be integrated in the simulation in order to cover
cases where the WLAN coverage of the IoT network was not sufficient.
|
| |