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
- Host: GitHub
- URL: https://github.com/sczerwinski/home-monitoring-slave
- Owner: sczerwinski
- Created: 2020-04-01T21:18:43.000Z (about 5 years ago)
- Default Branch: develop
- Last Pushed: 2020-04-11T14:41:16.000Z (about 5 years ago)
- Last Synced: 2025-01-24T07:28:56.669Z (4 months ago)
- Topics: arduino, bluetooth, dht22, iot
- Language: C++
- Homepage:
- Size: 566 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)
## 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).