ICP 2 - Gnkhakimova/CS5590-IoT GitHub Wiki
ICP 2 - Heartbeat monitor
Introduction
Heartbeat monitor is used when someone is sick, increasing age, down feelings and if unusual things happening in body. It can help to be monitored 24/7 and for example call for help if needed or if person is unable to call emergency on his own. Heartbeat monitors are very common in hospitals and they are being used more and more outside of hospitals as well.
Objectives
The purpose of this ICP was to create heartbeat monitor which will display heartbeat on LCD, transfer data to the cloud - ThingSpeak and depending on heartbeat rate LED lights will blink with different colors.
Approaches/Methods
Part 1
Designed circuit to display heartbeat monitor on LCD device - connected Arduino UNO to the circuit and also connected LCD monitor with three LED lights. Uploaded code to Arduino and was able to see BMP rate change on LCD monitor.
Arduino
Circuit
LCD Monitor
Part 2
Connected to the cloud ThinkSpeak and uploaded data to cloud which gets displayed in chart also information is displayed on Android phone.
Part 3
Added LED lights to change color by rate. If above 100 RED ON, if below 80 BLUE ON, if between 100 and 80 GREEN ON.
Red > 100 BMP
Green - Between 100 BMP and 80 BMP
Blue < 80 BMP
Bonus
Partially completed buttons for turning off, on and resetting LCD. Future plan is to complete Bonus part and also add more functionalities, for example send message to family member if heartbeat rate goes above 180 BMP using Twilio API.
Workflow
- Design circuit by connecting Arduino, circuit, LCD monitor, buttons and LED lights
- Upload code - compiled and uploaded code to Arduino.
- Display heartbeat rate on LCD - by reading it form heartbeat monitor and passing values to LCD monitor.
- Transfer data to cloud - pass heartbeat rate to Thingspeak charts.
- Display chart on Android device - also displays charts on Android phone.
- Make LEDs blink depending on rate - three different colors will light up depending on BMP rate.
- Connect buttons to turn on, off and reset LCD.
Circuit diagram
Parameters
- Defined ThinkSpeak cloud API
- Defined Inputs and Outputs
- Defined output text for LCD
- Defined logic for LED blinks
- Defined input buttons logic for turning on, off and resetting LCD.
Evaluation & Discussion
Discussed different approaches and methods which can be used to complete ICP. Also thinking to add more features such as sending messages to family members using Twilio API or calling emergency if BMP > 200. the most challenging part was to configure buttons to turn on, off and reset device.
Conclusion
Successfully completed ICP however tasks were little bit challenging, had to learn a lot of new techniques and approaches. Will need to improve our work in a feature by adding more interesting and unique features to our device.