Need a cheap touch sensor idea.. here it is


Closed Thread
Results 1 to 21 of 21

Hybrid View

  1. #1
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    704


    Did you find this post helpful? Yes | No

    Default Any ideas???

    Hi all,
    Currently, I'm working on a project where it would be nice to have a cheap touch sensitive switch. So, I looked at mister_e's entry about a touch sensor. I think it's a very clever idea, but there is a problem I can't make it work. I'm using a pic16f84 at 4 MHz, the same frequency that uses mister_e's pic. I have tried different combinations of resistors and I have added some capacitors but still it doesn't work.
    When using an oscilloscope I can see the input signal at the input ports goes lower when touched by a finger but apparently not low enough to read a zero.
    Does anybody have any ideas on how to make this work? Probably adding an op-amp would do the job. Thanks.

    Robert.

  2. #2
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Hello Robert,
    Well we know it will not work without changing a few things for the 16F84, so post what you have and let's look and see. Open a new thread in PBP so as not to hijack this example thread.
    Last edited by Archangel; - 17th March 2009 at 07:13.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,172


    Did you find this post helpful? Yes | No

    Default

    Do NOT put extra capacitance at the inputs beside the sensor itself.

    Even the Osc. probe will load inputs.

    Maybe play with the 22k resistors. Also good idea would be to compare spcs of the two PIC's.

    Ioannis

    P.S. If necessary, admins move this message to keep thread clean. No problem.

  4. #4
    Join Date
    Oct 2005
    Location
    New Zealand
    Posts
    171


    Did you find this post helpful? Yes | No

    Default

    What a great idea, is it working reliably - I have a device I need this sort of thing for, pref very cheap with little extra in the way of components, did rsocor01 ever get it running? He didnt mention it on his other thread. Just wondering. would higher value resistors and a longer charge period help with the sensitivity?

    I need this unit to be fairly reliable, is it likely to do this if set up right? Hopefully will be mass produced. Most commercial capacitive systems take a running average and are constantly resetting their zero point to allow for atmospheric conditions etc dont they?

  5. #5
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    704


    Did you find this post helpful? Yes | No

    Default

    George,

    No, I never got it to work the way it's explained in this threat. The way to go is with the series PIC16F72x. They work great. Refer to the threats started by byte_butcher about his project. That should help you.

    Robert

  6. #6
    Join Date
    Oct 2005
    Location
    New Zealand
    Posts
    171


    Did you find this post helpful? Yes | No

    Default

    Hey I tried it and got it going really well, i changed some values to make it more sensitive (I don't have much space available for the pad) ie - changed the resistor to 100K and put a 1ms delay in on the charge, through a 3mm sheet of glass a sensor pad size of down to 6mm x 6mm worked reliably. This was using a 16F676 @ 4MHz. Why is rsocor using a 16F84? I cant even understand why they are still being made and so popular, they are just junk along side the more modern chips.

    Thanks Mister E for such a great idea, I think as long as I tune the sensor pad size/resistor it should be pretty reliable as I've had no issues with it yet and it worked first time.

  7. #7
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by George View Post
    Why is rsocor using a 16F84? I cant even understand why they are still being made and so popular, they are just junk along side the more modern chips.
    There are dozens of books, hundreds of instructors who recommend them. They work out of the box with default configs, no A/Ds, No Comparators, perfect choice for that first PIC. Remember George, newbies often know absolutely nothing about PICs, and these chips offer the easiest way to get started without getting tripped. Move up to 16F628A / 648A, adds comparators and memory and timers, same footprint, 1 brick at a time, is how a wall gets built. But yeah, for the experienced programmer, to much money too little chip.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

Similar Threads

  1. Any Ideas for a cheap touch sensor??????
    By rsocor01 in forum mel PIC BASIC Pro
    Replies: 17
    Last Post: - 19th October 2013, 01:33
  2. Touch screen 4-wire interface
    By Demon in forum General
    Replies: 6
    Last Post: - 31st December 2011, 19:02
  3. Relaxation oscillators (for capacititive touch sensing)
    By HankMcSpank in forum mel PIC BASIC Pro
    Replies: 24
    Last Post: - 6th December 2009, 23:03
  4. touch switch dimmer
    By helmut in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 18th August 2007, 12:25
  5. Touch Screen Wish List!!!
    By Amity in forum PBP Wish List
    Replies: 2
    Last Post: - 15th September 2005, 15:40

Members who have read this thread : 0

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