A simple tool that reminds a person to take his/her pills

In this task, we will build a simple tool that reminds a person to take his/her pills on time. The circuitry required for this example is similar to the examples discussed in the previous tasks. We are discussing this example because it is difficult for someone to develop a habit of taking their medication on time. It is critical that people identified with chronic conditions do not miss their prescription schedule.

Prepare for lift off

We extensively discussed interfacing the buzzer to a Raspberry Pi in the previous task. It'll be nice to have an enclosure for the pillbox reminder. An example of a pill reminder is available from instructables at http://www.instructables.com/id/The-Pill-Reminder/. We will only discuss how to trigger the buzzer at a selected time of the day.

Engage thrusters

Let's say a person has to take his/her prescribed pills at 9:30 in the morning; a buzzer can be triggered using the datetime module in Python:

while True:
  t = datetime.datetime.now()
  if t.hour == 9 and t.minute == 30:
    async_task = AsyncTask()
    async_task.add_callback()
    thread = Thread(target=async_task.run, args=())
    thread.start()
    break

Other project ideas

Similar to the examples discussed earlier, it is also possible to set reminders to sync pedometer data, go to the gym, or even record the health parameters discussed earlier in this project.

Objective complete – mini debriefing

In this task, we completed the pillbox reminder set up to help us take our medication on time.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.116.64.221