I have a ADC voltage-value from a ShellyUNI which must be converted to a CO2-value (CO2 = 200 * ADC-value). How can this be done?
How to convert ADC voltage to CO2-value Topic is solved
Moderator: leecollings
-
- Posts: 37
- Joined: Wednesday 31 July 2019 16:43
- Target OS: Windows
- Domoticz version: 12736
- Location: Netherlands
- Contact:
How to convert ADC voltage to CO2-value
Aeotec Z-wave Gen5, RFXtrx433xl, Philips Hue Bridge, Davies Weather Station, Honeywell HGI/S80, AurAir CO2
- waltervl
- Posts: 5387
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: How to convert ADC voltage to CO2-value
As you don't know Lua you better start with Dzvents.
Look for example to this topic where someone has something similar. https://www.domoticz.com/forum/viewtopic.php?t=33414
Look for example to this topic where someone has something similar. https://www.domoticz.com/forum/viewtopic.php?t=33414
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 532
- Joined: Sunday 01 November 2015 22:45
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2023.2
- Location: Twente
- Contact:
Re: How to convert ADC voltage to CO2-value
Converted to a CO2 value, a CarbonDioxide value?
Bugs bug me.
- FireWizard
- Posts: 1766
- Joined: Tuesday 25 December 2018 12:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Voorthuizen (NL)
- Contact:
Re: How to convert ADC voltage to CO2-value
Hi @HoogendoornJH,
As the Shelly Uni is able to send the ADC value to MQTT topic "shellies/shellyuni-ID-Number/adc/0, I would send it to Node-RED and multiply the value with 200. The result can be easily send with MQTT to Domoticz.
Or use DzVents and multiply it there as Waltervl said.
Regards
As the Shelly Uni is able to send the ADC value to MQTT topic "shellies/shellyuni-ID-Number/adc/0, I would send it to Node-RED and multiply the value with 200. The result can be easily send with MQTT to Domoticz.
Or use DzVents and multiply it there as Waltervl said.
Regards
- waltervl
- Posts: 5387
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: How to convert ADC voltage to CO2-value
He probably has a CO2 measuring device hooked up to the Shelly ADC (Analog DC) input. So a certain voltage level defines a certain CO2 level.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 37
- Joined: Wednesday 31 July 2019 16:43
- Target OS: Windows
- Domoticz version: 12736
- Location: Netherlands
- Contact:
Re: How to convert ADC voltage to CO2-value
This works. Thanks a lot, waltervl.waltervl wrote: ↑Wednesday 14 February 2024 16:52 As you don't know Lua you better start with Dzvents.
Look for example to this topic where someone has something similar. https://www.domoticz.com/forum/viewtopic.php?t=33414
Aeotec Z-wave Gen5, RFXtrx433xl, Philips Hue Bridge, Davies Weather Station, Honeywell HGI/S80, AurAir CO2
Who is online
Users browsing this forum: No registered users and 1 guest