Capacitive Touch Button by using ADC channel (the CVD system)


Closed Thread
Results 1 to 40 of 43

Hybrid View

  1. #1
    Join Date
    Jun 2008
    Location
    Milwaukee, WI
    Posts
    37


    Did you find this post helpful? Yes | No

    Default Re: Capacitive Touch Button by using ADC channel (the CVD system)

    Thanks everybody. I love this forum.
    Looks like I will get a 12F1822 for my low pin count micro, and a 16F1823 for my higher pin count micro. I was kind of put off by the lack of examples here.

    Hank, I'm so glad you chimed in. I've been reading your posts about your relaxation osc. and the 16F690 with great interest, and I watched your youtube video. the 690 seemed like an easy way to get multiple channels. I've done a few single channel, relaxation osc, cap sensors using a comparator and a timer in the 16F628A, but I was always limited to 1 channel. Then, I got the 16 channel mux and SOIC breakout board from sparkfun and I made a 16 key piano - thats probably my most fun project yet. I really should post the code, it could be so much better.

    You were up and running in 20 min?!? jeez, what am I waiting for! did you use PBP? 2.6 or 3? or... (shudder) C code? :-) what did you program it with? pickit2 pickit3? I might pick your brain a little more later.

    Thanks again.

  2. #2
    Join Date
    Feb 2011
    Posts
    26


    Did you find this post helpful? Yes | No

    Default Re: Capacitive Touch Button by using ADC channel (the CVD system)

    Max,

    If you like the 12f1822 then you will like the 16f1825 & 1829 -- via newark.com
    May I suggest the 16f1825 @14pins $1.61 and - and 16f1829 @20pins $1.84
    Code:
    PIC16F1825  1,4,20 - 14 dip - 32MHz-31kHz 8k 1kram 256ee 12I/O             $1.61
    PIC16F1829  1,4,20 - 20 dip - 32MHz-31kHz 8k 1kram 256ee 18I/O             $1.84
    The handy image is a cut and paste job from the data sheets
    Attached Images Attached Images  
    Last edited by ofuzzy1; - 8th September 2011 at 05:15. Reason: clarity

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default Re: Capacitive Touch Button by using ADC channel (the CVD system)

    Damn, it's ridiculous how cheap PIC are right now... geez...
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  4. #4
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,115


    Did you find this post helpful? Yes | No

    Default Re: Capacitive Touch Button by using ADC channel (the CVD system)

    Quote Originally Posted by mister_e View Post
    Damn, it's ridiculous how cheap PIC are right now... geez...
    Especially considering what peripherals they do have now...

    Ioannis

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default Re: Capacitive Touch Button by using ADC channel (the CVD system)

    Quote Originally Posted by Ioannis View Post
    Especially considering what peripherals they do have now...
    Badly want a 8 pin USB device...
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  6. #6
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,115


    Did you find this post helpful? Yes | No

    Default Re: Capacitive Touch Button by using ADC channel (the CVD system)

    And may I ask what will you do with the rest 4 pins?

    Ioannis

  7. #7
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default Re: Capacitive Touch Button by using ADC channel (the CVD system)

    USB device are often simple... could be anything... at very least Lots of tranceiver possibilities... IR/SPI/I2C/DMX/MIDI/Serial/RF...DAC/ADC? ICSP? ICD? name it

    Sorry guys to be OT
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  8. #8
    Join Date
    Mar 2009
    Posts
    653


    Did you find this post helpful? Yes | No

    Default Re: Capacitive Touch Button by using ADC channel (the CVD system)

    Quote Originally Posted by Max Power View Post
    Hank, I'm so glad you chimed in. I've been reading your posts about your relaxation osc. and the 16F690 with great interest, and I watched your youtube video. the 690 seemed like an easy way to get multiple channels. I've done a few single channel, relaxation osc, cap sensors using a comparator and a timer in the 16F628A, but I was always limited to 1 channel. Then, I got the 16 channel mux and SOIC breakout board from sparkfun and I made a 16 key piano - thats probably my most fun project yet. I really should post the code, it could be so much better.

    You were up and running in 20 min?!? jeez, what am I waiting for! did you use PBP? 2.6 or 3? or... (shudder) C code? :-) what did you program it with? pickit2 pickit3? I might pick your brain a little more later.
    The 20 minutes on the 12f1822 was probably becuase I'd had to go through the ordeal of getting the 16f690 to work with capacitive touch (& for all even now I'm just one rung up from n00besque territory, back then I wasn't even that!)....and it's not the most beginner friendly! (perhaps it was a rite of passage, to 'grasp' the cap touch basics?!) Seriously, it's incredibly easy to get 4 channel cap touch working on a 12f1822, 16f1824,1827, 1829 etc, what I strongly recommend though is getting the PIC to send info to you PC so you can see the cap module output into TMR1 count

    To your other questions, I was using picbasic V2.6, pickit2 - I'll try & post something soon(ish) to get you started.

    As it goes i was searching the globe yesterday trying to track down a PIC16LF1829 (XLP variant) - nobody seems to stock them, 'microchip direct' do...but they charge about £15 delivery ($23!) - stuff that!
    Last edited by HankMcSpank; - 8th September 2011 at 20:25.

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts