-
-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BME280 sensors support. #311
Conversation
Reduce number of DHT22 sensors to 20. BME sensors programs use numbers 20200-20299. Using I2C bus. Pins: SDA/SCL on Mega and SDA1/SCL1 on Due. First sensor must have 0x76 address. Pullup resistor(s) must be used on Due.
Cool, thanks, will test it asap. |
Thanks! But why the reduction to 20 DHT sensors (not that anyone will need these many anyways, but just out of curiousity)? |
For every sensor using 6 programs: ID, temp, humidity, Abs humidity, pressure, altitude. Other programs can be used for new sensors types in future.
Reason is only one: for a more logical layout in the category. I could add the programs at the end, from 20900 to 20950, but then the sensors would go after the contents of the arrays |
Ok, thanks! |
Ah yes, sure - sorry, didn't think of that right now ;) |
Due to another merge, there are now conflicts, could you check please? |
Just tried - isn't it merged yet? |
Merged just now |
@1coderookie I have read on various websites that the second I2C bus requires external resistors. It is possible that this is erroneous information, but I can't check it, so I thought it would be better to write a warning. |
Ah ok, got it. You're right that in general (not only at the second I2C afaik) external pullups are needed! |
@dukess: Now there's the definement for BME280 in config.h which a) has to be activated and b) where one has to choose if one or two sensors are connected. Wouldn't it be good to also have that field within the webconfig like for DHT etc (but not for the pins of course, just for the amount of connected BMEs)? Maybe even something like 0 = deactivated, 1 = 1sensor, 2 = 2sensors? |
So, did a new test. Adjusted config.h, serial monitor says
but no values presented within /K49 (doesn't appear, maybe you didn't add?) or /20200-20299 (just empty page).. :( |
There is an error(?)-message while compiling, but it doesn't seem to bother so far cuz flashing is possible. But maybe that could be a reason..?
|
If it compiles fine, it's just a warning, and if it comes from a library (such as Wire.h) and not from BSB_lan_., then it has usually nothing to do with the BSB-LAN problem. |
@1coderookie Thank you for testing!
It is harder: every sensor require a object and their quantity hard-coded at building. Of course, we can redo this code to be able to dynamically change the sensors quantity, but it will take up more space in memory. Can we postpone this until the next release? I would like to make another release with Mega support. |
Thank you for testing! |
Thank you for implementing! :) |
New chapter in the manual: https://1coderookie.github.io/BSB-LPB-LAN_EN/chap12.html#1233-notes-on-bme280-sensors |
Reduce number of DHT22 sensors to 20.
Fixed wrong unit for abs humidity.
BME sensors programs use numbers 20200-20299.
Using I2C bus.
Pins: SDA/SCL on Mega and SDA1/SCL1 on Due.
First sensor must have 0x76 address.
Pullup resistor(s) must be used on Due.
Compiled but NOT TESTED.