Device to Database Week 2

I added a distance sensor (20cm-150cm – GP2Y0A02YK,  https://www.adafruit.com/product/1031) to the in-class project together with the Temperature and Humidity sensor. I also use a 3.7V battery for the MKR1010 board to run wirelessly.

IMG_1815.JPG

Source code:

https://github.com/effyfan/DeviceToDatabase/tree/master/assign2

  • Arduino console showing new sensor data

Screen Shot 2019-02-07 at 8.26.05 PM.png

  • Data from MQTT broker

Screen Shot 2019-02-07 at 8.11.53 PM.png

 

Ideas for an IoT project:

I would like to build a Loneliness Index Device for people with mental illness such as depression. I want to use temperature sensors, UV sensors, color sensors, and sound sensor to monitor their living environment to find out the relationship between their emotional stage and the environment condition.

I am waiting for the sensors to arrive and will see which ones work the best and start building the device.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s