Regarding the touch electrodes: You can find more info about them in this page. But for test, i made a simple panel with 4 touch buttons made of aluminum foil:
I use a piece of aluminum foil and a piece of plexiglas
First, i cut 4 pieces of the foil, about 1 by 2 cm each
Then, i cut a larger one that completely covers the plexiglas. Notice that i left a long strip to connect the alligator
I glued this piece on one side of the plexiglas (notice the long strip for the alligator)
On the other side, i glued the 4 strips. Half of them on the plexiglas and half remain floating for the alligators
This is how the alligators are connected.
The 4 alligators from the electrodes goes to the 4 inputs, the one from the larger piece goes to ground
A piece of glass is placed ontop
It is more than simple to make a capacitance touch electrode, and it is more than fun to make the artwork. Between the glass and the electrodes, any insulating material can be used, like for example paper. I used a piece of thick paper with 4 buttons drawn:
Instead of glass, you can for example use plexiglas or any other plastic material, or wood, with the drawings engraved on it. Any insulating material will do, always preferring those with high dielectric constant.
Multitouch!!!
Yes, indeed, multitouch! No matter how many electrodes you "touch" the circuit will normally work. You can use as many fingers as you like :D.
One button touched
Two buttons touched
Three buttons...
One finger to touch them all, one ring to rule them all.
Applications for this? Simply, numberless. Imagine that you can make a 4 by 4 surface with 16 (4x4) touch electrodes and have a multitouch pad! Or add more PICs to have larger areas, or use matrix techniques to have an 8 by 8 matrix with one PIC, or 16 by 16 with two... It is so amazing, and it is dead cheap as well!
At 20 November 2015, 1:52:18 user sachin wrote: [reply @ sachin]
I am using pic16f722a and i am facing problem in capsensing can you send me this code in c.[/b]its urgently needed.and i want to also understand what exactly happens when suppose a pin is touched.
can i write code as after initializing timer base.
TRISB=0;
if(RB0==1)//cap sensing pin
{RA0=1;}//glowing led
if (RB1==1)//same as above
{RA1=1)//same as above.
what should happen if a capsense pin is touched is the voltage on that pin is high.i may be asking stupid questions but please reply....
................please help urgently my email id is "sachindivekar1989@yahoo.com"
At 10 October 2014, 9:55:46 user Oguz wrote: [reply @ Oguz]
Mr.Lazaridis Hi, I just know how to use jalv2. Asm code convert jalv2 kindly to you? Thank you for your help.
Thanks for your extensive explanations and example videos. Very well done!
When reading Microchips app.notes, they say that in general you make sure GND is not close to your sensor plate, but you choose to put a ground plane on the bottom side of the board. Which makes a relatively big capacitor of every button. Relative change will be less as compared to, say, only a grounded ring around your button.
What made you decide to do so? Was sensitivity to high and did you need to make it less sensitive, or why did you do this?
[reply @ Giorgos Lazaridis],,,,,
i know the code is in assembly language but i need the code in C & i am using pic16f1939 i dont know ho to fix the timer in C so please can you send me...
thankyou
harshu...:)
please give me the embedded C code for this program.I am facing lot of problem reading assembly level code and i am using PIC16F1939 so please tell me how to fix the timer and also how to use two timers in the program
@Muhammad Awais Tahir The reason for this is probably the threshold setup. Different touch pads have different capacitance, and even if you move them to another position they change their capacitance (due to the cable). First of all, when you change anything to the touchpad (position, wire, etc) you need to restart the program so that it reads the starting capacitance. And second, you may need to change the threshold values of the touch pads (PressThreshold_H,PressThreshold_L and ReleaseThreshold_L)
I'm experiencing a strange behavior. I just kept the CapCheck4 (associated with CPS0) , and removed others just to understand how it works. I've connected an LED to the relevant output port to test the touch. Now, when I connected my touch pad with CPS0 or CPS1 the LED just remains ON whether I touch the pad or not. But, it behaves exactly how it should when I connect the touch pad with CPS2. I'm quite confused on why its working correctly with CPS2 rather than CPS0, and why the port turns ON when I plug the touch pad into CPS0 or CPS1.
At 25 April 2012, 10:01:05 user mina wrote: [reply @ mina]
@Giorgos Lazaridis
thanks a lot for your answer but i have a question have you ever used the EUSART of 16f1937 because i need to send data to the PC with rs232 .
@Muhammad Awais Tahir first of all, it will be extremely sensitive, so you may need to alter the software variables for sensitivity. Additionally, it is good to cover with some sort of coating the button, since PICs are sensitive to ESD, so a direct touch to an input from a heavily charged body could destroy the port, or reduce its lifespan radically.
Thanks for your reply to my previous query. If I make the touch-sensor using PCB, and I do NOT cover it with plexi glass or any other material what difference would it make?
At 16 April 2012, 16:18:35 user ion wrote: [reply @ ion]
@Giorgos Lazaridis
I know that. Was mine too
Happy easter and keep looking for easter eggs .... maybe you find a rectangular shape one .... but not BOILED :)
If you did behave, for sure easter bunny will visit you :) ....
@ion we had easter this weekend, so it might take some more days to arrive.
At 16 April 2012, 14:56:46 user ion wrote: [reply @ ion]
@Giorgos Lazaridis
Thank you
The package it is with the post office in Grece acording with my tracking
You will get it soon
You can track it also, because you have the number and link.
Regards
Ion
@ion I knew it :D
Changing the size to bigger will increase the capacitance radically, due the increment if copper area. That is why i state (somewhere) that it is rather difficult to make proper touch-pads. Anyway, it will not be that simple to change the capacitance channels. It will need a lot of changes in the ISR routine. I really do not remember by heart the code since it is rather old.
At 16 April 2012, 14:29:41 user ion wrote: [reply @ ion]
@Giorgos Lazaridis
Thank you Giorgio.
In fact i changed the the size of the touch pads.
I put back the old ones and works OK
As a questions, if i just change the start point from cpscon1 from 00000000 to 00001100 will be suficient to let me use chanel 12 to 15 ?
Thanks
Ion
@ion i think that the problem is that you radically changed the shape or size of the touch pad, which changed the quiescence capacitance and this makes the output oscillate. Before you do anything else, try to change the parameters:
PressThreshold_H equ b'00000000'
PressThreshold_L equ b'00010110'
into something bigger, for example the PressThreshold_L make it b'00110110'
At 14 April 2012, 0:12:38 user ion wrote: [reply @ ion]
I had this project working fine for a while
Then, maybe because due to my messy table, something happen.
I do not know what
Except CPS3-RB3 which works fine, all other channels flicker fast between 0 and 1.
I do not have a scope because i am in China now, but i can see on my LCD.
What do i have to do to move all the channels to CPS12 to 15
I am not good at all in assembler , so a good working example will be the best.
Thank you
Ion
@Muhammad Awais I'm almost sure that this program wont work on the pic you mention. I do not have a clue though regarding the changes that have to be done, since i've never worked with the pic you mention.
As for the SR latches, do you mean the Tmr0 trigger latch? I use it for this program, and if you do not use it then this will not work at all, since the tmr stops from the latch.
Thanks for posting this. I'm planning to use PIC16F1519 as it comes with 28 cap touch channels, need I make any significant changes to the programming?
@Jeff I think there are people that have already make this circuit and burned the hex code and worked properly. Why you ask? Did you face problems uploading it?
At 19 February 2012, 6:20:55 user Jeff wrote: [reply @ Jeff]
Hii...is the hex code given is correct ?
and if i do the cicuit and burn that hex code directly to ic..will it work ?
At 28 October 2011, 3:37:08 user veroo wrote: [reply @ veroo]
Hi.
Dear Kammenos.
I did your instructions ( click on the menu project>built options> and then appears "No Active Project". After star a new project and paste the program then follow again your instructions ( project>built options>
project> and "disable case sensitivity" ) but now not appears "Quickbuild" option.
@veroo Click on the menu Project -> Build options... -> Project.
The "Buld options" dialog appears. Go to the tab labeled "MPASM Assembler" and make sure the checkbox "Disable case sensitivity" is checked. Then, click "Ok".
At 27 October 2011, 3:57:22 user veroo wrote: [reply @ veroo]
Hi:
Dear Kammenos.
I already download the MPLAB IDE sofware and found the device pic16f1937, and open the .asm file to edit only to practice, but at the moment of compile the file appears me a list of erros in each one it says Symbol not previously defined.
@Giba go here:http://pcbheaven.com/circuitpages/10_buttons_touch_pad_bcd_output
and change the code to work with 16 buttons
At 16 August 2011, 3:08:20 user Giba wrote: [reply @ Giba]
Hi,
I am student of Electrical Eng. and my team will have that do a keyboard with touch sensor. Could you send us the programm of touch sensor with 16 ports?
Thanks for the great explanation. You save my time from reading the pic manual and application note again n again. I have seen some of your youtube videos. Great work! Keep up your work. Thank you..
Manish, the change must be done in hardware to make it toggle. Regarding the LED dimmer, this is not that simple. You need to use the PWM output of the PIC and find a way to make the interface. I will make one more circuit, a capacitance touch sensor without microcontroller, and i will not work any more with touch sensors, unless i really need something. As a matter of fact, i did this research to prepare some interface for my coffee machine.
At 12 February 2011, 20:54:33 user Manish wrote: [reply @ Manish]
Very nice design,but with this circuit can we make the toggle switch with some external componant & switch on & off any equipment with the help of relay, If possible please upload the schemetic or videos.& also with this can we make the 1 watt LED light dimmer circuit, if possible plz upload the details. Thanking u........
geia sou file mou.
poli orees oi kataskeues sou kai mpravo.
ama itheles tha sou elega na ta anaivazeis kai sta ellinika kai ta video kai tis perigrafes...gt opos xereis edo sti ellada den eimaste sainia sta agglika..
me endiaferei poli auto me ta Capacitance Sensor eidika to allo poy eida xtes pou epiane piso apo to plastiko.
ama itheles na ta exigisis ligo sta ellinika tha me voithouse poli.
se euxaristo poli.