Mister_e had an elegant piece of code that worked flawlessly;
http://www.picbasic.co.uk/forum/show...?t=2671&page=1
Hope it works for you.
Regards,
Anand
Mister_e had an elegant piece of code that worked flawlessly;
http://www.picbasic.co.uk/forum/show...?t=2671&page=1
Hope it works for you.
Regards,
Anand
I remember struggling with a16f690 for a good while wrt cap touch (albeit a different method to the one being discussed here )...I then bought a £1.00 12f1822 & was up and running with cap touch within about 20 minutes!
moral of the story (for me at least) - get the right pic for the task at hand!
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.
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
The handy image is a cut and paste job from the data sheetsCode: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
Last edited by ofuzzy1; - 8th September 2011 at 05:15. Reason: clarity
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.
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.
Bookmarks