Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of kc_mh-z19_CO2sensor by
Revision 2:efdada46c319, committed 2018-09-14
- Comitter:
- jw17594
- Date:
- Fri Sep 14 09:25:37 2018 +0000
- Parent:
- 1:c7a36fa2c772
- Commit message:
- def
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri Sep 29 03:15:40 2017 +0000
+++ b/main.cpp Fri Sep 14 09:25:37 2018 +0000
@@ -1,21 +1,15 @@
/*
- Read from MH-Z19 CO2 Sensor by serial
- and show data to PC throw the softserial
- for LPC1114FN28
-
- MH-Z19B Datasheet http://www.winsen-sensor.com/d/files/infrared-gas-sensor/mh-z19b-co2-ver1_0.pdf
- Also reference https://github.com/nara256/mhz19_uart
-
- please see the blog in detail
- http://kohacraft.com/archives/1068007971.html
-
+ Read from MH-Z14A CO2 Sensor by serial and show data to PC throw the softserial
+ for LPC1768
+ MH-Z14A Datasheet https://www.compel.ru/item-pdf/2ef21253651a5e4838151c427769e7b6/pn/winsen~mh-z14a-ndir-co2-sensor.pdf
+
*/
#include "mbed.h"
#include "SoftSerial.h" // by Erick Olieman https://os.mbed.com/users/Sissors/code/SoftSerial/
-SoftSerial pc(dp18,dp17); //Tx,Rx to USB serial (mbed cat)
-Serial co2sensor(USBTX, USBRX); //Tx,Rx to mh-z19 CO2 sensor
+SoftSerial pc(p13,p14); //Tx,Rx to USB serial
+Serial co2sensor(USBTX, USBRX); //Tx,Rx to mh-z14 CO2 sensor
int main() {
