Capacitance: Toggle Brightness

Arduino, Code
/
Some code for toggling the brightness of an LED using the Arduino capacitance touch library. For further information about using capacitance sensing with the Arduino see this related post. If you want more states, change the variable states (line 9) to a higher number and add additional if...

Capacitance Touch Library

Arduino, Code
/
The CapTouch library for the Arduino allows you to use large resistors (1M-10M) to create simple capacitance sensors that can be used like buttons or to create more complex sensors like wheels and stroke sensors.  Official documentation of the library can be found here.  While the library works quite well,...