CALPOLY MECHATRONICS
Documentation for all Mechatronics Labs
ME405_FP_ResTP.py File Reference

Sets up touch panel scan in x-, y-, and z-directions, and returns results in a tuple. More...

Classes

class  ME405_FP_ResTP.ResTP
 Runs operations and returns values specific to the encoder count. More...
 

Variables

 ME405_FP_ResTP.pinA0 = pyb.Pin(pyb.Pin.cpu.A0)
 
 ME405_FP_ResTP.pinA1 = pyb.Pin(pyb.Pin.cpu.A1)
 
 ME405_FP_ResTP.pinA6 = pyb.Pin(pyb.Pin.cpu.A6)
 
 ME405_FP_ResTP.pinA7 = pyb.Pin(pyb.Pin.cpu.A7)
 
 ME405_FP_ResTP.tchPanel = ResTP(pinA0, pinA1, pinA6, pinA7)
 
 ME405_FP_ResTP.scanRdg = tchPanel.runScan()
 

Detailed Description

Sets up touch panel scan in x-, y-, and z-directions, and returns results in a tuple.

Using a pair of resistive wires, voltages are read at specific instances using ADC methodology. By using these values and performing appropriate calibration tests, the touch panel allows for accurate representation of where an object is with respect to its physical whereabouts, and it can tell if an object is indeed on its surface.

source code: https://bitbucket.org/eliotBriefer/me405_term_project/src/master/Drivers/ME405_FP_ResTP.py

Author
Nicholas Greco
Date
6/11/2021