background image

430BOOST-SENSE1 - Capacitive Touch
BoosterPack for the LaunchPad

User

'

s Guide

Literature Number: SLAU337A

April 2011

Revised September 2011

Summary of Contents for 430BOOST-SENSE1

Page 1: ...430BOOST SENSE1 Capacitive Touch BoosterPack for the LaunchPad User s Guide Literature Number SLAU337A April 2011 Revised September 2011 ...

Page 2: ...2 SLAU337A April 2011 Revised September 2011 Submit Documentation Feedback Copyright 2011 Texas Instruments Incorporated ...

Page 3: ... in CCS 17 4 2 Open Project and Workspace in IAR Embedded Workbench 17 4 3 Capacitive Touch Sense Library 18 5 LaunchPad Capacitive Touch BoosterPack User Experience Software 20 5 1 LaunchPad Capacitive Touch BoosterPack User Experience GUI 20 5 2 MediaPad 20 5 3 UART Communication Protocol 21 6 Frequently Asked Questions FAQ Tips and Tricks 22 7 References 22 8 Schematics and PCB Layout 23 8 1 Sc...

Page 4: ...Multiplexing 15 8 Driving LEDs 15 9 Capacitive Touch Sensor Areas 16 10 Capacitive Touch BoosterPack Schematic 23 11 Capacitive Touch BoosterPack Layout Top Layer 24 12 Capacitive Touch BoosterPack Layout Bottom Layer and Silkscreen 24 List of Tables 1 BoosterPack Interface 14 2 Bill of Materials 24 4 List of Figures SLAU337A April 2011 Revised September 2011 Submit Documentation Feedback Copyrigh...

Page 5: ...an be found at focus ti com docs toolsw folders print msp exp430g2 html or the LaunchPad wiki page at processors wiki ti com index php MSP430_LaunchPad_ MSP EXP430G2 User s guides and detailed information on setting up a project for the MSP430 using Code Composer Studio or IAR Embedded Workbench can be found at the Tools Software section of the MSP430 landing page www ti com msp430 FCC Warning Thi...

Page 6: ...6 Read This First SLAU337A April 2011 Revised September 2011 Submit Documentation Feedback Copyright 2011 Texas Instruments Incorporated ...

Page 7: ...ample for one of the MSP430 Value Line devices The BoosterPacks can be connected to the MSP EXP430G2 with both 10 pin male headers included in MSP EXP430G2 kit soldered onto the board and therefore use all available pins on the MSP430G2452 Value Line device Figure 1 Capacitive Sense BoosterPack With LaunchPad The Capacitive Sense BoosterPack is available for purchase from the TI eStore https estor...

Page 8: ... sense areas a button a 4 element wheel and a proximity sensor One preprogrammed MSP430G2452 device For latest information on the LaunchPad other available BoosterPacks software examples and how to program the included MSP430G2452 device see the MSP EXP430G2 LaunchPad Experimenter Board User s Guide SLAU318 or the LaunchPad wiki page processors wiki ti com index php MSP430_LaunchPad_ MSP EXP430G2 ...

Page 9: ...e direction as the text and logo on the Launchpad 6 Connect the LaunchPad with an USB cable to a PC or connect an external power supply 2 7 V to 3 6 V to J6 The user experience demo application lights the center LED when power is supplied to the board NOTE The 32 kHz crystal oscillator on pins 18 and 19 is not required for the user experience application to run 2 2 Software Preparation The steps d...

Page 10: ...in this section can be used as either a stand alone demo no PC required or as a demo with PC applications running If PC application is desired make sure to start the PC application execution before proceeding with step 2 1 Plug the LaunchPad with Capacitive Touch BoosterPack into a USB source such as USB port on PC USB hub or USB battery pack via the mini USB connector or to a battery pack via the...

Page 11: ...d Capacitive Touch BoosterPack see Figure 2 The GUI continues normally if it detects that a LaunchPad is plugged into the PC Figure 2 PC GUI Looking for LaunchPad 2 At start up or after long period of inactivity the device enters sleep mode and the GUI is disabled grayed out to indicate sleep mode see Figure 3 Upon proximity sensor detection for example wave your hand approximately 3 to 5 cm above...

Page 12: ...tible COM port is found the application displays an error message and then exits If a LaunchPad COM port is found the application displays a greeting message When the user closes the message the application minimizes itself to the taskbar 3 When the LaunchPad Capacitive Touch BoosterPack is in sleep mode no data is transferred and no activity occurs in the program Use hand finger wave motion to tr...

Page 13: ... run the MediaPad software While most recent Windows PCs have the Net runtime library installed a new or reinstall of the library might be necessary 13 SLAU337A April 2011 Revised September 2011 430BOOST SENSE1 Capacitive Touch BoosterPack for the LaunchPad Submit Documentation Feedback Copyright 2011 Texas Instruments Incorporated ...

Page 14: ...nnel UART transmit data output not connected to 3 P1 1 TXD NC BoosterPack 4 P1 2 RXD NC Backchannel UART receive data input not connected to BoosterPack 5 P1 3 LEDx LED base to drive the eight multiplexed LEDs 6 P1 4 LED1 LED1 positive and LED5 negative drive 7 P1 5 LED2 LED2 positive and LED6 negative drive 8 P2 0 SENS0 Touch sense proximity sensor 9 P2 1 SENS1 Touch sense wheel sensor left 10 P2...

Page 15: ...d set to port P1 4 to P1 7 Figure 7 Schematic LED Multiplexing Switching between modes can be controlled by a timer and has to be at least 100 times a second to generate the illusion of a constant light pattern To reduce glitches while switching the LED modes it is recommended to set the LED signals that are not being driven to input mode Figure 8 shows the signals of all the LED driving pins requ...

Page 16: ...touch sense I Os oscillate within a frequency range of 1 to 2 MHz which is strongly dependant on the supply voltage the device package and environmental influences For more information about the touch sense feature of the Value Line devices to download code example or to find application examples go to the Capacitive Touch BoosterPack wiki page http processors wiki ti com index php MSP430_LaunchPa...

Page 17: ...on wheel or the center button It also recognizes simple gestures clockwise and counter clockwise when the finger moves along and remains on the wheel Upon wheel position detection the corresponding LEDs surrounding the wheel light up accordingly Each individual tap on the center capacitive touch button toggles the center LED After a short time without any touch activity on the wheel or on the cent...

Page 18: ...ing the interval time increases the sensitivity however this is at the cost of response time which is critical for supporting the PC GUI in this application The proximity sensor uses an SMCLK of 125 kHz For the button and wheel the frequency is increased to 1 MHz The interval count is 8192 8 192 ms gate time for the button and wheel elements and 65 5 ms gate time for the proximity element The whee...

Page 19: ...on could have been used but for demonstration purposes the TI_CAPT_Custom function was chosen When a threshold crossing is detected an LED sequence is started and the application transitions to the active state polling the wheel and middle button One possible enhancement of the proximity sensor application is to enable several different thresholds and indicate how close the user is with the LEDs o...

Page 20: ...also takes advantage of the serial library for USB COM serial communication and the sound library pitaru sonia_v2_9 available at http sonia pitaru com download htm for audio effects 5 1 1 Requirements The following utilities and libraries are required when modifying the User Experience source code Processing www processing org Serial library included with Processing installation pitaru sonia_v2_9 ...

Page 21: ...PRESS 0x3z 0x3z z touch position 0x0 to 0xF one nibble GESTURE START 0xFC 0x2z z touch position 0x0 to 0xF one nibble GESTURE STOP 0xFB 0xFB GESTURE and GESTURE END POSITION 0xGG 0x2 GG a binary number MSB is direction 0 clockwise 1 counter clockwise 7 LSBs count of gesture movement z ending position of the immediate gesture 0x0 to 0xF one nibble The PC application can receive and decipher the UAR...

Page 22: ...cific data sheets and user s guides The most up to date versions of the documents can be found at the Texas Instruments MSP430 web page 1 All MSP430 LaunchPad and BoosterPack information can be found at the MSP430 LaunchPad wiki 2 The MSP430 LaunchPad and Value Line devices are supported in the latest versions of Code Composer Studio 3 and IAR Embedded Workbench 4 In depth details on the supported...

Page 23: ...B Layout 8 1 Schematics Figure 10 Capacitive Touch BoosterPack Schematic 23 SLAU337A April 2011 Revised September 2011 430BOOST SENSE1 Capacitive Touch BoosterPack for the LaunchPad Submit Documentation Feedback Copyright 2011 Texas Instruments Incorporated ...

Page 24: ...f Name Description Board 1 R1 to R8 8 390 Ω SMD0603 resistor 2 R9 1 180 Ω SMD0603 resistor 3 LED1 to LED8 8 Top LED red wtr clr 631NM 1206 4 LED9 1 LED white round diffused 1206 5 J1 J2 2 Female header SSM 110 L SV 2 54 mm 6 R10 to R15 0 SMD0603 resistor not populated 24 430BOOST SENSE1 Capacitive Touch BoosterPack for the LaunchPad SLAU337A April 2011 Revised September 2011 Submit Documentation F...

Page 25: ...sion Page Clarified import instructions in Section 4 1 17 NOTE Page numbers for previous revisions may differ from page numbers in the current version 25 SLAU337A April 2011 Revised September 2011 Revision History Submit Documentation Feedback Copyright 2011 Texas Instruments Incorporated ...

Page 26: ... for use in safety critical applications such as life support where a failure of the TI product would reasonably be expected to cause severe personal injury or death unless officers of the parties have executed an agreement specifically governing such use Buyers represent that they have all necessary expertise in the safety and regulatory ramifications of their applications and acknowledge and agr...

Page 27: ...Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery Lifecycle Information Texas Instruments 430BOOST SENSE1 ...

Reviews: