TPE-800 PadZ SERIES Integration Guide

2023-12-18 14:04

本文主要是介绍TPE-800 PadZ SERIES Integration Guide,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

  1. Introduction.
    This guide covers Tangio’s TPE-800 standard 3D Single-Touch Resistive PadZ sensors. These sensors simultaneously report single-touch “X-Y” position and variable force “Z”, be that a human finger, passive stylus
    or machine interface. Using proven 4-wire technology TPE-800 o ers a compelling touch solution in rugged applications or those requiring gloved hand use or deployment under a metallic top surface.
    Interfacing to TPE-800 is simple and can be achieved using two dedicated GPIO microcontroller pins and 2 ADCs.
    在这里插入图片描述
  2. Scope
    This guide provides all necessary technical information for the successful integration and interfacing of the
    TPE-800 3D Single-Touch Resistive Pads into applications such as:
    • Computer peripherals and gaming
    • Rugged handhelds and notebooks
    • Industrial and medical front panels
    • Musical instruments
    在这里插入图片描述
  3. General Construction
    Figure 1 shows the major resistance groups in TPE-800. RF is the contact resistance between the two resistive layers when force is applied to the sensor. The actual values of RX1, RX2, RY1, and RY2 depend on the location of applied force.
    Note: Measuring the linear resistances between Y1 and Y2 (RY1 and RY2) and X1 and X2 (RX1 and RX2) is recommended to check the current being passed through the sensor. According to your system, this current may vary and in case that it exceeds the rated current for microcontroller unit of the system, current limiting resistors (100-300 Ω) can be used.

4 Schematic of the System
在这里插入图片描述

For best results an Arduino or similar microcontroller with an analog to digital converter (ADC) module can be
used to measure the position (X-Y) and relative force (Z) of touch. Figure 2 is an example schematic of a typical
TPE-800 implementation for measuring position & force. The sensor pins are connected to the microcontroller as
follows:
• X1 – Digital pin
• X2 – ADC pin AX2
• Y1 – Digital pin
• Y2 – ADC pin AY2

  1. Position measure
    在这里插入图片描述

To measure the X and Y location of touch, the following steps should be followed:
5.1 X Position
The X position of an applied force can be measured in a way similar measuring the position of a potentiometer.

  1. Setup X1 as an output pin on the microcontroller and make it output a digital HIGH signal.
  2. Setup X2 as an output pin on the microcontroller and make it output a digital LOW signal.
  3. Setup Y1 and Y2 as input pins (ensuring that no current flows through those pins).
  4. Take an ADC measurement, AY2, on pin Y2:
    a. If AY2 is closer to 0 then it means that the force was applied closer to the X2 pin side of the XYZ pad.
    b. If AY2 is closer to ADCMAX then the force was applied closer to the X1 pin side of the XYZ pad.
    5.2 Y Position
    The Y position of an applied force can be measured in a way similar measuring the position of a potentiometer.
  5. Setup Y1 as an output pin on the microcontroller and make it output a digital HIGH signal.
  6. Setup Y2 as an output pin on the microcontroller and make it output a digital LOW signal.
  7. Setup X1 and X2 as input pins (ensuring that no current flows through those pins).
  8. Take an ADC measurement, AX2, on pin X2:
    a. If AX2 is closer to 0 then it means that the force was applied closer to the Y2 pin side of the XYZ pad.
    b. If AX2 is closer to ADCMAX then the force was applied closer to the Y1 pin side of the XYZ pad.

6 Force Measurement
The following subsections describe 3 methods for measuring force. Each method presents compromises which will be discussed later. The preferred method should be selected according to the application. Each of the force measurement methods introduced in this document has been tested on TPE-800 at several test points, and the results are presented as plots. Figure 3 shows test point locations.
6.1 Method 1
The force being applied on the sensor is inversely proportional to the value of RF. So, the force can be estimated by measuring RF.

  1. Setup X1 as an output pin on the microcontroller and make it output a digital HIGH signal.

  2. Setup Y1 as an output pin on the microcontroller and make it output a digital LOW signal.

  3. Setup X2 and Y2 as input pins

  4. Take an ADC measurement, AX2, on pin X2

  5. Take an ADC measurement, AY2, on pin Y2

  6. Calculate the relative force being applied using the following formula:
    Force = AX2 – AY2
    Figure 4 shows the result of this method on an actual 3D sensor at several test points.在这里插入图片描述
    6.2 Method 2
    Method 2 follows the same principle as Method 1 except that it reads values from the two opposite edges of
    the sensor and calculates the force as the average of these values. The following steps should be followed to
    implement this method:在这里插入图片描述

  7. Setup X1 as an output pin on the microcontroller and make it output a digital HIGH signal.

  8. Setup Y1 as an output pin on the microcontroller and make it output a digital LOW signal.

  9. Setup X2 and Y2 as input pins

  10. Take an ADC measurement, AX2, on pin X2

  11. Take an ADC measurement, AY2, on pin Y2

  12. Calculate the first reading using the following formula:
    Value1 = AX2 – AY2

  13. Setup X2 as an output pin on the microcontroller and make it output a digital HIGH signal.

  14. Setup Y2 as an output pin on the microcontroller and make it output a digital LOW signal.

  15. Setup X2 and Y2 as input pins

  16. Take an ADC measurement, AX1, on pin X1

  17. Take an ADC measurement, Ay1, on pinY1

  18. Calculate the second reading using the following formula:
    Value2 = AX1 – AY1

  19. Calculate the force as the average between Value1 and Value2
    Figure 5 shows the result of this method on a 3D sensor at the test points described earlier.
    6.3 Method 3在这里插入图片描述

The third method employs extra hardware for improved results. This method needs 2 additional GPIO pins
and 2 additional ADCs which will be used as virtual grounds and measurement pins, as well as 4 extra resistors
(Resistors in the range of 1 KΩ to 5KΩ are suggested). Figure 6 shows the circuit diagram of this method, using
an Arduino as the microcontroller unit.
The strategy behind this method is to drive one of the drive lines in the bottom layer high and treat the drive
lines in the top layer as wipers. The voltage on each of these top layer drive lines will be measured using ADC
when the virtual ground relating to that pin is low. The same process will then be repeated with drive lines in
the bottom layer as wipers. At the end the average of all four measured values will be taken. The following steps
should be followed to implement this method:

  1. Setup X1 as an output pin on the microcontroller and make it output a digital HIGH signal.
  2. Setup Y1 as an input pin
  3. Setup D3 (virtual ground relating to Y1) as an output pin and make it output digital LOW signal
  4. Setup pins D2, D4, D5, X2 and Y2 as input pins.
  5. Take an ADC measurement, AY1, on pin Y1 and call it value1
  6. Setup Y2 as an input pin
  7. Setup D2 (virtual ground relating to Y2) as an output pin and make it output digital LOW signal
  8. Setup pins D3, D4, D5, X2 and Y1 as input pins.
  9. Take an ADC measurement, AY2, on pin Y2 and call it value2
  10. Setup Y1 as an output pin on the microcontroller and make it output a digital HIGH signal.
  11. Setup X1 as an input pin
  12. Setup D5 (virtual ground relating to X1) as an output pin and make it output digital LOW signal
  13. Setup pins D2, D4, D3, X2 and Y2 as input pins.
  14. Take an ADC measurement, AX1, on pin X1 and call it value3
  15. Setup X2 as an input pin
  16. Setup D4 (virtual ground relating to X2) as an output pin and make it output digital LOW signal
  17. Setup pins D2, D3, D5, X1 and Y2 as input pins.
  18. Take an ADC measurement, AX2, on pin X2 and call it value2
  19. Take the average of value1, value2, value3 and value4 which will represent the force on the 3D sensor 在这里插入图片描述

Figure 7 shows the result of this method on an actual 3D sensor at the test points.

6.4 Advantages and Disadvantages
• Method 1 is the simplest to implement. Using only two GPIO and 2 ADC pins, it also requires the minimum hardware. This method achieves low noise characteristics without filtering or averaging leaving system
processing power free for other tasks. However, force measurements are not as consistent at different locations on the sensor as indicated by the shi ed curves in Figure 4.
• Method 2 is a compromise between Method 1 and Method 3. It improves the consistency of the force
measurements in Method 1 without additional hardware or system resources. Comparing Figures 4 and 5,
we can see that force curves resulting from Method 2 are more consistent and closer grouped. While this
method doesn’t need extra hardware it uses more processing power due to the additional measurement and averaging.
• Method 3 further improves the consistency of force measurements. This method also increases the sensitivity of the sensor resulting in a lower activation force (around 25g typical). However, this method is the most complex and needs 2 extra GPIO and ADC pins (4 of each in total) and 4 extra resistors. Furthermore, the algorithm for this method takes more processing system resources, is slower and
generally more complex to implements than the other two.

这篇关于TPE-800 PadZ SERIES Integration Guide的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/508667

相关文章

【HDU】4927 Series 1 高精度

传送门:【HDU】4927 Series 1 题目分析:公式很好推,到最后就是C(n-1,0)*a[n]-C(n-1,1)*a[n-1]+C(n-1,2)*a[n-2]+...+C(n-1,n-1)*a[n]。 用C(n,k)=C(n,k-1)*(n-k+1)/k即可快速得到一行的二项式系数。 我看JAVA不到1000B 15分钟就能过。。。我又敲了大数模板然后将近2个小时才过T U

【HDU】4928 Series 2 模拟

传送门:【HDU】4928 Series 2 题目分析: 代码如下: #include <cstdio>#include <cstring>#include <algorithm>using namespace std ;#define REP( i , a , b ) for ( int i = ( a ) ; i < ( b ) ; ++ i )#

Maven持续集成(Continuous integration,简称CI)版本友好管理

从Maven 3.5.0-beta-1 版本开始可以在pom文件中使用 r e v i s i o n 、 {revision}、 revision、{sha1}、${changelist}做为版本的占位符。 一、单module简单使用${revision}的场景 <project><modelVersion>4.0.0</modelVersion><parent><groupId>or

PostgreSQL 中的 `generate_series` 函数使用

1. 概述 在 PostgreSQL 中,generate_series 是一个非常实用的内置函数,它能够根据给定的起始值和结束值生成一系列连续的数字。这一功能对于需要生成大量连续数据或进行批量操作的场景非常有用。本文将详细介绍 generate_series 函数的基本用法,并通过一些简单的示例帮助你更好地理解和应用这一函数。 2. 基本用法 generate_series 函数的基本语法

Illustrated Guide to Monitoring and Tuning the Linux Networking Stack: Receiving Data

太长不读(TL; DR) 这篇文章用一系列图表扩展了以前的博客文章Monitoring and Tuning the Linux Networking Stack: Receiving Data,旨在帮助读者形成一个更清晰的视野来了解Linux网络协议栈是如何工作的 在监控或调优 Linux 网络协议栈试没有捷径可走。如果你希望调整或优化每个组件及其相互作用,你就必须努力充分了解它们。也就是说

echarts中series中的数据如何如何循环显示数据

echarts中的数据格式如下 var option = { title : { text: '月份对比', subtext: '' }, tooltip : { trigger: 'axis' }, legend: { data:['3月','4月','5月','6月'] }, toolbox: { show : false, feature : { dataView : {show: tru

Pandas-高级处理(六):map()【将自定义函数作用于Series的每个元素】、apply()【将自定义函数作用于DF的行或者列】、applymap()函数【将自定义函数作用于DF的所有元素】

一、map map()是Series对象的一个函数,DataFrame中没有map(),map()的功能是将一个自定义函数作用于Series对象的每个元素。 现在使用map()函数来将data1这一列的数据改为保留三位小数显示 df['data1'] = df['data1'].map(lambda x : "%.3f"%x) 二、apply apply()函数的功能是将一个自定

四足机器人控制算法——建模、控制与实践(unitree_guide配置)

目录 官方文档 unitree_guide 1. 快捷指令 2. ROS安装 3. LCM库安装 3.1. 安装步骤 4. pthread库 5. 工程文件下载 6. 编译 报错: 报错1 报错2: 报错3 其他报错 7. 运行 7.1. 运行 Gazebo 仿真环境 7.2. 启动控制器 8. 简单使用 官方文档 宇树科技 文档中心 四足机器人算法实

论文笔记:Estimating future human trajectories from sparse time series data

sigspatial 2023 humob竞赛paper hiimryo816/humob2023-MOBB (github.com) 1 数据集分析 这里只分享了HuMob数据集1的内容 1.1 假日分析 对HuMob数据集#1地理数据的方差分析显示了非工作日的模式 在某些天的y坐标方差中有显著的峰值,这是非工作日的象征【x坐标有相似的模式】 ——>识别了任务1数据集中最有可能是

SAT数学800分备考方法分享

中国的考生想要拿到SAT数学800分并不是一件很难的事,但是相对的也不是一件容易的事。那么考生们在备考SAT数学考试的时候,需要采用什么样的方法才能让自己有更多的机会取得SAT数学800分呢?下面是详细内容。   因为SAT数学考试的知识点,考生都在高中的课程中学习过了,所以对于中国的考生来讲,想要拿到SAT数学800分成绩,把重点落在熟悉SAT数学出题的方式和词汇上是最主要的。   备考