Raspberry Pi Computing: Gas Sensors by Malcolm Maclean

Raspberry Pi Computing: Gas Sensors by Malcolm Maclean

Author:Malcolm Maclean [Malcolm Maclean]
Language: eng
Format: epub, pdf
Publisher: leanpub.com
Published: 2019-04-21T00:00:00+00:00


The output should look something like this;

Gas sensor measurement in progress Local current time : 2019-04-21 13:14:14 Value via ADC : 82 Voltage via ADC : 0.01875915974596971

Run this script a few times and then we can check the results in our database by starting up SQLite as follows;

sqlite3 measurements

From the SQLite prompt we can query the database to return all the records using SELECT * FROM gas; as follows;

sqlite> select * from gas; 2019-04-21 13:14:06|81|0.0210102589154861 2019-04-21 13:14:14|83|0.020009770395701 2019-04-21 13:17:32|83|0.0205100146555935 sqlite>



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.