Hello Arduino Community,
I'm currently using my Arduino to detect capacitive inputs via the digital pins. I'm trying to code a Turbowarp project that can detect a USB signal when the Arduino detects an input. I figured out the capacitive code, but I've been struggling figuring out a way to get my ancient 1st gen UNO to communicate with the computer, since it doesn't have USB support.
I ended up settling with using a MakeyMakey as an in-between for this. The MakeyMakey has keyboard support, and I checked, and the ground pin from the Arduino will activate the buttons from the MakeyMakey. The only problem with this is that the Arduino can't use its ground pin to communicate, since its a constant ground.
My question is, and this may be really easy, but how would I get a data pin to act as a ground connection, but only when I want the MakeyMakey to send a signal to my Turbowarp project?
Edit: Thanks to everybody that helped me find a solution to the problem. With my available resources I ended up making a system that works.
SOLUTIONS:
1: Use a separate capacitive chip:
Link for product provided by Grumpy_Mike:
Another simple alternative for short time periods:
The Makey Makey Go is another great way to have capacitive sensing and keyboard support in one, flashdrive sized board.
2: Using a MOSFET / Transistor, set up a switch that completes the circuit when a Digital Pin on the Arduino supplies voltage:
If anybody needs a tutorial for wiring up a MOSFET properly (like I did lol):
Both of these solutions will work for capacitive inputs. A Turbowarp (or Scratch) project can read the USB Keyboard signal and act according to the key it receives.
Bonus: If you use the capacitive chip with a USB HID capable Arduino, you can skip needing a Makey Makey at all! I'm not sure how to do this, but i'm sure there's some great documentation on it somewhere!
Thanks again so much to the helpful people of the Arduino Forum for making this possible!





