Search the Community
Showing results for tags 'Capacitive touch library'.
Hi. I'm using the capacitive touch library for my project of a touch-lamp. The code is very very simple. The idea is scan if the capacitive pad is touched and then activate a relee to drive the lamp. If you touch the pad again, the relee goes off. It works very well at beggining but after one day more or less the relee starts to oscillate. The lamp goes on and off until I reset the MCU. I think that is related with the mode that the library measures capacitance but I don't know. Here is the code: #include <CapTouch.h> #define BOTON P2_0 // Capacitive Sensor in a PCB. #define RELEE P1