help with capsense

PaulS:

    if (totalCap > 500){

digitalWrite(led, HIGH);
    }



Add a print statement in the block. If the print happens but the LED does not come one, you have a problem with the LED.

Once it turns on, though, there is nothing to turn it off until you reset the Arduino. Is that really what you want?

Good point... i do not... the output pin is going to control a tiny mechanically held contact. Basically when the sensors goes over five hundred it should send a 5v pulse to latch the contact.. and the next time the sensor goes over 500 the output pin sends another 5v pulse to unlatch the contact.

Thanks for the code bit too!!!