Skip to content

Commit dedd931

Browse files
committed
add readme
1 parent 95616ec commit dedd931

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Pollution monitor
2+
3+
Components:
4+
5+
- SDS011 particulate sensor
6+
- Wemos D1 mini pro (ESP8266)
7+
- Some wires
8+
9+
Ultra simple wiring and ultra simple programming with Micropython! The SDS011 communicates over serial with a protocol detailed here http://cl.ly/ekot:
10+
11+
SDS011 Wemos
12+
13+
TX --> RX
14+
RX <-- TX
15+
5v <-- 5v
16+
GND --> GND
17+
18+
Wemos has only one serial-in and Micropython has no software serial library, so the device cannot be accessed when it is connected to the sensor. Luckily, the webrepl can be used to interact with the device instead.
19+
20+
Ideally, the sensor would be put to sleep and woken periodically. While the sleep command works, I CANNOT GET THE SENSOR TO WAKE UP!
21+
22+
Entering deep sleep on the Wemos does not help as the SDS011 continues to draw power.
23+
24+
As a temporary workaround, I am using the dutycycle mode: the Wemos remains on and the sensor kicks in every minute or so.
25+
26+
TODO: investigate having the sensor wake up the Wemos from deep sleep when the dutycycle kicks in.
27+

0 commit comments

Comments
 (0)