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
MLX90614 and ADS1115 plugins #15
Conversation
MLX90614 is a IR temperature sensor P024 gives the temperature of the object seen by the sensor P027 give the ambient temperature of the sensor ADS1115 is a 16 bit AD converter P025 is the ADS1115 used with the Sharp Dust sensor
Hi there, Thanks for your contribution to the project! Would be nice to add support for these devices. But I have a few questions/remarks on this development: MLX90614
A plugin can return up to 4 variables, so I guess both IR and ambient temperatures could be done with a single plugin. Or maybe add a selection dropdown to select between reading IR or ambient temperature If you need to send them to the controller as individual values, you can load the plugin twice and select the value that you want for each task. Could you try to combine plugin 024 and 027 into a single plugin? ADS1115We should also rethink the dust sensor solution which is actually just an extension to any ADC plugin (like the internal ADC, the PCF8591 and now also the ADS1115) Maybe we should add options in the webgui to select some action before/after reading the port and have a selection for 'oversampling'. Then we could handle the ADS1115 with a single plugin and we could also make the existing Dust plugin P018 obsolete Or we could make ONE new dust plugin where the ADC to be used can be selected with a dropdown. Please let me know if you need help on this or have different proposals! You may ask why all this is important?
|
Van: mvdbro [mailto:notifications@github.com] Hi there, Thanks for your contribution to the project! Would be nice to add support for these devices. But I have a few questions/remarks on this development: MLX90614
A plugin can return up to 4 variables, so I guess both IR and ambient temperatures could be done with a single plugin. Or maybe add a selection dropdown to select between reading IR or ambient temperature If you need to send them to the controller as individual values, you can load the plugin twice and select the value that you want for each task. Could you try to combine plugin 024 and 027 into a single plugin? The port value is used as an offset to the default address (5Ah)
ADS1115 We should also rethink the dust sensor solution which is actually just an extension to any ADC plugin (like the internal ACD, the PCF8591 and now also the ADS1115) Maybe we should add options in the webgui to select some action before/after reading the port and have a selection for 'oversampling'. Then we could handle the ADS1115 with a single plugin and we could also make the existing Dust plugin P018 obsolete Or we could make ONE new dust plugin where the ADC to be used can be selected with a dropdown. Please let me know if you need help on this or have different proposals! You may ask why all this is important?
I would like to built a ADC plugin with the option to choose a GPIO for a pulse, the current dust version acts like this when the GPIO is not chosen. I don’t know what the best way is to realize these extra input fields. Please let me know what the best option is and help me with extra input fields. With regards, Ger van der Linde — |
For now, I suggest to combine plugin 24/27 by adding a dropdown to select between one of the two possible readings. Use plugin number 024 for this. If you need both values towards the controller, you could use two tasks, one for each value. Domoticz will not support two temperature values on one IDX anyway... There's no sensor type for that. I would also prefer to have the generic ADS1115 support as plugin 025. Then try to extend the existing plugin 018 to have a selection between all currently available ADC options. I think this plugin mainly needs an additional "Select ADC" dropdown with the options "Build-in", "PCF8591" and "ADS1115". So then we have two new and one updated plugin. I think it's best to create a pull request for each one of them individually. The gas sensors that I known off have preheating times of 24-48 hours. I think it's best to keep them permanently active. |
MLX90614 is a IR temperature sensor
P024 gives the temperature of the object seen by the sensor
P027 give the ambient temperature of the sensor
ADS1115 is a 16 bit AD converter
P025 is the ADS1115 used with the Sharp Dust sensor