dany_mar24 2 Posted March 11, 2013 Share Posted March 11, 2013 Hi, i was trying to use the capacitive library with the g2231 but i cant get it to work, did someone has tryed to do it? i found a blog in the internet where they cand do it with ccs so its possible to do it but someone knows if it can be done with energia? Quote Link to post Share on other sites
gwdeveloper 275 Posted March 12, 2013 Share Posted March 12, 2013 I'm pretty sure you'll need to use a 2452, 2553 or a 20 pin equivalent to use the cap touch booster. Never seen it done on the 2231. Edit: izdane 1 Quote Link to post Share on other sites
dany_mar24 2 Posted March 12, 2013 Author Share Posted March 12, 2013 look at this page, the creator makes a capacitive touch sensor with a 2211 and i try it with a 2231 and it works, but im having a lot of trouble with the uart, so i want to kind of port it or make a new sketch with energia http://dbindner.freeshell.org/msp430/cw.html gwdeveloper and roadrunner84 2 Quote Link to post Share on other sites
cde 334 Posted March 12, 2013 Share Posted March 12, 2013 All msp430's support the RC_PAIR_TA0 type cap sensing with TI's cap sense library. It uses a timer, two digital pins, and a resistor. Quote Link to post Share on other sites
chibiace 46 Posted March 12, 2013 Share Posted March 12, 2013 msp430g2232 Quote Link to post Share on other sites
roadrunner84 466 Posted March 12, 2013 Share Posted March 12, 2013 Oh! This is a very nice lab! oPossum 1 Quote Link to post Share on other sites
dany_mar24 2 Posted March 12, 2013 Author Share Posted March 12, 2013 yep its a nice experiment, but this is really hard to make in ccs, so i will try to do it with energia :grin: Quote Link to post Share on other sites
roadrunner84 466 Posted March 12, 2013 Share Posted March 12, 2013 Why so hard? A lot of the code is given already, and you may find the entire LAB code on the web. Quote Link to post Share on other sites
energia 485 Posted March 13, 2013 Share Posted March 13, 2013 Hi, i was trying to use the capacitive library with the g2231 but i cant get it to work, did someone has tryed to do it? i found a blog in the internet where they cand do it with ccs so its possible to do it but someone knows if it can be done with energia? It seems that you are trying to use both CapTouch and Serial (UART) at the same time. The 2231 only has one timer, TA0. Both the CapTouch library use TA0 hence you can not use them both at the same time. Quote Link to post Share on other sites
roadrunner84 466 Posted March 13, 2013 Share Posted March 13, 2013 You must alternate them, the cap touch LAB stresses that any signal (especially serial lines) should be kept quiet as much as possible during touch sampling. In other words: first sample your buttons and then write a byte over UART, maybe allow for receiving bytes for a small while, then go back to a quick sampling of the touch. Quote Link to post Share on other sites
dany_mar24 2 Posted March 13, 2013 Author Share Posted March 13, 2013 can i use the timer for the capacitive and the watchdog for the uart? its because i want to use the capacitive sensor as pushbutton, when i touch the sensor send a message trough uart Quote Link to post Share on other sites
roadrunner84 466 Posted March 13, 2013 Share Posted March 13, 2013 you might, or you sense the push and after that send over uart. Then you could use the same timer for both. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.