The following are some questions related to this project along with some suggested code challenges. The idea is to provoke thought, test your understanding, and get you coding!

While the sketches provided in this guide work, there is room for improvement and additional features. Have fun playing with the provided code to see what you can do with it.

Questions

  • What are good values for SLOUCH_ANGLE and SLOUCH_TIME?
  • Will the alarm sound if the wearer leans back too far?
  • In the v3 code, what prevents slouchStartTime from constantly being reset?

Code Challenges

  • Use NeoPixels instead of the speaker to create a silent alarm.
  • Use the slide switch to choose between silent or audible alarm.

This guide was first published on Dec 21, 2016. It was last updated on Dec 21, 2016.

This page (Questions and Code Challenges) was last updated on Dec 15, 2016.

Text editor powered by tinymce.