Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrlogen/room-sense-sensor
https://github.com/mrlogen/room-sense-sensor
iot micropython raspberry-pi-pico-w
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/mrlogen/room-sense-sensor
- Owner: MrLogEN
- License: mit
- Created: 2024-06-21T22:05:49.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-06-21T23:01:42.000Z (5 months ago)
- Last Synced: 2024-10-10T22:22:08.695Z (about 1 month ago)
- Topics: iot, micropython, raspberry-pi-pico-w
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Room Sense Sensor
This is an example of an MicroPython implementation for [Raspberry Pi Pico W](https://www.raspberrypi.com/documentation/microcontrollers/raspberry-pi-pico.html) which can read from a DHT22 sensor and send it's readings to [Room Sense Api](https://github.com/MrLogEN/room-sense-api).
## Setup and Prerequisites
1. You need a [Raspberry Pi Pico W](https://www.raspberrypi.com/documentation/microcontrollers/raspberry-pi-pico.html) and a DHT22.
2. Connect the the DHT22 to the [Raspberry Pi Pico W](https://www.raspberrypi.com/documentation/microcontrollers/raspberry-pi-pico.html) you can find the schema in the [Assmebly](#Assembly) section.
3. Prepare the [Raspberry Pi Pico W](https://www.raspberrypi.com/documentation/microcontrollers/raspberry-pi-pico.html) for [MicroPython](https://www.raspberrypi.com/documentation/microcontrollers/micropython.html#what-is-micropython).
5. Clone this repository.
```shell
git clone https://github.com/MrLogEN/room-sense-sensor.git
```
6. Edit the `main.py`'s constants such as `SSID`, `PASSWORD` or `API_URL` to match your setup.
7. Upload the `main.py` script from the clone repository to the [Raspberry Pi Pico W](https://www.raspberrypi.com/documentation/microcontrollers/raspberry-pi-pico.html) using [ampy](https://pypi.org/project/adafruit-ampy/) command line tool or [Thonny IDE](https://thonny.org/).## Assembly
### Pins
This table shows, how you should connect your DHT22 sensor to a [Raspberry Pi Pico W](https://www.raspberrypi.com/documentation/microcontrollers/raspberry-pi-pico.html).|DHT22 Pin| Raspberry Pin |
|---------|---------------|
|VCC (Pin 1)| 3V3 (Pin 36) |
|Data (Pin 2) | GP15 (Pin 20) |
|GND (Pin 4) | GND (Pin 38) |You can use any `GND` pin for ground or any `GP` pin for reading data. If you are not sure which pin is which, you can refer to the official [pinout](https://www.raspberrypi.com/documentation/microcontrollers/raspberry-pi-pico.html#pinout-and-design-files) docs.