Shop OBEX P1 Docs P2 Docs Learn Events
Use PC keyboard keys as momentary switches for Arm DC motors — Parallax Forums

Use PC keyboard keys as momentary switches for Arm DC motors

kleekrukleekru Posts: 32
edited 2012-02-16 22:22 in BASIC Stamp
Is there a way to do this? I'm currently using a menu in the PBasic debug terminal to drive the motors in the OWI arm trainer. However, with this programming, I'm only able to drive the motor for the length of a pause value. I would rather use keyboard keys as momentary switches that drive the motors only when the key is pressed down. Does anyone have any suggestions for doing this? If it is helpful, I can post the code I have that uses the menu approach.

Also, I'm hoping to control the arm from a web page. I know I'll need to create a serial connection to the Basic stamp and use a php page to reference the connection... A suggestion for how to link from a php page to the basic stamp would be great especially using a USB connection. I think I'm asking for a lot... so any small amount of guidance is appreciated.

Comments

Sign In or Register to comment.