Team: DAX
Team members: Xinyuan Wu, Danmei Li, Weijie Zhou
Time: 20th Oct – 3rd Nov
This blog is about we try to make the code logic more clear in terms of LED modes.
This diagram indicates how these led mode triggered by the different distance of sensors.
When two sensors don’t find skater or the distance out of range, use the default led mode “noSkater”. The different LED modes are based on the distances.
This diagram indicates the range of different distance.
The flow chart below indicates how we trigger the 5 types of LED modes based on the different distance of skaters as well as the different direction.
light mode
We choose the half number of LED pixels in a random position, which would always turn on when the sensors haven’t detected skaters.
closeSkater light mode
Whole led pixels in one pillar would turn on one by one in the same direction of the skater.
farSkater light mode
All Led would turn on, then turn off in the same direction of the skater