Raspberry Pi connects to CO2 sensor and displays "None" when running program.

Asked 2 years ago, Updated 2 years ago, 92 views

I would like to measure Co2 concentration using Raspberry Pi3.

I am connecting to the following site for reference.
"None" appears when the program is running and cannot be measured.

I'm at a loss because I don't know the cause.

Please let me know how to measure it.

■ Reference site
Measure CO2 concentration with Raspberry Pi3 - Qiita
https://qiita.com/revsystem/items/5a362e749ef80358e801

python raspberry-pi gpio

2022-09-30 18:55

1 Answers

Run cat/boot/config.txt | grep enable_uart on the terminal and click

enable_uart=0

Then, the reason why I can't read the sensor is that RPi's UART is open and not open.
If so, refer to the article
https://qiita.com/revsystem/items/5a362e749ef80358e801
Original story for
https://qiita.com/UedaTakeyuki/items/c5226960a7328155635f
"If you open the UART by referring to ""Preparation (Free UART)"" in , you will be able to read it

"


2022-09-30 18:55

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.