That’s my concern too. Detecting touch as shown in the linked article is possible but doing so reliably with low rates of false positives/negatives may not be as simple as swapping out current button press code with the one from Arduino Playground - CapacitiveSensor.
Interesting, I coded something similar ages ago for pic micros that could detect your hand up to a good 6 inches away. The problem was it needed to be manually calibrated for each sensor. I intended to add an auto calibration routine but never got around to it as it wasn’t high on my priority list.
Latest challenge, how to do the damn power switch. I might have to make code that auto-sleeps and wakes up every few seconds to check if the buttons are pressed. Should I put a bounty out on the auto-sleep routine?
Actually since the battery will be hard wired to the chip, even if I went with “its only on when it’s charged, and you can’t turn it off” then theoretically the battery could continue to be drained from the voltage pump in the OLED. The chip should be protected by its low voltage cutoff, but the screen does really weird things when it’s out of spec.
I had actually developed an ability to use a hardware interrupt pin and balanced it with a 1M ohm resistor to the skin and had a voltage pad so you could pinch your fingers to complete the circuit. But I really don’t want to craft that up again. I might have to.
It just hit me, it’s a little hacky but I could just make 2 external contact points that I connect from the outside with a bit of copper tape or maybe some conductive ink, when im done just take it off. That’s probably what’s happening here.
I dont think the switch will survive the epoxy, the epoxy might flow into the internals, or actually finding a way to properly mask off the switch and have it be on the exterior of the part would be very difficult with the mold I’m using.
Not a bad idea but I almost kind of prefer to not have the mechanical switch in a way? Still not sure how I could mount it. Maybe if I make a small cavity in the mold to position the switch? Maybe the power switch is just sort of recessed like it is on the actual arduboy?
The sleep routine is the best in my mind as it makes the hardware more simple.
It’s almost the visual aspect o having the switch. It’s just another thing you see with wires going to it.
I’m pretty sure I’m also going to make a version without a battery just so it’s even more clear. I guess I hadn’t considered just adding a usb port, which would for sure need to be sealed. Be great if I had a waterproof one hanging around.