Shop OBEX P1 Docs P2 Docs Learn Events
PENGUIN ROBOT Virtual Touchpad - the Code — Parallax Forums

PENGUIN ROBOT Virtual Touchpad - the Code

HumanoidoHumanoido Posts: 5,770
edited 2007-11-02 06:30 in Robotics
Here's code for a new way to communicate with your Penguin bot.
It's a Virtual Touchpad. It can be used like a touchpad or touch
switch. To operate, just touch the photo eye on Penguin! The demo
screen will report "touched" or "not touched."

Of course, this can be converted to many things, for communicating
with Penguin, on/off condition inputs, and for those interested, the
actual touch sensitivity of the pad can be varied for analog-like
functions or instruments! This program will require simple calibration
for effective results.

humanoido

Title: Penguin Virtual Touchpad
Code Name: penguin_virtual_touchpad.bpx
Purpose: Code creates a virtual touch keypad


' This program will convert the right photodetector into a touch pad
' switch which can be used as a one key input device or keyboard.
' The touch pad is a photoswitch.

' Calibration is required - see notes below.

' The principle is simple. Adjust the rctime values to desensitize
' the photoswitch so that a single touch is required to activate.

' The photoswitch can be calibrated in terms of sensitivity to
' prevent electronic light bounce. The switch is also calibrated
' to provide the same touch response.

' This is a cool project, giving Penguin a virtual touch pad keyboard
' with one key, without adding any hardare or making any
' modifications.

Post Edited (humanoido) : 11/2/2007 12:34:22 PM GMT
Sign In or Register to comment.