Go to Post at what point does gracious professionalism turn into cut throat competition? - aepstein [more]
Home
Go Back   Chief Delphi > Technical > Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 17-03-2013, 21:14
ekapalka's Avatar
ekapalka ekapalka is offline
Registered User
FRC #3216
 
Join Date: Dec 2012
Location: Bermuda
Posts: 277
ekapalka has a spectacular aura aboutekapalka has a spectacular aura about
Using a Keybard as a controller?

I've been looking into this for quite some time, and I can only seem to find one way to implement a keyboard. Using a Teensy USB dev board and keyboard with USB-to-PS/2 converter, as described here. Does anyone happen to know another way to do this? I've almost figured out how to do this same thing with a PS/2 mouse, and the keyboard is my next project. Thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 17-03-2013, 21:51
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Using a Keybard as a controller?

I think you can read the keyboard in the dashboard program and send information to the robot using smartDashboards. If done in LV, use the Connectivity>>Input Device palette.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 17-03-2013, 21:52
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Using a Keybard as a controller?

Can you be a little more specific about what you mean? There's already a keyboard on most computers, and the few tablet computers without one usually have a USB input for an external keyboard.

Are you trying to control an FRC robot using keyboard commands? You can get keyboard input in a custom Dashboard program and pass it along to the robot using either the SmartDashboard support or a custom communication scheme.
Reply With Quote
  #4   Spotlight this post!  
Unread 17-03-2013, 22:49
ekapalka's Avatar
ekapalka ekapalka is offline
Registered User
FRC #3216
 
Join Date: Dec 2012
Location: Bermuda
Posts: 277
ekapalka has a spectacular aura aboutekapalka has a spectacular aura about
Re: Using a Keybard as a controller?

Sorry for the confusion. I meant a competition legal plug and play USB device that we could use for controlling an entire FRC robot, including things such as the space bar, so using the driver-station keyboard is not what I had in mind.
Reply With Quote
  #5   Spotlight this post!  
Unread 17-03-2013, 23:25
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Using a Keybard as a controller?

I'm afraid I'm more confused than before.

What do you mean by "competition legal", and how does what you want to do differ from using the computer's built-in keyboard?
Reply With Quote
  #6   Spotlight this post!  
Unread 17-03-2013, 23:59
ekapalka's Avatar
ekapalka ekapalka is offline
Registered User
FRC #3216
 
Join Date: Dec 2012
Location: Bermuda
Posts: 277
ekapalka has a spectacular aura aboutekapalka has a spectacular aura about
Re: Using a Keybard as a controller?

Quote:
Originally Posted by Alan Anderson View Post
I'm afraid I'm more confused than before.

What do you mean by "competition legal", and how does what you want to do differ from using the computer's built-in keyboard?
... I researched this topic here before I decided to ask this question, and some people said hat there were legality issues with modifying the driver station (I guess anyone could have said that...). I also wanted to stay away from the main keyboard in case the driver accidentally hits the space bar or something and e-stops the robot. I would like to use a keyboard more like a joystick, where the button presses can be registered, but are meaningless unless the program says so (basically the keyboard doesn't type. It's just a bunch of buttons waiting to be told what to correspond to). In addition, I figured it might be easier to program.
Reply With Quote
  #7   Spotlight this post!  
Unread 18-03-2013, 01:28
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Using a Keybard as a controller?

You can't modify the Driver Station program, but you can still read the keyboard in a Dashboard program and send commands to the robot that way.

Any keyboard you use will still have a space bar, unless you physically modify it to break that key. Or unless you put a filtering device between it and the computer, which I suppose is what you were trying to get at with the Teensy?
Reply With Quote
  #8   Spotlight this post!  
Unread 18-03-2013, 08:29
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Using a Keybard as a controller?

Maybe you want to connect a USB keypad? No spacebar, just a grid of keys that return numbers and a few symbols. Read it from the dashboard, process it or send it raw to the robot.

Greg McKaskle
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 05:26.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi