Welcome to SODAQ

Welcome to this forum.
For our privacy policy check here: http://forum.sodaq.com/privacy

The SODAQ Team

2 Likes

Can any one share the code for Air Quality sensor.
For the Air Quality sensor … i uploaded code from below site.
My board is Sodaq autonomo, i have connected this sensor to A0.
http://www.seeedstudio.com/wiki/Grove_-_Air_Quality_Sensor

but it didn;t compile and gave error at this part
ISR(TIMER2_OVF_vect)
{
if(airqualitysensor.counter==122)//set 2 seconds as a detected duty
{

    airqualitysensor.last_vol=airqualitysensor.first_vol;
    airqualitysensor.first_vol=analogRead(A0);
    airqualitysensor.counter=0;
    airqualitysensor.timer_index=1;
    PORTB=PORTB^0x20;
}
else
{
    airqualitysensor.counter++;
}

}

Can anyone help me out with above code ? Or just a post a code, which works for Air Quality sensor v 1.3

I am using sodaq autonomo board.
thanks for your input.

Regards,
Barani !