avaldebe / aqmon Goto Github PK
View Code? Open in Web Editor NEWDIY Air Quality Monitor
DIY Air Quality Monitor
The PMS5003 pinout on the LOGOELE datasheet indicate that when PIN8
is low, PIN4
/PIN5
form an ì2c
bus. When contacted about further information they could not say more.
Is this true? What is the address? And are the registers?
I have long searched the web for information on this issue without success.
A few days ago, I had a bit of success. I'll use this tread to dump the information as I find it.
Hi,
while trying your module bme280.lua, I get an error when calling "bme280.read":
The reason for trying your code is: Nodemcu firmware module mbe280 returns incorrect humitity, it is too low. Instead of about 40% it returns about 25%.
The same sensor installed on Raspi running bme280.py returns correct values at about 40% compared to other sensors.
-- module setup and read
sda,scl=6,7 -- GPIO0,GPIO2 --modified to 6,7
found=require('bme280').init(sda,scl)
print (found) -- modified
if found then
bme280.read() -- getting error
pres,temp,rhum = bme280.pressure,bme280.temperature,bme280.humidity
end
-- release memory
bme280,package.loaded.bme280 = nil,nil
-- print formated results
print(('pres:%s hPa, temp:%s C, rhum:%s %%, heap:%d')
Error is:
attempt to call field 'read' (a nil value)
stack traceback:
bme280-setup.lua:6: in main chunk
[C]: in function 'dofile'
stdin:1: in main chunk
Init runs through, "found" returns the value 2.
Can you help me find out what's wrong?
I tried to use PMS3003. I get Attmpt to index Global "M" a null value. Is there any values to be added in the lua code?
Greetings.
I see you tried to fix a bug in bme280_compensate_H_int32. Unfortunately, with your changes, the reported humidity is incorrect - for example, instead of 73%-ish it gives me 100. Restoring the original line (v1 = bit.rshift(v1 +16384,15)_bit.rshift(v2_H[2] + 8192,14)) fixes the problem.
Tested with 2 sensors I have here.
Develop, test, document and submit a native nodemcu firmware module so it is available on the cloud nodemcu-build, as suggested on #3.
C
.#3 opened by @gkbtaru, clearly shows that the the documentation is insufficient. We need a Wiki with the following entries:
Hi,
I am getting readings like this for PMS7003 sensor :
Date_Time | PM1 | PM2.5 | PM10
2019/02/13 12:52:09 | 386 | 1142 | 1267
Can anyone please tell me what will be the units of this.
Is the ug/m3 or total count of paarticles at that moment?
Thank you.
AQmon development begun on nodemcu firmware version earlier than 0.9.5 20150318. The severe heap limitations shaped AQmon into small modules, that supported all the required sensors using as little heap as possible.
The current nodemcu firmware is quite good at keeping a "clean heap", and
the current version of the dev branch support all required sensors except the PMSx003.
As pointed out in #3, using a nodemcu-build firmware it is now possible to put all the required code into init.lua. AQmon lite will provide that bare bones example, so new users have a simpler starting point.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.