Comments on: Interfacing a K30 CO2 sensor with a Raspberry Pi for Remote Air Quality Sensing https://computenodes.net/2017/08/18/__trashed-4/ Fri, 17 Jan 2025 16:03:36 +0000 hourly 1 https://wordpress.org/?v=6.7.1 By: Phil https://computenodes.net/2017/08/18/__trashed-4/#comment-615 Thu, 17 Dec 2020 11:48:25 +0000 https://computenodes.net/?p=50#comment-615 Hi Antares,

I’m afraid I don’t have access to a sensor to test but I think it’s probably line 17 that is causing you grief.
I think all you need to do to fix this line is change it to
ser.write(b”\xFE\x44\x00\x08\x02\x9F\x25″)
Lines 24 & 25 may also need changing, but without the hardware I can’t test.

]]>
By: Antares Fixter https://computenodes.net/2017/08/18/__trashed-4/#comment-614 Wed, 16 Dec 2020 18:52:00 +0000 https://computenodes.net/?p=50#comment-614 Perfect! Great job!
but I don’t know how to convert this code for Python3 (unicode is not supported)

]]>
By: sandar win https://computenodes.net/2017/08/18/__trashed-4/#comment-517 Tue, 23 Jun 2020 06:14:43 +0000 https://computenodes.net/?p=50#comment-517 Fantastic! Thanks a lot, sir!

]]>