|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: custom button panel
Quote:
ye olde kaboom XD but i am not looking for something so complicated, i just want to simpify the controls for the operator, because the joystick is sometimes making a lot of headache. i will porbably use an arduino with unojoy, and if it won't work i will use the msp430. i want to use the arduino IDE because i am not a programmer myself (and i do not wish to be XP) and this is the easiest way i can make this work. can i contact you if i will have difficulties with wiring/programing? thanks! |
|
#2
|
||||
|
||||
|
Re: custom button panel
Quote:
Last edited by RyanN : 16-09-2016 at 12:23. |
|
#3
|
|||
|
|||
|
Re: custom button panel
We use a keyboard emulator called PoKeys. https://www.poscope.com/products/pokeys-devices/
It's been really easy to work with as you assign values to keyboard keys you wouldn't normally use. Also, if the control panel happens to fail, the operator can make use of the keyboard in an emergency. |
|
#4
|
|||
|
|||
|
Re: custom button panel
Quote:
![]() ![]() |
|
#5
|
|||
|
|||
|
Re: custom button panel
It seems like a good time to post our minimalist custom control solution.
https://github.com/frc4646/lightswitch |
|
#6
|
||||
|
||||
|
Re: custom button panel
Quote:
Quote:
|
|
#7
|
|||
|
|||
|
Re: custom button panel
Thanks! So many rules, it's hard to remember what's in and whats out, thanks for taking the time to do the research and posting the rule.
|
|
#8
|
|||
|
|||
|
Re: custom button panel
Quote:
Option B: Use analog input on "joystick" and just break it up into ranges. Option C: Put the control in software on the Driver Station Dashboard and the robot doesn't start auto until it receives its directions. We typically use Option C, particularly as we had at least three different settings to configure each match (goal, position, defense). |
|
#9
|
||||
|
||||
|
Re: custom button panel
Quote:
Say you have a 6 position switch, you would wire it like: GND-> Position 0 - 2kOhm - Position 1 - 2kOhm - Position 3 - 2kOhm - Position 4 - 2kOhm - Position 5 <- +5V Then connect it to the joystick input. I guess it goes from -1 to 1, like shown below: Pos 0 -> ~-1 Pos 1 -> ~-0.6 Pos 2 -> ~-0.2 Pos 3 -> ~0.2 Pos 4 -> ~0.6 Pos 5 -> ~1 You'll want to factor in some tolerance. It won't be exactly -1, -0.6, etc. In this case, you have 0.4 units between each measurement. You can test between the cases. if ana < -0.8 pos = 0; else if ana >= -0.8 and ana < -0.4 pos = 1; else ifana >= -0.4 and ana < 0 pos = 2; else ifana >= 0 and ana < 0.4 pos = 3; else if ana >= 0.4 and ana < 0.8 pos = 4; else // in this case, this has to be true: ana >= 0.8 pos = 5; |
|
#10
|
|||
|
|||
|
Re: custom button panel
You can also calibrate the software to the actual values measured. Since this isn't going in the bag this shouldn't be an issue.
|
|
#11
|
|||
|
|||
|
Re: custom button panel
Quote:
but i think that if we will buy a new controller it will be an arudino or an msp430 because they are cheaper (the msp430 is in first choice for 20 credits, arduino is about 25$) and they have more I/O us to use. anyone here is familiar with this kind of project and i can contact to him if i need any further help? thank you very much guys! |
|
#12
|
|||||
|
|||||
|
Quote:
Can't speak to this product, but eStop makes some pretty neat stuff. We used one of their battery hold-downs this season and loved it. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|