Capacitive touch with a B6TS IC

I'm hoping someone can help me, I've built a circuit on a breadboard with a B6TS-04LT IC which is for capacitive touch. I've got it working correctly with LED's being turned off when the sensors are touched so I know the circuit is fine...

What i want to do now is replace the LEDs with wires to my Arduino Dueminalove to detect the input, I've been playing about but have had no luck. Any help you can offer would be great!

Cheers :slight_smile:

FYI: I followed the instructions here at www.ece.osu.edu/~anderson/Touch_Sensor_Project.pdf (my breadboard looks like page 18) for the B6TS

Alternatively, I also have the QT113 IC's which can be configured like this www.instructables.com/id/DIY-Touch-Sensor/ - I don't know if they'd be easier to use? I noticed there is an example in the library for another Qprox touch sensor but I've had no luck.

All you need to do is to connect the pin that went to the LED to the arduino input pin and the ground to the arduino ground. Enable the internal pull up resistors by doing a digital write high to the input pin you are using.

Make sure the battery is 5V or replaced by the 5V rail of the arduino.

Cheers Mike, I got it working fine using the below code - it was the pull up resistor I hadn't used that stopped it working.