ME405 Portfolio
The following documentation details each step of the ME 405 term project.
Touch_Panel_Driver.py File Reference

This driver allows the nucleo to gather position data from the touch panel. More...

Classes

class  Touch_Panel_Driver.Touch_Panel
 

Variables

 Touch_Panel_Driver.xm = pyb.Pin.cpu.A1
 
 Touch_Panel_Driver.xp = pyb.Pin.cpu.A7
 
 Touch_Panel_Driver.ym = pyb.Pin.cpu.A0
 
 Touch_Panel_Driver.yp = pyb.Pin.cpu.A6
 
 Touch_Panel_Driver.TP = Touch_Panel(xp, xm, yp, ym, 180, 100, 90, 50)
 
 Touch_Panel_Driver.init_time = utime.ticks_us()
 
int Touch_Panel_Driver.runs = 100
 

Detailed Description

This driver allows the nucleo to gather position data from the touch panel.

This file defines the Touch_Panel class which has five methods. Methods include init, Scan_x, Scan_y, Scan_z, and get_pos. By using the provided methods the user can determine if anything is in contact with the touch panel and the location of that contact. The image below shows the wiring and soldering setup of the touch panel used when testing for this driver.

The image below shows the average time to use the get_pos method after looping it 100 times. Testing code was written at the bottom of the program to generate this data.