Go to Post What do you do after making a design public? Improve it! What do you do when you give your opponents a weapon? Come up with a better one or a way to beat it! What is Wildstang going to do, you ask? Make their drivetrains better! - EricH [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 16-01-2007, 00:00
d.courtney's Avatar
d.courtney d.courtney is offline
Registered User
AKA: David
FRC #0781 (Kinetic Knights)
Team Role: Alumni
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Kincardine, Ontario
Posts: 196
d.courtney has much to be proud ofd.courtney has much to be proud ofd.courtney has much to be proud ofd.courtney has much to be proud ofd.courtney has much to be proud ofd.courtney has much to be proud ofd.courtney has much to be proud ofd.courtney has much to be proud ofd.courtney has much to be proud ofd.courtney has much to be proud of
Question Concerning Operator Interface Inputs

So, I don't know to much about custom inputs to the OI, and I thought I would ask you guys before I did something terribly wrong. I want to know how (if its even possible) I would have a rotational sensor, encoder, or gyro, be an input for the OI, there were a few ideas I had this for. just wondering if it was possible given our OI or if I was wasting my time.

Thanks
David Courtney

edit: I realize this is in the programming section, not the control/OI section, thats because the question was mainly from a programming standpoint, ie what special programming would be required.
__________________

Last edited by d.courtney : 16-01-2007 at 00:06.
  #2   Spotlight this post!  
Unread 16-01-2007, 00:18
Rickertsen2 Rickertsen2 is offline
Umm Errr...
None #1139 (Chamblee Gear Grinders)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2002
Location: ATL
Posts: 1,421
Rickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant future
Send a message via AIM to Rickertsen2 Send a message via Yahoo to Rickertsen2
Re: Question Concerning Operator Interface Inputs

you could have a potentiometer and possibly a gyro if it has the proper output but an encoder would be difficult. What exactly are you trying to do?
__________________
1139 Alumni
  #3   Spotlight this post!  
Unread 16-01-2007, 06:59
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: Question Concerning Operator Interface Inputs

The OI is designed to accept two kinds of inputs. One is a variable resistor from ~2K to ~100K ohms; that's what the joysticks are. The other is a contact closure to ground; that's what the buttons are. You can provide a voltage between 0 and +5 volts on the joystick input pin and have it work.

There is absolutely no programming involved in connecting things to the OI. It is what it is, and we can't change how it works.

For a rotation input, a simple potentiometer will work. If the control needs to spin continuously, use a pot without an end stop. There is some programming you can do here, to accommodate the sudden jump from one end of the scale as the potentiometer wraps around. If your rotation rate is slow enough, you might be able to get away with using a quadrature sensor and a pair of digital inputs, but I wouldn't count on it.
  #4   Spotlight this post!  
Unread 16-01-2007, 14:34
d.courtney's Avatar
d.courtney d.courtney is offline
Registered User
AKA: David
FRC #0781 (Kinetic Knights)
Team Role: Alumni
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Kincardine, Ontario
Posts: 196
d.courtney has much to be proud ofd.courtney has much to be proud ofd.courtney has much to be proud ofd.courtney has much to be proud ofd.courtney has much to be proud ofd.courtney has much to be proud ofd.courtney has much to be proud ofd.courtney has much to be proud ofd.courtney has much to be proud ofd.courtney has much to be proud of
Re: Question Concerning Operator Interface Inputs

Quote:
Originally Posted by Alan Anderson View Post
The OI is designed to accept two kinds of inputs. One is a variable resistor from ~2K to ~100K ohms; that's what the joysticks are. The other is a contact closure to ground; that's what the buttons are. You can provide a voltage between 0 and +5 volts on the joystick input pin and have it work.

There is absolutely no programming involved in connecting things to the OI. It is what it is, and we can't change how it works.

For a rotation input, a simple potentiometer will work. If the control needs to spin continuously, use a pot without an end stop. There is some programming you can do here, to accommodate the sudden jump from one end of the scale as the potentiometer wraps around. If your rotation rate is slow enough, you might be able to get away with using a quadrature sensor and a pair of digital inputs, but I wouldn't count on it.
The pot switch I did think of and it likely would work, I was just wondering if there was anything out there that is infinite, and just returned a +/- degrees of rotations just add the value to an int, that way I could know say if the switch had been turned 720 degrees and have a different effect then if it was turned 360 degrees.

Quote:
Originally Posted by Rickertsen2 View Post
you could have a potentiometer and possibly a gyro if it has the proper output but an encoder would be difficult. What exactly are you trying to do?
Its purpose would be to aid the driver with controlling an attachment, if we end up going with one of our ideas we are considering.
__________________

Last edited by d.courtney : 16-01-2007 at 14:41.
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
2005 Operator Interface mtaman02 Control System 0 11-01-2007 19:12
operator interface tml240 Electrical 5 10-02-2004 17:50
Operator Interface code RiotingNerd Programming 5 07-02-2004 21:13
Operator Interface Heads Up Madison Robotics Education and Curriculum 6 11-12-2002 06:59
Operator Interface Improvements Dan Technical Discussion 3 18-02-2002 19:23


All times are GMT -5. The time now is 20:43.

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