https://github.com/alvarosabu/yun-sensor-mote
A IoT Sensor Mote using Arduino Yún that comunicates vía Wifi through REST calls using the Bridge Library
https://github.com/alvarosabu/yun-sensor-mote
Last synced: 6 months ago
JSON representation
A IoT Sensor Mote using Arduino Yún that comunicates vía Wifi through REST calls using the Bridge Library
- Host: GitHub
- URL: https://github.com/alvarosabu/yun-sensor-mote
- Owner: alvarosabu
- License: mit
- Created: 2017-11-18T16:10:51.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-04-15T10:53:57.000Z (over 5 years ago)
- Last Synced: 2025-02-13T19:49:47.296Z (8 months ago)
- Language: C++
- Size: 329 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# YunSensorMote
>A Sensor Mote using [Arduino Yun](https://store.arduino.cc/arduino-yun) that comunicates via Wifi through REST calls using the Bridge Library.
This project uses [Platform.io](http://platformio.org/) project structure and features.
## Libraries
* It uses a [ArduinoJson](https://arduinojson.org/) library to return json objects with the raw data.
* Adafruit [DHT sensor library](https://github.com/adafruit/DHT-sensor-library)
## The Circuit:
* Arduino A0 connected to Vout signal pin of KY-013 Analog Temperature Sensor from [Keyes](https://tkkrlab.nl/wiki/Arduino_KY-013_Temperature_sensor_module).
* Arduino D1 connected to Vout signal pin of KY-015 Humidity DHT11 Sensor from [Keyes](https://tkkrlab.nl/wiki/Arduino_KY-015_Temperature_and_humidity_sensor_module).
* Arduino A2 connected to Vout signal pin of KY-18 LDR Sensor from [Keyes](https://tkkrlab.nl/wiki/Arduino_KY-018_Photo_resistor_module).
* Arduino A3 connected to a 10K Pot that will simulate any other analog sensor.
* Arduino D8 connected to KY-019 Relay Module [Keyes](https://tkkrlab.nl/wiki/Arduino_KY-019_5V_relay_module)
* Arduino I2C SDA/SCL connected to Adafruit's [MPL3115A2](https://www.adafruit.com/product/1893) Sensor Module# Development
## Data Structure
The sensor mote data is send in JSON format
```JSON
{
"moteId": 1,
"groupId": 2,
"temp": 532,
"humidity": 39,
"ldr": 530,
"adc": 571,
"relay": 0
}
```# Support, Questions, or Feedback
> Contact me anytime for anything about this repo or IoT in general* [Email: Alvaro Saburido](alvaro.saburido@gmail.com)
* [Twitter: @alvarosaburido1](https://twitter.com/alvarosaburido1)___
# License
[MIT](/LICENSE)