Can MG811 (carbon dioxide sensor) be used on Android Things?

Asked 1 years ago, Updated 1 years ago, 65 views

I'd like to create an app that measures carbon dioxide with raspies and sensors and sounds an alarm if it's too high, but I'd like to ask if it's possible to get carbon dioxide values with the following combinations.My biggest concern is the speed of Android Things data calls.
terminals:Raspberry Pi 3Model B
OS:Androidthings
Sensor Name: Carbon Dioxide Sensor Module MG811/MG-811 CO20-2V 0-10000 ppm Shop from: www.amazon.co.jp/dp/B01HCQQGM0
Sensor specifications:
http://sandboxelectronics.com/files/SEN-000007/MG811.pdf
http://sandboxelectronics.com/?p=147

I'm worried if I can get the exact value because Android Things' data call speed is slow.Android Things takes 230us to call a single data from GPIO.If anyone knows the call speed required for MG811, I would appreciate it if you could let me know.
https://qiita.com/soundTricker/items/661a1034f50da773c799
https://issuetracker.google.com/issues/37135689

android android-studio raspberry-pi sensor

2022-09-30 12:01

1 Answers

On Android Things 230us

to invoke a single piece of data from GPIO

The 230us is 0.23 ms, which is very fast for measuring temperature, room temperature, etc., but the link is
I looked at the carbon dioxide sensor module datasheet, the Response and Resume Characteristic (Figure3) item has a sensor response rate table, and the time base unit is kindly written as "time (s), so I can read the slow voltage change from Figure 3 graph.(MG811 is an analog output sensor.I see)

I think you can read it if you program it normally.

Lastly, be careful not to run out of oxygen during debugging!


2022-09-30 12:01

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.