This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Latest Threads
Problems Adding MH-Z19B C...
Forum: Hardware Questions
Last Post by: Werk_AG
Today, 02:10
» Replies: 1
» Views: 8
They are back!
Forum: WeatherDuino - Info, FAQ's and News
Last Post by: Werk_AG
Yesterday, 21:51
» Replies: 0
» Views: 36
WeatherDuino_P2AT328_RX_v...
Forum: Software Questions
Last Post by: atbukc
Yesterday, 10:11
» Replies: 4
» Views: 101
my meteorological station...
Forum: General Discussion
Last Post by: Polda.t
19-02-2019, 19:41
» Replies: 5
» Views: 129
Data logging addon
Forum: Third-party Addons
Last Post by: engolling
18-02-2019, 22:51
» Replies: 18
» Views: 1.838
WeeWx extra data plugin
Forum: Third-party Addons
Last Post by: engolling
18-02-2019, 22:49
» Replies: 23
» Views: 1.148
SHT-31 order experience
Forum: Hardware Questions
Last Post by: uncle_bob
18-02-2019, 10:39
» Replies: 7
» Views: 128
At last getting parts tog...
Forum: General Discussion
Last Post by: JT118
17-02-2019, 00:58
» Replies: 18
» Views: 593
AT45db011 discontinued
Forum: Hardware Questions
Last Post by: atbukc
12-02-2019, 10:13
» Replies: 2
» Views: 135
BME280 compliation error
Forum: Software Questions
Last Post by: atbukc
06-02-2019, 10:06
» Replies: 2
» Views: 99

 
  Problems Adding MH-Z19B CO2 sensor to AQM
Posted by: Zack_ster - Yesterday, 23:23 - Forum: Hardware Questions - Replies (1)

Dear All,

I've had my Air Quality Monitor up and running for a few weeks now with just the air quality sensor installed. All has been fine until I added a MH-Z19B CO2 sensor today. After configuring the code and uploading, I get no AQ or CO2 readings on the Rx unit. The serial monitor output I get is below. Changing the #define USE_CO2 back = 0 restores the AQ reading.

Any ideas on what might be wrong would be much appreciated....

Rgds,

Zak



WeatherDuino 4Pro
Air Quality Monitor v8.0 b001

Please wait 30s
Configuring CO2 Sensor
Setting measurement range to: 5000
FF,99,1,0,0,0,0,0,66,
66,66
Measurement range changed!
Disabling ABC Funtion
Reseting Sensor
21,10,A0,FD,0,0,0,1,35,
Calculated crc: 52
Wrong reply from CO2 sensor!
FF,86,1,9A,3C,0,0,0,A3,
Calculated crc: A3
CO2 read: 431 - Temp: 20

FF,86,1,9A,3C,0,0,0,A3,
Calculated crc: A3
CO2 read: 431 - Temp: 20

FF,86,1,9A,3C,0,0,0,A3,
Calculated crc: A3
CO2 read: 431 - Temp: 20

FF,86,1,9A,3C,0,0,0,A3,
Calculated crc: A3
CO2 read: 431 - Temp: 20

FF,86,1,9A,3C,0,0,0,A3,
Calculated crc: A3
CO2 read: 431 - Temp: 20

FF,86,1,9A,3C,0,0,0,A3,
Calculated crc: A3
CO2 read: 431 - Temp: 20

FF,86,1,9A,3C,0,0,0,A3,
Calculated crc: A3
CO2 read: 431 - Temp: 20

FF,86,5,E4,3C,0,0,0,55,
Calculated crc: 55
CO2 read: 1585 - Temp: 20

FF,86,5,D9,3C,0,0,0,60,
Calculated crc: 60
CO2 read: 1573 - Temp: 20

Init MH-Z19 Ended

FF,86,5,F8,3C,0,0,0,41,
Calculated crc: 41
CO2 read: 0 - Temp: 20


My config_options are:

Code:
// --------------------------------------------------------------------------------------
//   WeatherDuino - Air Quality Monitor v8.0 b001
//            User Configurable Options
// --------------------------------------------------------------------------------------

// --------------------------------------------------------------------------------------
//   Define ID and TX unit number
// --------------------------------------------------------------------------------------
const byte Station_ID = 0xA1;    // Must be equal to your RX Unit (Value from 0x00 to 0xFF)


// --------------------------------------------------------------------------------------
//   Define type of PM sensor
// --------------------------------------------------------------------------------------
#define PMSENSOR_TYPE   0    // 0= PMS7003, 1= nova SDS011


// --------------------------------------------------------------------------------------
//   For the PMS7003 define data set
// --------------------------------------------------------------------------------------
#define PMS7003_DATASET 1    // 0= CF1, 1= Ambiente (You should always use this data set)


// --------------------------------------------------------------------------------------
//   CO2 (MH-Z19) Settings
//   Note: For outside use, the MH-Z19B model produces more accurate results
// --------------------------------------------------------------------------------------
#define USE_CO2         1    // 0= Not instaled, 1= Instaled
#define Z19_MODEL       2    // 1= Model A, 2= Model B  (ATTENTION: Make sure you select the correct model)                            

// Set measure range                              
#define Z19_RANGE       5    // Don't change (Keeps default factory range 0..5000 ppm)
                            // Valid values for Model A: 1= 1000ppm, 2= 2000ppm, 3= 3000ppm, 5=5000ppm
                            // Valid values for Model B: 2= 2000ppm, 5= 5000ppm

#define ABC_FUNCTION    0    // 0= Disable, 1= Enable (For outside use, ABC function should be disabled)                            

int16_t CO2_OffSet   = 0;    // Fine adjust to compensate sensor error (This value should be determined case by case. Values between -50 and 50)

// --------------------------------------------------------------------------------------
//   Define type of Temperature / Humidity sensor
// --------------------------------------------------------------------------------------
#define TH_SENSOR    3       // 1= HTU21D, 2= SHT2x, 3=SHT3x  


// --------------------------------------------------------------------------------------
//   Enable / Disable RF data transmission
// --------------------------------------------------------------------------------------
#define TX_MODE      1       // 0= No data will be transmitted via RF, 1= Transmit Data


// --------------------------------------------------------------------------------------
//   Enable / Disable LCD Display
// --------------------------------------------------------------------------------------
#define LCD_DISPLAY  0       // 0= Disable Display, 1= Enable Display


// --------------------------------------------------------------------------------------
//   SHT31 I2C Address - Default address will work most of the times!
// --------------------------------------------------------------------------------------
#define SHT31_ADDRESS 0x44       // Default value is 0x44, but it can be changed to 0x45

// --------------------------------------------------------------------------------------
//   Debug helper on Serial Monitor
// --------------------------------------------------------------------------------------
//#define DEBUG_PM      // Uncomment for debug help
#define DEBUG_CO2     // Uncomment for debug help

Print this item

Lightbulb They are back!
Posted by: Werk_AG - Yesterday, 21:51 - Forum: WeatherDuino - Info, FAQ's and News - No Replies

The Pro2 Compact receiver and WiFi Wireless Display units are available again!

Also, as a very limited offer, the board for the Air Quality Monitor is now available with 20% discount.

Print this item

  WeatherDuino_P2AT328_RX_v4.0_b001 Compile error
Posted by: atbukc - 17-02-2019, 19:46 - Forum: Software Questions - Replies (4)

Hope someone can help with a compile error I am getting please?
 
WeatherDuino_P2AT328_RX_v4.0_b001
 
I am using a freshly installed copy of Arduino V 1.8.8, all libraries from the Rar archive have been copied to the Arduino library folder, the file will compile ok, until I change the line below in Config_options  to 1
 
 
// --------------------------------------------------------------------------------------
//   Define Software Operation Mode
// --------------------------------------------------------------------------------------
#define Work_Mode         1   // Mode 0= Davis VP2 Emulation Mode, Mode 1= EasyWeather Mode
 
The error relates to the DataFlash library.
 
Some of the error messages below.
 
C:\Users\lotus\Documents\Arduino\WeatherDuino_Pro2\v4.0\software\Receiver Software\WeatherDuino_P2AT328_RX_v4.0_b001\Routines.ino: In function 'int Ext_eepromReadInt(int)':
 
Routines:248:46: error: 'ExternalEeprom_read' was not declared in this scope
 
   value = value | ExternalEeprom_read(address) << 8;
 
                                              ^
 
C:\Users\lotus\Documents\Arduino\WeatherDuino_Pro2\v4.0\software\Receiver Software\WeatherDuino_P2AT328_RX_v4.0_b001\Routines.ino: In function 'void Ext_eepromWriteInt(int, int)':
 
Routines:255:53: error: 'ExternalEeprom_write' was not declared in this scope
 
   ExternalEeprom_write(address, (value >> 8) & 0xFF );
 
                                                     ^
 
Using library DataFlash in folder: C:\Users\lotus\Documents\Arduino\libraries\DataFlash (legacy)
exit status 1
'ExternalEeprom_read' was not declared in this scope


Thanks Andy

Print this item

  my meteorological station Polda.t
Posted by: Polda.t - 17-02-2019, 12:25 - Forum: General Discussion - Replies (5)

Hello.

Finally, I get 9x% done. From buying Auriol Station in Lidl and finding your amazing site, an incredible year. I miss your work because it took me only six months to assemble, revive and test. And I just install it according to your suggestion that I only fix my mistakes and mainly packing into some box. Basically, I followed Mr Hornych's suggestion https://meteo.brandysnl.cz/ and his articles published on https://arduino.cz/ where I took inspiration from the cabinet installation including Raspberry Pi for the CumulusMX program (the finishing is mine weak point). Just learning Linux for Pi took a long time, but it was worth it. The station is reliable and in addition to the upgrade fw, or linux runs completely reliably. As well as the outdoor part). I've fought a bit with AirQualityMonitoring, but it's more like encapsulation, otherwise it's also running reliably.
In fact, everything is running "home" (it's just joy) and I do not have my own domain, however, I host my Synology device on my Synology, including SQL, and I see it out only because the provider has a public IP although it can change at any time. That's why I do not want to present her much. I also had the idea of editing (writing) some www pages for solar charging statistics and their control. But I found it to be a very complicated part that I finally chose a Czech template that fulfilled everything I wanted. In particular, charts for visualizing saved data that interest me. (it's not a problem to learn, but the results come out for a year). I've been able to track down the PWS weather for Android and have everything I wanted from the weather station.

But it's really an amateur weather station, because it's located on the facade of a panel house. On the shoulder arm with a small photo panel and the big two are on the balcony, I could not even push them. Still waiting for me in the summer to push the "rain gauge" away from the house and make the heating for the winter. Also, refine the radiation shield on the thermometer probe and add the fan.
I have greatly appreciated the "forum" where I have been searching for answers all the time about things that I either do not understand or did not work properly, and I have always found the answer. Thanks to everyone who contributes here, it's a great job.
I still attach several photos and the station's www address.

www: http://78.45.185.216/meteotemplate/indexDesktop.php
AQI: https://thingspeak.com/channels/667750

  Polda.t

[Image: rx_raspi.jpg] [Image: wd.jpg]

[Image: tx_1.jpg] [Image: tx_2.jpg]

Print this item

  SHT-31 order experience
Posted by: WetCoast - 15-02-2019, 04:49 - Forum: Hardware Questions - Replies (7)

Just wanted to share an experience I had and ask a question.
I recently ordered an SHT-31D from a seller on eBay but when the parcel came it was not an SHT31D it was an SHT30. I believe that is not the same thing and that the 30 has, in fact, an analog output; not digital. Anyway, I contacted the seller who refunded my payment, so all is good there, but now I have an SHT30 and I don't know what to do with it.

Is there anything I can do to make this thing work? Is it worth the effort?

I'm planning on trying again to order an SHT-31D but was wondering if the 30 could be put to any useful purpose.

Cheers,
Gord

Print this item