RobTillaart / MHZCO2

Arduino Library for MHZ series CO2 sensors
MIT License
5 stars 1 forks source link

Problems with NODEMCU ESP8266 (see private email Harrie) #6

Closed RobTillaart closed 1 year ago

RobTillaart commented 1 year ago

code

#include "MHZCO2.h"
//#include <SoftwareSerial.h>

// from top IO nummer is in de define
// D0 GPIO16  aan RST
// D1 GPIO5
// D2 GPIO4
// D3 GPIO0
// D4 GPIO2
// D5 GPIO14
#define CO2_RX D5
// D6 GPIO12
// D7 GPIO13
// D8 GPIO15
#define CO2_TX D8

////SoftwareSerial ss(CO2_RX, CO2_TX);  // RX, TX

MHZ19C MHZ19C;

void setup() {
  Serial.begin(9600);
  delay(10);

 // MHZ19C.begin(&ss);
 //ss.begin(9600);

  MHZ19C.begin(&Serial1);
  Serial1.begin(9600);

}

void loop() {

  MHZ19C.measure();
  Serial.print("  Temp: ");
  Serial.print(MHZ19C.getTemperature());
  Serial.print("  PPM CO2: ");
  Serial.println(MHZ19C.getCO2());

  delay(10000);
}

Action: order hardware

RobTillaart commented 1 year ago

update - still no supplies at my favo shop.

RobTillaart commented 1 year ago

As the issue is not active anymore (no mails from Harrie) I close it.