(solved) Help needed with touch sensors

I’m making a turn table and i’m using touch sensors to activate the motor (and lights) and I want to make it so when you tap the sensor once the motor turns off and when you tap the sensor twice in 1 second then it turns the motor off but I have no idea how to do this so if someone can help please tell me and here is the code (if you need it) :slight_smile:

TurnTable.ino (550 Bytes)

Why do you need the double tap? If the motor is off when you detect a tap, turn it on, otherwise turn it off.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.