I've checked grounds multiple times and this one is really stumping me. I've tried all different parameters for the library including the series resistor, sampling rate and frequency modes. Fan and built-in led cycle on/off randomly at 0.5sec to 2sec intervals. BUT, when I disconnect the USB cable from the Trinket and touch the sensor, everything goes unstable. The circuit and code work great when the USB cable from my laptop is connected to the Trinket. The 12Vdc also supplies power to the small computer fan ( uses about 200ma) I am using a small 12VDC wall transformer (1.25A) and then a DC-DC converter to output 5vdc for the Trinket on the BAT in. Using a FET on the digital output A2 to turn a fan on or off when the foil is touched. View topic - Help with using Adafruit_FreeTouch library on SAMD21 I modified the code to use the A0 input as a touch sensor with a wire and aluminum foil.Also used the example code found here Adafruit customer service forums I am using a Trinket M0 with the Arduino IDE with the Adafruit_FreeTouch.h library. Note that to get to this point, I used much of the helpful information from the Post How to use capactive touch on Adafruit board in Arduino mode? Mikeo Asks: Capacitive touch on Adafruit Trinket M0 goes unstable when USB cable from laptop is disconnected
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |