GE T6603-5 CO2 sensor Arduino sketch
Code:
/* |
Quote:
To do that you begin your box with: left-square-bracket, then the capital letters CODE, then right-square-bracket. Your code goes in between... Then you end your CODE box with: left-square-bracket, then forward-slash, then the capital letters CODE, then right-square-bracket. You could even edit your post to put your code in a code box. Code:
it will look look this. -AC |
Thanks A/C,
My bedroom went from about: 450ppm to about 800ppm, overnight. back down to about 480ppm @ 2PM Getting this sensor working was Royal PITA, they can be bought on Ebay about $50 but I couldn't find any code using them. They have I2C on pins 1 & 2 but couldn't find any specifications or examples for use. I found some code that is suppose to work on Github "T6603" but it won't download as my Imac is too old to run latest Safari. So I copied & pasted the .cpp & .h code still won't compile for me possibly it's Python. I don't understand the source code. I plan to include this CO2 detector as part of my DIY HRV controls that I'm building from coroplast, thanks to A/C's thread. |
My HRV will pull stale air from 3 bathrooms + Greatroom.
Fresh incoming air will dump into mechanical room -> greatroom, then circulated to rear closets in 3 bedrooms. 4x Panasonic FV-11VQ5 110cfm, high Eff. ceiling ventilation fans. Each has a timer wall switch for on demand needs. These provide stale air into HRV. 4x PIR (Human IR motion detection sensors) input to Arduino. If PIR-1 detects someone, Arduino energizes R-1 for 8hrs. (time adjustable) During this 8hrs a mechanical timer (adjustable) will turn F-1 on intermittently (say 15min on & 45min off) This is replicated for: PIR-2, R-2, F-2 : PIR-3, R-3, F-3 : PIR-4, R-4, F-4 This elemonates wasting energy to automatically ventilate any section of house where people haven't been lately. I expect that 2 bedrooms/bathrooms will have very little use except when family comes to visit. I have this code working on Arduino. BTW, there is only 1 mechanical timer, it energizes a 4-pole relay so that the 4 exhaust fans are independant of each other. |
Quote:
I have gas appliances in my house and since my infiltration jihad, CO2 levels have become a problem. I wouldn't have known were it not for my CO2 project. I had a terrible time trying to convince S_Hull that I actually had a problem with CO2 levels. I guess he never lived in a tight house. CO2 can be a problem, as we know. I actually think that 800 ppm is a bit high for a bedroom. I think that once you get your HRV going, you'll sleep better. So you couldn't find any libraries for your project? No I2C libraries? How did you get it working? -AC |
It seems to be working with the pulse duration on pin 5, read preface to code above.
|
If you go back to GITHUB you will find an examples link that will give you a working example of Arduino code, T6603Example.ino
Here it is: Code:
/* #include "SoftwareSerial.h" #include <T6603.h> one of them is T6603.h which is also at the GITHUB page, and is shown here: Code:
/* Code:
/* The idea is that if you go to your Arduino IDE installation, and drill down, you will find a folder called libraries. You'll probably see a few libraries in there already. So you make a folder by the exact name of the library being called, and you put the library-code file by it's exact name into that folder. You need to have all called libraries available when you compile, in this case you are compiling T6603Example.ino. Is life any easier now? -AC |
Quote:
|
A/C Thanks but that is the same code that I tried to get working for 2 days.
from my post #3 above: "I found some code that is suppose to work on Github "T6603" but it won't download as my Imac is too old to run latest Safari. So I copied & pasted the .cpp & .h code still won't compile for me possibly it's Python. I don't understand the source code." sketch_apr03a.cpp.o: In function `__static_initialization_and_destruction_0': /Users/jamespatrick/Downloads/sketch_apr03a.ino:24: undefined reference to `T6603::T6603()' /Users/jamespatrick/Downloads/sketch_apr03a.ino:24: undefined reference to `T6603::~T6603()' sketch_apr03a.cpp.o: In function `loop': /Users/jamespatrick/Downloads/sketch_apr03a.ino:32: undefined reference to `T6603::get_co2()' sketch_apr03a.cpp.o: In function `setup': /Users/jamespatrick/Downloads/sketch_apr03a.ino:28: undefined reference to `T6603::begin(unsigned char, unsigned char)' |
1 Attachment(s)
http://ecorenovator.org/forum/attach...1&d=1397957512
A/C did you try to compile that code you linked? "Is life any easier now?" Got little LCD working with my CO2 sketch |
All times are GMT -5. The time now is 12:38 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Ad Management by RedTyger