Shop OBEX P1 Docs P2 Docs Learn Events
Keyboard Input — Parallax Forums

Keyboard Input

HEDGEHEDGE Posts: 8
edited 2008-07-14 18:37 in BASIC Stamp
I'm using the BS2 Discovery Kit;·this kit is very useful when it comes to displaying information.· I've created a digital voltmeter to read the voltage through a resistive bend sensor.· How would I go about using this displayed information to enable some type of computer action?· I want the computer to enable a keystroke when the voltage in the sensor is at a certain value.· This keystroke will then accompany a code written in Visual Studio to perform an action when that key is pressed.· If this is not possible, please let me know.

Comments

  • allanlane5allanlane5 Posts: 3,815
    edited 2008-07-14 16:01
    Typically you interface the BS2 to a PC through the serial port.

    You can send information from the BS2 to the programming serial port with "SEROUT 16, 16468, [noparse][[/noparse]"Hi there!", CR]"

    Then, you write your program in Visual Studio to read the serial port, and take some action based on what it gets from the BS2.

    This is MUCH easier than trying to emulate a keyboard interface with the BS2.
  • HEDGEHEDGE Posts: 8
    edited 2008-07-14 18:37
    Thank You.· I would have never thought of that.· It makes a lot of sense.·
Sign In or Register to comment.