Jump to content

Search the Community

Showing results for tags 'Capacitive touch library'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News
    • Announcements
    • Suggestions
    • New users say Hi!
  • Spotlight!
    • Sponsor Spotlight
    • Sponsor Giveaways
  • Energia
    • Energia - MSP
    • Energia - TivaC/CC3XXX
    • Energia - C2000
    • Energia Libraries
  • MSP Technical Forums
    • General
    • Compilers and IDEs
    • Development Kits
    • Programmers and Debuggers
    • Code vault
    • Projects
    • Booster Packs
    • Energia
  • Tiva-C, Hercules, CCXXXX ARM Technical Forums
    • General
    • SensorTag
    • Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
    • Code Vault
    • Projects
    • Compilers and IDEs
    • Development Kits and Custom Boards
  • Beagle ARM Cortex A8 Technical Forums
    • General
    • Code Snippets and Scripts
    • Cases, Capes and Plugin Boards
    • Projects
  • General Electronics Forum
    • General Electronics
    • Other Microcontrollers
  • Connect
    • Embedded Systems/Test Equipment Deals
    • Buy, Trade and Sell
    • The 43oh Store
    • Community Projects
    • Fireside Chat
  • C2000 Technical Forums
    • General
    • Development Kits
    • Code Vault
    • Projects
    • BoosterPacks

Calendars

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Location


Interests


Sparkfun


Github

Found 1 result

  1. 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_0 uint8_t state = false; uint8_t k = 0; CapTouch PRESS = CapTouch(BOTON, TOUCH_BUTTON); void setup() { pinMode(RELEE, OUTPUT); digitalWrite(RELEE, 0); } void loop() { while(k < 10) { if(PRESS.isTouched()) { k++; } else { k = 0; } } if(k = 10) { state = !state; digitalWrite(RELEE, state); delay(1000); k = 0; } } Another question. Can I measure time intervals with millis() using functions of this CapTouch library? Because I want to use millis() and send the number with Serial but it only works if I pulse the sensor. I hope you can guide me. Thanks lordcape
×