IOT Based Health Monitoring System

A microcontroller-based device with appropriate bio-medical sensors will be attached to patient to provide constant cloud-based monitoring. The vital signs i.e. temperature and pulse rate of human body which are major clues to detect any health problem will be sensed by respective sensors supported by NodeMCU in a Wi-Fi environment and the data will be sent to ThingSpeak cloud where the data will be analysed to look for any irregularity. In case of any irregularity a notification will be sent to doctors and nurses.

By this system, patients can be kept under proper constant monitoring without being dependent on any human’s responsibility at a very low cost. This will also reduce any possible errors and help the doctor to quickly respond to the situation.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Connection

Things you will need:-

1. Breadboard

2. NodeMCU

3. Pulse sensor

4. DS18B20 waterproof temperature sensor

5. Jumper wires

6. 4.7k ohm resistor for DS18B20

Now, setup your connection as per the circuit given in the image.

Step 2: Coding and Thingspeak

Upload the code and setup your thingspeak channel to receive the data (you can easily find a lot of tutorials regarding this on internet, still if you have any issues you can leave a comment below) .

Make sure the field 1 is for BPM and field 2 is for temperature on your thingspeak channel and then, select NodeMCU as your board (you will have to download this board as it is not added by default, you can go through this guide to setup your IDE: https://www.instructables.com/id/Quick-Start-to-N... ).

Now, upload the code and make sure to edit the WiFi credentials and the thingspeak API key accordingly in the code before uploading.

Step 3: Optional

You can generate email alerts accordingly:

https://in.mathworks.com/help/thingspeak/analyze-c...

Here is the guide to set it up.

Code:

channelID=Your_channel_ID;

iftttURL='Your_IFTTT_URL';

readAPIKey='read_API_key';

bpm=thingSpeakRead(channelID,'Fields',1,'ReadKey',readAPIKey);

temp=thingSpeakRead(channelID,'Fields',2,'ReadKey',readAPIKey);

tempf=(temp*9/5)+32;

if (bpm<60 | bpm>100 | temp<36.1 | temp>37.2)

webwrite(iftttURL,'value1',bpm,'value2',temp,'value3',tempf);

end

Be the First to Share

    Recommendations

    • Assistive Tech Contest

      Assistive Tech Contest
    • Reuse Contest

      Reuse Contest
    • Made with Math Contest

      Made with Math Contest

    9 Discussions

    0
    None
    jasonbard99

    Tip 10 days ago

    Where is the circuit diagram properly? idk how to make connections, please help!

    0
    None
    kuttireddy365

    Question 2 months ago

    who to add the OLED in your Project

    0
    None
    kuttireddy365

    Question 2 months ago on Step 3

    hai sir my self sreenivas , i working on same project in that project i writen the code and everything and output will be coming but thingspeak is not receiving the data, OLED is display the output
    iam also checking the on your code in that code BPM is 0.34 in this type of value is coming and iam added the OLED Display at that time Thingspeak is not receiving the Data,
    so what iam asking what 's the problem in that code
    this is my whatsapp number sir 8247033250

    0
    None
    Supeksala

    4 months ago

    compiled successfully but for pulse rate getting values like 0.34 and 0.36 ..pls help

    1 reply
    0
    None
    rohitxshSupeksala

    Reply 4 months ago

    There may be some issue with connections try setting up a individual circuit setup just for pulse sensor and edit the code accordingly. This will help you to isolate the problem and identify it easily.

    0
    None
    rohitxshraviflash789

    Reply 7 months ago

    Can you share some screenshots and more details.

    0
    None
    rohitxshDIY Hacks and How Tos

    Reply 10 months ago

    Sure, but that depends if I get assistance cause I don't have an electronics background basically.