ICP 2 - TondiToday/CSEE5590-IOT-Robotics GitHub Wiki

Teammate 1: Tonderai Kambarami

Teammate 2: Luis Guillermo Usseglio-Carbajal

Teammate 3: Reed Bader


Introduction

The goal of this ICP is to create a heartbeat monitor using an Arduino, a heartbeat sensor, a LCD, a Wi-Fi module ESP8266 and a potentiometer to alter the sensor data analogy. After connecting all the components we altered the Aurduino code provided for this ICP to display the data on the LCD, and to send it to ThingSpeak through an API.


Approaches and Method

These project consisted of three parts and a bonus part as follow below:

Part 1:

•Create a heartbeat module which should display heartbeats on LCD. •Change the delay between heartbeats and compare the results.

Part 2:

•Connect Wifi Module which should be able to transmit the data to cloud. •Using ThingSpeak API key, try to fetch the sensor data. •Using ThingSpeak, visualize the data.

Part 3:

•Integrate project 1 with the current. •If the heartbeat goes above 170, the red LED light should blink. •If it drops below 100, the green light should blink. •Have three functioning buttons. One to to reset, one to turn it off, and one to turn on the LCD.

ICP Bonus Points:

•When there is no finger on the pulse sensor the reading should be reset to zero. For example if the BPM drops below 50 or boosts above 300 the BPM rate should be reset to zero or you can make your own scenario according to your feasibility.

For this project, we had to connect the Arduino to an LCD, wifi connection, pulse sensor, and load the readings in ThingSpeak for comparison. We had to connect all the components with the Arduino and with the Breadboard. For the Wi-Fi, we made a connection to the Arduino on the 3.3 volt pin. For the rest of the components, we used the 5 volt pin. We had to download and install a new library to work with the LCD. Our connections are shown in the circuit diagram. In the code, we added the LCD library and made two extra connections for the lights if the heartbeat changes to more than 170 or less than 100.


Workflow

We split into 2 groups, one in charge of the LCD connection and the other in charge of the Wi-Fi and pulse sensor. Then we came back together and worked on the code.


Circuit Diagram


Evaluation and Conclusion

Below you will find pictures of our final setup, as well as a link to our video. The video includes our results for all parts (we managed to complete all 3 parts and the bonus section)

Video Link

In conclusion this ICP was definitely a step up in difficulty from ICP 2. It seems that connecting to WiFi at school is incredible difficult as you cannot connect to the Schools WiFi due to certificates, and no one in class has yet to successfully connect to their phones WiFi hotspot. So that portion has generally taken the most time and when we get home we can easily circumvent this issue.