Go to Post thats like having 24 young men going wild for 2 minutes - thats how much power is available during a match. - KenWittlief [more]
Home
Go Back   Chief Delphi > Technical > Electrical
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 01-04-2003, 19:21
Josh Hambright's Avatar
Josh Hambright Josh Hambright is offline
{Error Processing Custom Title}
AKA: oneangrydwarf/jtosh
no team (old school gangsta)
Team Role: Alumni
 
Join Date: Apr 2002
Rookie Year: 2000
Location: Indiana
Posts: 1,421
Josh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond repute
Send a message via AIM to Josh Hambright
Resistance to Analog Input Value.

What is the resistance that equals 1 on the analog input...

Like how can i figure out what resistance would change the value by 1...without cracking out a multimeter and a robot controller and the dashboard program.
__________________
Former 461 Student/Mentor. Former 1272 and 1018 Mentor. Team 1555 Super-Fan.
Science and Engineering Can Open New Doors. --S.E.C.O.N.D.--
=~=!=@= #=$=%=
Co-Founder IndianaFIRST

Share your FIRST photos on Flickr!
  #2   Spotlight this post!  
Unread 01-04-2003, 22:09
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,576
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
The Analog inputs accept values from 0 to 5v. The potentiometers we use are from 0 to 100k. The robot controller displays values from 0 to 255. 100k/255 equals the answer that you want.

However, that is an approximation, and not a very good one at that. Pull out that multimeter
  #3   Spotlight this post!  
Unread 02-04-2003, 00:07
rbayer's Avatar Unsung FIRST Hero
Happy Birthday! rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
Also, no resistor is going to be accurate enough to let you get an exact value. Most resistors have either gold or silver bands indicating either 5 or 10% error, respectively. Thus, a 50k ohm resistor could be anywhere between 45k (approx value 115) and 55k (approx value 140). Or maybe it's the other way around...

In any event, don't count on being able to get +/- 1 for accuracy.
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #4   Spotlight this post!  
Unread 02-04-2003, 07:42
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Also, realize that, while voltage to counts is linear, resistance to counts is not linear. This is due to the input impedance of the analog input changing the ideal resistor divider of the pot.

For most users, this is not a problem but you seem to be doing some precision work if you are asking for 1 count.

Lastly, remember that there is a quantization error involved...
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
  #5   Spotlight this post!  
Unread 02-04-2003, 08:15
Josh Hambright's Avatar
Josh Hambright Josh Hambright is offline
{Error Processing Custom Title}
AKA: oneangrydwarf/jtosh
no team (old school gangsta)
Team Role: Alumni
 
Join Date: Apr 2002
Rookie Year: 2000
Location: Indiana
Posts: 1,421
Josh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond repute
Send a message via AIM to Josh Hambright
No i'm not trying to count from one...but we ran out of digital inputs...so i am going to use analog inputs to detect switches for autonomous mode selection...

Basicly its the same principle as a Digital to Analog Converter.. or along those lines....

I have a rotary switch and i'm going have a different resistor on each switch, Basicly then you can sense the value of the analog input that its hooked upto and it will return a value, basicly i am making a pot that has predetermined values instead of constantly changing values...i didn't explain it very well...

I am then going to have bigger resistors in serise with it to add a bunch of resistance to give more then one bank of selection...

I just have to calculate all the values now...

Weee...

Its really simple and straight forward but for us it'll be the first custom circuit we will ever actualy have on our robot and it came to me during english class this week so i wanna get it to work.
__________________
Former 461 Student/Mentor. Former 1272 and 1018 Mentor. Team 1555 Super-Fan.
Science and Engineering Can Open New Doors. --S.E.C.O.N.D.--
=~=!=@= #=$=%=
Co-Founder IndianaFIRST

Share your FIRST photos on Flickr!
  #6   Spotlight this post!  
Unread 02-04-2003, 09:17
seanwitte seanwitte is offline
Registered User
None #0116
Team Role: Engineer
 
Join Date: Nov 2002
Location: Herndon, VA
Posts: 378
seanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant future
Send a message via AIM to seanwitte
how many positions?

If you have room on the OI it would be eaiser to add a thumbwheel switch there, but here is how you can do what you're asking.

You will form a voltage divider for each output of the rotary switch. The voltage divider is two resistor in series, with one end pulled up to +5V and the other grounded. You take the output from the node between the two resistors.

Code:
^ +5
|
X
X R1
X
|--------------o Vout
X
X R2
X
|
- Ground
=
Vout = 5(R2/(R1 + R2)). So if you wanted it to be 2.5V you would use two resistors of the same value. To be consistent, the total resistance should be at least 100k ohms. You will have to figure out what the standard resistance values are, but heres how you could set up 9 discrete levels:

Code:
R1	R2	Vout
90k	10k	5(10/100) = 0.5V
80k	20k	5(20/100) = 1.0V
70k	30k	5(30/100) = 1.5V
60k	40k	5(40/100) = 2.0V
50k	50k	5(50/100) = 2.5V
40k	60k	5(60/100) = 3.0V
30k	70k	5(70/100) = 3.5V
20k	80k	5(80/100) = 4.0V
10k	90k	5(90/100) = 4.5V
You could also get some small 100k trim pots and tune them for each input. Then you would only need one per value instead of two resistors. They have a small screw that you turn so they shouldn't slip once set. All of this is way more trouble than its worth, try and work the switch into the OI if you can.

Last edited by seanwitte : 02-04-2003 at 09:29.
  #7   Spotlight this post!  
Unread 02-04-2003, 11:04
Josh Hambright's Avatar
Josh Hambright Josh Hambright is offline
{Error Processing Custom Title}
AKA: oneangrydwarf/jtosh
no team (old school gangsta)
Team Role: Alumni
 
Join Date: Apr 2002
Rookie Year: 2000
Location: Indiana
Posts: 1,421
Josh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond repute
Send a message via AIM to Josh Hambright
I thought about using trimmer pots... These should work about right... I dont need a ton of programs right now with the system i came up with last hour (once again in english class) I think i have 5 banks with 6 in each bank

I'll prototype it and hook it up and see if it works...if not i'll use trim pots.
__________________
Former 461 Student/Mentor. Former 1272 and 1018 Mentor. Team 1555 Super-Fan.
Science and Engineering Can Open New Doors. --S.E.C.O.N.D.--
=~=!=@= #=$=%=
Co-Founder IndianaFIRST

Share your FIRST photos on Flickr!
  #8   Spotlight this post!  
Unread 04-04-2003, 15:24
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,792
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Radio shack has a really nice six position rotary switch, you can use. Just wire the switch with five 20K ohm resistors in series across each pin of the switch. Attach one end to +5 volts and the other end to power supply common. Take the wiper (common terminal) and attach it to an analog input. All the way down will be zero volts, all the way up will be 5 volts and you will have four values in between approx 1 volt apart.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #9   Spotlight this post!  
Unread 05-04-2003, 22:40
Josh Hambright's Avatar
Josh Hambright Josh Hambright is offline
{Error Processing Custom Title}
AKA: oneangrydwarf/jtosh
no team (old school gangsta)
Team Role: Alumni
 
Join Date: Apr 2002
Rookie Year: 2000
Location: Indiana
Posts: 1,421
Josh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond repute
Send a message via AIM to Josh Hambright
Thank for the advice Al,

Thats basicly what we came up with (including the radioshack rotary switch).
I came up with something that was a bit more complicated and had like 30 different programs and still worked...but then someone else on the electrical team made another one when they were board...that used regular toggle switches and wired the whole thing in serise so that as you flipped the switches you got more resistance...

If i have time to get mine done we'll use mine but it looks like we may just go with the simpler one

thanks for all the help everyone.
__________________
Former 461 Student/Mentor. Former 1272 and 1018 Mentor. Team 1555 Super-Fan.
Science and Engineering Can Open New Doors. --S.E.C.O.N.D.--
=~=!=@= #=$=%=
Co-Founder IndianaFIRST

Share your FIRST photos on Flickr!
  #10   Spotlight this post!  
Unread 06-04-2003, 09:27
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,792
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Josh,
If you bring the Radio Shack Switch over to our pit I will show you how to modify it for 11 positions. This is what we did and then it was just a matter of soldering in ten 10K resistors and two wires.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #11   Spotlight this post!  
Unread 06-04-2003, 15:04
Josh Hambright's Avatar
Josh Hambright Josh Hambright is offline
{Error Processing Custom Title}
AKA: oneangrydwarf/jtosh
no team (old school gangsta)
Team Role: Alumni
 
Join Date: Apr 2002
Rookie Year: 2000
Location: Indiana
Posts: 1,421
Josh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond repute
Send a message via AIM to Josh Hambright
Excelent i will make sure to stop by or send the other electronics kid over

Thanks for all the help

Josh
__________________
Former 461 Student/Mentor. Former 1272 and 1018 Mentor. Team 1555 Super-Fan.
Science and Engineering Can Open New Doors. --S.E.C.O.N.D.--
=~=!=@= #=$=%=
Co-Founder IndianaFIRST

Share your FIRST photos on Flickr!
  #12   Spotlight this post!  
Unread 06-04-2003, 16:27
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,792
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Josh,
I saw you in Chicago going down for the award. I didn't know it was you. Hope you do well for Chairmans at Nationals, you have some stiff competition with Huskie Brigade and others.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #13   Spotlight this post!  
Unread 15-04-2003, 16:12
Lloyd Burns Lloyd Burns is offline
Registered User
FRC #1246 (Agincourt Robotics)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Toronto
Posts: 292
Lloyd Burns is an unknown quantity at this point
A little late...

One thing to remember is that the analog inputs are different on the OI and the RC. RC = voltage input, OI = charging current from +5V to the input.

The RC is as described in this thread, but the OI essentially measures resistance from +5V to the analog input, by measuring the time it takes to charge a known capacitance over a given voltage change, through the resistance.

This is becasue they can then use joysticks --- the same way that the Apple II, ][+, //e, //c and all did in the early 1980's, and similar to the IBM PC and PCJr of the same era.

I did a check on the then current '98 control system, with a ten turn pot going into both types (at different times), and reading the debug values at various positions of the correctly wired pot.. The was a small nonlinearity with the OI. I have not done it with the black boxes, to see if IFI has improved the sytem.
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
Chief Delphi Invitational 2003 - input Mike Martus General Forum 4 03-09-2003 13:23
Robot Controller Digital Input crazycliffy Electrical 11 16-02-2003 04:28
2.5 is alive !!!! (input ! .. more input ! ) Lloyd Burns Programming 2 14-01-2003 19:15
Meet Team Resistance 86 archiver 2001 2 24-06-2002 00:54
DC Motor current to an Analog Input junkyarddawg Motors 43 04-04-2002 15:53


All times are GMT -5. The time now is 03:11.

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