![]() |
Re: Potentiometer 5 or 6 detents
My plan was to mount it on the RC.
|
Re: Potentiometer 5 or 6 detents
Quote:
|
Re: Potentiometer 5 or 6 detents
Quote:
For a six-position rotary switch, I'd use six 15k resistors wired like this: Code:
+5 <----/\/\/--*--/\/\/--*--/\/\/--*--/\/\/--*--/\/\/--*--/\/\/--*What you'll get from this is the equivalent of a joystick with six discrete resistance values: 15k, 30k, 45k, 60k, 75k, and 90k. You should use a dashboard program to determine what the actual numbers end up being, and choose appropriate ranges in the software to decide which of the six positions is chosen. |
Re: Potentiometer 5 or 6 detents
Quote:
|
Re: Potentiometer 5 or 6 detents
I see a business opportunity for Andy Mark/IFI! Latching potentiometers/ prewired variable resistance rotary switches!
Travis, I thoroughly googled for a pre-made product that would suit your needs but came up with nothing. The best solution in this thread is Alan Anderson's, which is exactly the method I was going to post before I saw his. I'd check to see if any of the students on your team are taking/have taken electronics classes at school. If so, you can just buy a rotary switch and some 15 Ohm resistors (if you need more inputs, decrease the Ohm rating of the resistor. What you want = 100 / Number Of Switch Settings + 1. Get all of this stuff at RadioShack) and give it to the student to wire up. Anyone with basic knowledge in wiring should be able to tackle this circuit. |
Re: Potentiometer 5 or 6 detents
Quote:
|
Re: Potentiometer 5 or 6 detents
In past years we had like three two position switches and we would have a setting like (up down up) or (off off on) for the switches before each match depending on what autonomous mode we were going to run. But such things could get confusing in the rush of competition, and I see your desire for the rotary type control.
|
Re: Potentiometer 5 or 6 detents
The potentiometer I found on digikey seems like it will work, but as Joe told me, is an SMD style and would require some delicate soldering. I think I can handle the soldering, but is there any reason not to use this pot?
http://dkc3.digikey.com/PDF/T061/SectF.pdf Page 74, 16mm square rotary potentiometer with detents. Also, I think I can handle the rotary switch and 15k resistor method as well. I think mounting the rotary switch and a knob will be easier than the pot with detents and no shaft with a make shift shaft and knob. Edit: How would that diagram differ if I put the rotary switch/resistor setup on the RC? |
Re: Potentiometer 5 or 6 detents
Quote:
|
Re: Potentiometer 5 or 6 detents
There are pots that exist that have detents built in but there are generally used for volume controls (are log taper, 10K) and have 10-12 detent positions. A better solution is to pick up a six position switch at Radio Shack.
http://www.radioshack.com/search/ind...ar y%20switch This switch is easily modified to become a twelve position switch by bending one of the stopper tabs out of the way and cutting one of the contact springs. Wire 9.1K ohm resistors from each terminal to the one next to it to form a series string. When you are done, you have a stepped 100K pot. Wire as you would any pot to an analog input on the OI and then set your programmers to work. RS has some nice shiny knobs as well. If you would like to see one in action, stop by our pit in Atlanta. |
Re: Potentiometer 5 or 6 detents
Are you saying to use the 9.1k resistors if I wanted to have 12 positions? Would I still use the 15k resistors if I were to only use the 6 positions?
|
Re: Potentiometer 5 or 6 detents
Quote:
|
Re: Potentiometer 5 or 6 detents
Quote:
The total series value of an RC-connected "stepped potentiometer" is not that critical, but 100k is still a good target. |
Re: Potentiometer 5 or 6 detents
Here is a photo of our switch from last year, which was connected to the RC. It’s a six position switch with five 22k resistors (100k / (# positions - 1) = 20k, 22k was the closest we could find at Radio Shack). The switch positions were then 0k, 22k, 44k, 66k, 88k, & 110k. This would give analog values of about 0, 205, 410, 615, 820, and 1024. In the autonomous code, we looked for a range of 205, centered on each of those values.
Code:
void User_Autonomous_Code(void) |
Re: Potentiometer 5 or 6 detents
Quote:
I think next year I'll encourage the team to make something for the OI, however. [1] Which meant that the switch went from 0 to 11. One team member asked "can't it just to to 10 instead." Of course, I had to answer "no, these go to 11." Only one person got the joke. |
| All times are GMT -5. The time now is 04:26. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi