What is digital twin? – Part 2
Now lets understand when you should use Digital twin:
- You should use it when you have large number of digital twin to manage
- When there is complexity in relationship
- It would be best if you can existing model instead of creating new once
- You can benefit if it has flexible schema
Couple of things which popularized digital twin in recent days:
- Cheap IOT devices
- Increased number of IOT devices in use
- Affordable internet/connectivity
- Boost in Cloud platforms
If you want to implement Digital Twin, you need to make sure your projects have below characteristics:
- Ability to establish some sort of connection between 2 devices
- Can and should require queries to be executed based on device parameters
- Secure integration
Lets try to build a Digital twin of a Building to understand what is temperature of each room.
In Azure Digital Twin, we have 4 types of interfaces or classes
- Component – Temperature and humidity
- Relationship – Building has floor and then floor has rooms
- Telemetry – Input data
- Properties – State of entity
You can download the json from MS link below:
Building : https://raw.githubusercontent.com/Azure-Samples/digital-twins-explorer/main/client/examples/Building.json
Floor : https://raw.githubusercontent.com/Azure-Samples/digital-twins-explorer/main/client/examples/Floor.json
Room : https://raw.githubusercontent.com/Azure-Samples/digital-twins-explorer/main/client/examples/Room.json
Make sure you use DTDL validator while creating these Json files
https://learn.microsoft.com/en-us/samples/azure-samples/dtdl-validator/dtdl-validator/
Using this json we have multiple ways to create our scenario’s but we will use below xlsx file which has specified data to start with. You can download the excel for building scenario’s from below path:
https://github.com/Azure-Samples/digital-twins-explorer/raw/main/client/examples/buildingScenario.xlsx
Microsoft understands it will take a lot of efforts for one to create these models and relationships, so to ease the process Microsoft has published a few models such as space, event, document, building, etc so you can reuse them as your start point
https://github.com/WillowInc/opendigitaltwins-building
Here is basic strcture of Azure Digital Twin
Main challenges with ADT are:
- Modelling is difficult and time consuming
- Delay in processing data realtime
- Inter operability between different types of IOT devices and services
- Hard and expensive for existing systems
- Privacy and confidentiality