How do I wire a CO2 sensor and program it using a boe bot
jjpnyfan
Posts: 7
This is for a project at my school. Its crunch time and I have no idea how to do it. Any help is appreciated. I am using a CO2 sensor module and I need to know how to wire it and I need a program. I am using a boe bot. Thanks. Pictures or any help would be great.
Comments
CNTL and ALM get connected to Stamp I/O pins. CNTL is an output from the Stamp while ALM is an input to the Stamp. Remember, if you use a separate power supply for the sensor, any ground has to be in common with the Stamp's ground (Vss).
You turn on the heater by doing HIGH <pin> for the I/O pin for CNTL. You turn off the heater by doing LOW <pin>. You check whether the CO2 level is over the threshold by testing IN<pin> for the I/O pin for ALM. Read the sensor documentation for further information.
If you don't know how to program a Stamp, you'll have to go through the "What's a Microcontroller?" tutorial and the "Robotics for the BoeBot" tutorial. Both are downloadable from Parallax if you don't already have them. I think they're both supplied with the Stamp Editor in the help files.
Thanks for your help the battery booster module should arrive at my house today so I will update you with the results I get. I will also post a video to my next thread.