Code Monkey home page Code Monkey logo

aqmon's People

Contributors

avaldebe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aqmon's Issues

AQmon lite: bare bones example

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.

Error calling bme280

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.

I use your code for testing:

-- 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')

:format(f7p2(pres),f7p2(temp),f7p2(rhum),node.heap()))

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?

Unit for the output value.

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.

Wiki entries

#3 opened by @gkbtaru, clearly shows that the the documentation is insufficient. We need a Wiki with the following entries:

  • NodeMCU firmware:
    • Required (native) firmware modules.
    • Flash custom firmware.
  • AQmon (lua) modules:
    • Upload modules.
    • pms3003.lua examples
    • Send data to ThingSpeak or other cloud services
  • Hardware
    • Recommended hardware modules (BOM with alternatives).
    • Wire up instructions.
    • Weather proofing.
    • Basic operation of the PMS3003/PMS5003 sensors.

Bug in humidity compensation code for BME280

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.

Help with PMS3003.lua module

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?

PMS5003 i2c?

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.

pinout

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.

Native pms module on nodemcu firmware

Develop, test, document and submit a native nodemcu firmware module so it is available on the cloud nodemcu-build, as suggested on #3.

  • Port to C.
  • Compile and test on local machine.
  • Write domcumentation.
  • Submit module to nodemcu team (pull request).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.