13
6. Application scenario
In the use case of detecting the garbage in waste bin, the device should be installed on the top of the waste bin.
After the device is installed and powered, turn on the device and it will detect the distance between the device and the garbage as
well as the percentage of the garbage in the waste bin.
H
means the height of the waste bin (this value can be set with the payload command; the “fillmaxdistance” in payload means H)
D
means the distance between the device and the garbage (this value is “distance” in uplinks)
L
means the garbage (this value can be calculated by the “distance” in uplink and “fillmaxdistance” in payload)
Calculation: L = fillmaxdistacnce - distance
FillLevel means the percentage of the garbage in the waste bin.
FillLevel = ((H - D) / H) * 100%
Illustration 1.