SLAA891B April   2019  – February 2020 MSP430FR2512 , MSP430FR2512 , MSP430FR2522 , MSP430FR2522 , MSP430FR2532 , MSP430FR2532 , MSP430FR2533 , MSP430FR2533 , MSP430FR2632 , MSP430FR2632 , MSP430FR2633 , MSP430FR2633 , MSP430FR2672 , MSP430FR2672 , MSP430FR2673 , MSP430FR2673 , MSP430FR2675 , MSP430FR2675 , MSP430FR2676 , MSP430FR2676


  1.   Automating Capacitive Touch Sensor PCB Design Using OpenSCAD Scripts
    1.     Trademarks
    2. 1 Introduction
    3. 2 Getting Started
      1. 2.1 Prerequisites
      2. 2.2 Workflow
      3. 2.3 Creating a Sensor
      4. 2.4 Output DXF
      5. 2.5 Batch Files
    4. 3 Slider
    5. 4 Wheel
    6. 5 Curved Slider
    7. 6 Touchpad
    8. 7 PCB CAD Tool
    9. 8 Summary
  2.   Revision History

Automating Capacitive Touch Sensor PCB Design Using OpenSCAD Scripts

Products with capacitive touch sensor interfaces are more common than ever and typically feature a few button sensors or maybe a collection of buttons, such as a keypad. The button sensors provide a simple "touch" or "no touch" user input and their typical round or square shape can be created easily with a PCB CAD design tool. As product interfaces evolve, interfaces are beginning to include more complex sensor types, such as a slider, wheel, or touchpad. Designing these types of capacitive touch sensors shapes with a PCB CAD design tool can require a considerable amount of time, even for the best engineers and PCB designers. And even after the design has been completed, changes in product requirements often force the designer to make modifications to the design or completely start the design over. Automating the design steps can all but eliminate this time consuming process.

This application report describes how to create scalable self-capacitive slider, wheel, and touchpad sensors with OpenSCAD, a free Solid 3D CAD modeling tool, and custom scripts created by Texas Instruments. Modifying the script parameters and running the script generates a new sensor pattern that can be exported to DXF format then easily imported into any PCB CAD tool. This flexibility and speed makes it now possible to create complex sensor shapes effortlessly.

The scripts described in this document can be downloaded from