This project consists of 2 devices, the first one is wearable mkr1000 with battery and temperature and humidity sensor, the mkr1000 send temperature and humidity to Artik cloud. Now doctors can observe patient's fever and sweating of patient, and if temperature goes too high or low. Artik will send email to doctor and send action to second device! Second device is a mkr1000 that control cooler with relay!
Adding libraries to ArduinoOpen Arduino ide go to sketch>>include library>>manage libraries.
Now search and install MQTTClient.h, ArduinoJson.h, WiFi101.h, dht.h.
Making cloud ready!Go to https://developer.artik.cloud/dashboard/devicetypes and click on +new device type.
now go to https://artik.cloud/my/devices
go to https://developer.artik.cloud/dashboard/devicetypes again and create new device.
now go back to https://artik.cloud/my/devices
The wearable device is the simple part! you just connect your DHT module to mkr1000 and power it with battery or power bank. Connect the +&- of DHT to 5V & GND and connect out pin to the A0 of mkr1000.
Open the cooler controller code and replace wifi name and password, device id and device token. upload it to mkr1000.
I use a voltage protector to connect relay to cooler because it is more safe!
Relay work's with 5V, but mkr1000's digital write is 3.3V. so we need logic level converter.
At first we connect 5V to HV and GND to GND. Then we connect 6 pin of mkr1000 to LV (because we have digital write, high to 6 pin and it's voltage is 3.3 like our signal voltage).vNow we send signals through one of logic level converter's channels.
RGB led show's the status. Green means that cooler is on and red means off!
Now every thing is OK! You can sit and enjoy your fever while Artik is controlling your body temperature.
Comments