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

Output DXF

After the sensor has been successfully rendered, it must be exported into a DXF format file that can be imported by the PCB CAD tool. The recommended method to generate the DXF file output is to select File > Export > Export DXF from the OpenSCAD menu. After export, the last step is to import the DXF into the PCB CAD tool and convert to copper regions. Section 7 describes this process.

(Optional) Creating DXF output from command line:

DXF outputs can also be created using the provided batch files from a command line interface. Although not required, these batch files automate the output process and also allow the user to generate individual DXF output files for each sensor element if needed when importing into some PCB CAD design tools.

The following example uses the command line interface to create a single sensor element and generate a DXF output.

openscad.exe -o wheel_element_1.dxf -D "element=1" wheel.scad

The syntax for the command line is:

  • DXF output filename = -o wheel_element_1.dxf
  • String constant parameter specifies which element = -D "element=1"
  • Script to execute = wheel.scad

Generate a DXF output file for the entire sensor, change the -D parameter to "element=99".

openscad.exe -o wheel_all_elements.dxf -D "element=99" wheel.scad

For more information about executing OpenSCAD and its options from the command line, refer to the OpenSCAD documentation.