Comments (8)
If you want to extend this codebase, you probably would want to do the following
Extend that state struct to also contain the data from the DHT22
esp8266-vindriktning-particle-sensor/src/types.h
Lines 1 to 5 in 320cdc0
Extend the autoconfig section to also publish temperature and humidity sensors
Extend the MQTT publish function to add the other measurements to the published JSON
And since the DHT22 requires polling afaik, extend the loop function to poll it on each publish
That should be about it
from esp8266-vindriktning-particle-sensor.
As I personally already have a functioning bunch of zigbee temperature sensors basically everywhere, I did not try that, however it should be an easy modification software-wise.
As for hardware, it might get a bit too crammed in there.
Note that adding too much stuff in there might interfere with the airflow and therefore mess up the readings
from esp8266-vindriktning-particle-sensor.
Note that adding too much stuff in there might interfere with the airflow and therefore mess up the readings
Thanks for the reply. I've just had some time this morning and checked the images of the device from Twitter. I understand now what you mean regarding the airflow. Anyhow I will give it a try with a DTH22 HAT. I ordered this morning before checking the pictures. I will keep you updated how it worked out. (I might will need some help for the sketch as I don't have too much experience with it.)
from esp8266-vindriktning-particle-sensor.
The additional function of the DHT22 would be absolutely great. Is anyone already working on this?
from esp8266-vindriktning-particle-sensor.
The additional function of the DHT22 would be absolutely great. Is anyone already working on this?
I went down the ESPHome way at the end as @Habbie made a ESPHome component which is/will be part of the latest release of ESPHome.
from esp8266-vindriktning-particle-sensor.
Thank you for pointing this out. I will take a closer look at his PR esphome/esphome#2038.
from esp8266-vindriktning-particle-sensor.
Hi all!
Based on above indications of @Hypfer (hey, thanks for your work!), I created a quick-'n-dirty© commit that implements a DHT11 sensor. Please adjust accordingly if you are using the DHT22 variant :)
I connected it to D4 of the Wemos Mini, or GPIO02, adjust accordingly.
Because it is so quick and dirty, I won't create a PR: ideally I would want to define one variable in order to include all the additional information + libraries and such, but this is the first time I have played with an ESP8266 board, so I def. will have done some very wrong stuff!
The commit can be found at my fork:
unreal4u@db8ccc9
To compile, you'll need the Adafruit Unified Sensor (v1.1.4) library installed. I also installed the DHT Sensor Library (v1.4.2) but I'm not quite sure if this is needed or not.
from esp8266-vindriktning-particle-sensor.
I have an alternative firmware implementation, https://github.com/grmcdorman/esp8266_vindriktning; this uses an SHT31-D (an I2C device), but it shouldn't be hard to add the DHT variants to the code base from the way I've structured it. I have it working nicely with the SHT31-D.
The Vindriktning polling in that code has been gently revised; I believe it is more robust (for example, that 25 ms wait "for unknown reasons" isn't needed any more).
from esp8266-vindriktning-particle-sensor.
Related Issues (20)
- Control LED HOT 4
- After connecting to personal WiFi an AP is still present HOT 2
- Is ESP8266 module (not D1 mini) 5V tolerant? HOT 1
- Received message with invalid header. HOT 3
- Not an issue, you probably need to clean the sensor regularly HOT 4
- 5V mention in the README HOT 3
- Not an issue, low noise mod skews sensor results by ~50% HOT 3
- Can't re-configure D1 after initial deployment HOT 1
- No pm25, ssid, ip values on esp01s
- Not Issue - I need help with code
- Set OTA password HOT 1
- The value does not fall below 200 HOT 4
- Web interface problem HOT 4
- The sensor measure always 0 ug/mc! HOT 3
- Embarrasingly stuck HOT 5
- I don't have MQTT But I need help. HOT 2
- Not an Issue ! juste Topic Name HOT 2
- Seeing odd values on sensor UART
- No mqtt topic is visible HOT 1
- How to See the Data in an App ? & Simple Wiring to ESP8266 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp8266-vindriktning-particle-sensor.