Page 1 of 1
Capasitive key Pads
Posted: Sat Jul 13, 2013 11:16 am
by jollybv
Hi Guys
I am wondering will flowcode be come out with a capacitive keypad 12 x 3 modual ? and has anyone out there made a capacitive keypad using a pic ? if so is there any examples of flowcode. What is a good Pic to use for this which flowcode supports.
Best regards
Brian
Re: Capasitive key Pads
Posted: Sat Jul 13, 2013 11:56 am
by kersing
Have checked the messages in
this thread? (Found by using the search option in the top right of this page)
Re: Capasitive key Pads
Posted: Sun Jul 14, 2013 8:02 am
by jollybv
Hi thanks
will check it out
Re: Capasitive key Pads
Posted: Thu Jul 18, 2013 5:01 am
by jollybv
Thanks have
checked the thread out but don't quite understand what is going on what im trying to make a capactive key pad (3 x 4) (0-9 * & #) What i would like to do is when the relevant key is pressed e.g 1 it must send Char 1 via uart and print to LCD im not sure how to implement this in the sample code (CapTouch_pressure) to test and is it possible to simulate in V5 please help
Brian
Re: Capasitive key Pads
Posted: Fri Jul 19, 2013 11:25 am
by jollybv
Hi guys
I have modified the CapTouch example to expand to 10 input's but I'm not sure if i have done it right as all i get displayed on the LCD screen is a lot of 1 and no change if i touch the pad.
Brian
Re: Capasitive key Pads
Posted: Fri Jul 19, 2013 12:53 pm
by dazz
Hi
i have added a variable called dave that will give you the numbers required, to simulate simply drag the input from 0 to 255 then back, don't go clockwise, just click between max and min points in sim
Regard
Dazz
Re: Capasitive key Pads
Posted: Sat Jul 20, 2013 9:05 am
by jollybv
Thanks a lot for your help
Re: Capasitive key Pads
Posted: Tue Jul 23, 2013 9:12 am
by jollybv
Hi Dazz
Have changed the program (not sure if i did it right) so it displays 0 to 9 * & # but im not sure how to simulate it so when i touch a key it represents the no e.g (touch 1 it must give me a 1, touch * it must give me a * ) as it is now it displays all the numbers how can i change this to only display the relevant key when pressed.
Brian
Re: Capasitive key Pads
Posted: Wed Jul 24, 2013 3:49 pm
by Creative25
Hi
I think there is a serious problem with this code.
I think at the place the calculation for the dave variable was it will alway give a positive number for every Key if it is pressed or not. I recommend you take the calculation out of the Macro for Capacitive touch sensing,
Also you need to clear the part of the screen where the key is displayed else it will not clear a key that is no longer pressed.
I do not know how to simulate it in flowcode, since it only shows one ADC.
I have tried to modify the code. To make it work but have not tested it on Hardware.
Please note some caracters may not be correct I am using flowcode on a mac, and have not figured out how to change the Language of the keyboard.
I am not an expert but I hope the modifications I made will be helpful
Best Regards:
Uli
Re: Capasitive key Pads
Posted: Wed Jul 24, 2013 8:04 pm
by Creative25
jollybv wrote:Hi Guys
I am wondering will flowcode be come out with a capacitive keypad 12 x 3 modual ? and has anyone out there made a capacitive keypad using a pic ? if so is there any examples of flowcode. What is a good Pic to use for this which flowcode supports.
Best regards
Brian
Hi I used A pic 16F1939 And also a pic 12f1822 Both of them are working well.
Best Regards:
Uli
Re: Capasitive key Pads
Posted: Sat Jul 27, 2013 7:52 am
by jollybv
Hi guys
I'm really battling with this cant figure out how to simulate this code what I'm trying to do is display the relevant key when pressed and clear it when not pressed i have only put the first 5 keys in this example 0 to 4 but still cant get it to simulate is there anyone out there who can help
Brian
Re: Capasitive key Pads
Posted: Sat Jul 27, 2013 11:04 am
by Creative25
Hi
There are several issues with your code.
At the beginning of the macro you have to put "sum=0"
Sot it will calculate properly.
Secondly the go to command makes the code to repeat without setting the curser tho the right place for diplay so it makes your whole display to show one number.
Since you have move the last formula of the macro before your display macro else there is no value to display.
I have Changed your code a little.
And I think it will work on real Hardware.
Take note when you have real Hardware you need to change the formula "If .return>value " to "If .return<value".
If a button is touched then the value read by the ADC decreases.
It can not simulate properly yet but if you change the above formula you can see that the values change.
Can someone tell us if it is possible to simulate ADC raw channel with flowcode?
Best Regards:
Uli
Re: Capasitive key Pads
Posted: Sat Jul 27, 2013 3:07 pm
by jollybv
Hi Uli
Thanks for your help again, I am not sure how the ADC conversion works as i cannot see in the simulation lets see if someone can tell us how to simulate ADC raw conversion.
Brian