An open API service indexing awesome lists of open source software.

https://github.com/sczerwinski/home-monitoring-slave

Home Monitoring – Slave Arduino
https://github.com/sczerwinski/home-monitoring-slave

arduino bluetooth dht22 iot

Last synced: 2 months ago
JSON representation

Home Monitoring – Slave Arduino

Awesome Lists containing this project

README

        

# Home Monitoring – Slave Arduino

## Dependencies

This project uses [Adafruit DHT Humidity & Temperature Sensor Library](https://github.com/adafruit/DHT-sensor-library)
(included).

## Components

* Arduino Nano (should also work with other Arduino boards)
* HM-10 Bluetooth 4.0 module or compatible
* DHT22 humidity and temperature sensor
* 5~10k Ohm resistor (unless using 3-pin DHT22 circuit with integrated resistor)

![Breadboard](https://raw.githubusercontent.com/sczerwinski/home-monitoring-slave/develop/images/home-monitoring-slave.png)

## Configuration

```c
#define LED_PIN 13
#define DHT_PIN 2
#define DHT_TYPE DHT22
```

When connecting an external LED at a different GPIO, change `LED_PIN` to LED GPIO number.

When connecting DHT sensor at a different GPIO, change `DHT_PIN` to DHT data GPIO number.

When using DHT11 sensor instead of DHT22, change `DHT_TYPE` to `DHT11`.

Bluetooth module can only be connected to at GPIO0 (RX) and GPIO1 (TX).To connect bluetooth module at different GPIO,
use an instance of [`SoftwareSerial`](https://www.arduino.cc/en/Reference/SoftwareSerialConstructor) instead of `Serial`.

## Attributions

Images exported from Fritzing editor shared under [CC BY-SA 3.0 License](https://creativecommons.org/licenses/by-sa/3.0/).

Image of [HM-10 Bluetooth module](https://github.com/RafaGS/Fritzing/blob/master/Bluetooth%20HM-10.fzpz)
by [@RafaGS](https://github.com/RafaGS) shared under
[GNU General Public License v2.0](https://github.com/RafaGS/Fritzing/blob/master/LICENSE).