How to convert ADC voltage to CO2-value Topic is solved

Moderator: leecollings

Post Reply
HoogendoornJH
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

Post by HoogendoornJH »

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?
ADCvalue.jpg
ADCvalue.jpg (38.62 KiB) Viewed 2550 times
Aeotec Z-wave Gen5, RFXtrx433xl, Philips Hue Bridge, Davies Weather Station, Honeywell HGI/S80, AurAir CO2
User avatar
waltervl
Posts: 5397
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

Post by waltervl »

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
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
HvdW
Posts: 539
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

Post by HvdW »

Converted to a CO2 value, a CarbonDioxide value?
Bugs bug me.
User avatar
FireWizard
Posts: 1770
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

Post by FireWizard »

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
User avatar
waltervl
Posts: 5397
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

Post by waltervl »

HvdW wrote: Wednesday 14 February 2024 20:42 Converted to a CO2 value, a CarbonDioxide 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
HoogendoornJH
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

Post by HoogendoornJH »

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
This works. Thanks a lot, waltervl.
Aeotec Z-wave Gen5, RFXtrx433xl, Philips Hue Bridge, Davies Weather Station, Honeywell HGI/S80, AurAir CO2
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests