11. Case 10: The Sitting Posture Reminder#

11.1. Introduction#


  • Prolonged incorrect sitting posture will not only affect the beauty of the body, but also cause the spine and pelvis to be tilted, and even cause health risks such as cervical spondylosis, lumbar spondylosis and pelvic inflammatory disease. Thus, we can make a sitting posture reminder.

11.2. Function#


  • Detect the micro:bit status from the accelerometer on the micro:bit, and then monitor the sitting posture.

11.4. Picture#


../../_images/microbit-Smart-Health-Kit-case-01-02.png

11.5. Software Programming#


11.6. Program#


Judge if micro:bit is in “logo up”, if yes, program to display a smile face.

../../_images/microbit-Smart-Health-Kit-case-10-07.png

If the micro:bit displays a sad face, program to start melody for reminding.

../../_images/microbit-Smart-Health-Kit-case-10-08.png

Link: https://makecode.microbit.org/_Mws2cyWm6RFg

11.7. Result#


  • If the sitting posture is incorrect, the micro:bit would play a melody for reminding.