Skip to content

graycj42/Citrus-Hack-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Citrus-Hack-Project

Project for Citrus Hack Authors: Christopher Gray, Tommy Grounds, Connor Claborn, Iheanyi Kalu-Okere

Project Description

Our group has chosen to build a automatic pill dispensing device to assist users in taking their medication on time. This deice utilizes a servo to automatically open the container so the user can retrieve their medication at a given time set by an rtc module. A passive buzzer chimes to verbally notify the user. An IR receiver is fitted within the device to manually open and close the device to allow the restocking of medication.

Design Diagram

IMG_0605

This is the state machine diagram showing the state and transition logic for the hardware portion of the project. The device starts in the idle state, with the servo at the empty container, and every cycle, with a period of 1 second, it checks if the current time obtained from the RTC is equal to any scheduled times and if it is, it switches to the time triggered state which sets the servo to the correct position depending on the day of the week also obtained to the RTC. The state immediately switches to the buzz state which plays and manages the alarm buzzer, incrementing a music counter everytime it loops back to itself to play the next correct note. Finally, the alarm stops when the stop button is pressed and transitions back to the idle state where the servo is set to the empty slot once more, waiting for the next alarm time.

IMG_0608

The is the state machine defining the menuing for the soon-to-be implemented touchscreen. Starting from a password menu, a correct password changes the state into the control menu state. From this state, administrative user can set up the alarm time, calibrate the clock, and set a new password. A global timer counting the time since the last touchscreen input changes the state machine back to the idle state if more than 5 seconds have been counted.

About

Project for Citrus Hack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages