|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
custom button panel
hi!
my team is trying to build a custom button panel to control our robot, and we have some questions: - i have read somewhere that the button panel is made of some kind of I/O microcontroller with buttons connected to it. is there a specific one we must use? because we have a microcontroller in our lab (i can't remember his name) which can be used as HID. - how do we make our program to "read" this kind of input? (we use java) thanks in advance! |
|
#2
|
||||
|
||||
|
Re: custom button panel
Assuming you don't use FRC rule breaking space magic, you'll most likely just be building a joystick with no axes. You can use the TI Launchpad you received in your 2015 KOP, instructions here: http://processors.wiki.ti.com/index.php/MSP430_LaunchPad_Operator_Interface_for_FIRST_Robo tics_Competition. You can then read it from code just like any other joystick button. You don't have to use this one, any HID compliant joystick will work. This one just has FRC support.
Side note: You can read from autonomous, it just reads the last joystick value right before autonomous begins. |
|
#3
|
|||
|
|||
|
Re: custom button panel
Quote:
but we won't use this one, i think we don't have it anymore. we have some kind of prototyping kit. if the comuputer can read the signal from the device, the robot code will just "find" it? or we need another software for it? |
|
#4
|
|||
|
|||
|
Re: custom button panel
Quote:
http://www.cypress.com/documentation...ch-starter-kit |
|
#5
|
||||
|
||||
|
Re: custom button panel
Quote:
|
|
#6
|
|||
|
|||
|
Re: custom button panel
Quote:
and i am pretty sure it can act like an HID, we have it because it was used for a simmilar purpose. and thanks for the help! |
|
#7
|
||||
|
||||
|
Re: custom button panel
The computer has no special software. All the custom software that makes it reads the buttons is on the micro processor. Again, I don't have any experience with PSoC boards at all, so I can't help with programming that.
|
|
#8
|
|||
|
|||
|
Re: custom button panel
Quote:
thank you very much for your guidance! |
|
#9
|
|||||
|
|||||
|
Re: custom button panel
If you have an arduino there is a software called unojoy that uses an arduino board and acts as a joystick.
|
|
#10
|
||||
|
||||
|
Re: custom button panel
Quote:
The CCI requires no additional software and integrates easily with the FRC supported programming environments. You can find more information on the following page at eStop Robotics: https://www.estoprobotics.com/estore...d&productId=33 |
|
#11
|
||||
|
||||
|
Re: custom button panel
Quote:
|
|
#12
|
||||
|
||||
|
Re: custom button panel
I'll second the eStop CCI board, we've used it for the past 4 or so years on all our button boxes. It's incredibly easy, no need to do anything with the board besides plug it into a computer.
Quote:
|
|
#13
|
||||
|
||||
|
Re: custom button panel
Quote:
|
|
#14
|
|||
|
|||
|
Re: custom button panel
I've used this Adafruit Bluefruit EZ-Key - 12 Input Bluetooth HID Keyboard Controller at about $20.
You wire up switches to the board. It connects to the laptop via Bluetooth. You can program the board to be a sudo keyboard with any key chord combination you want. (ie a,A, ctl-A, Alt-A, ctl-shift-alt-A, etc. ) You can use any kind of switch. There are places you can get joysticks with switches on the axis. Not sure what the FRC rules are around bluetooth keyboards. I've used these to make a wall button setup that talks to a home control computer, fun box for the grandmuchin, and working on a Kerbal Space Command console. |
|
#15
|
||||
|
||||
|
Re: custom button panel
I've been working on a project for this. Team Fusion has been using this for several years and I made a new revision that fixed a few issues for Garnet Squadron.
Currently I'm working on taking LabVIEW out of the equation and relying on Python and the wxPython extension. Essentially, the board is an Arduino Mega 2560. The only special chip is the LED driver, which is a constant current driver made for driving LEDs. I have the output set at 20mA, which is very common with LEDs. It's easy enough to change though. ![]() Here's the control board Garnet Squadron made for this year's robot: Finally, below is the Python code in action. I'm currently working on a simulator because lets face it... I don't want to carry around the driver station everywhere I go. ![]() The good news with the simulator is it works exactly the same as the real board. You can unplug/plug it in and toggle every input as well as see every output. Furthermore, since it works exactly the same as the real board, you can use the simulator to control the robot, or your simulated robot. The simulated robot with simulated button panel is where this can really shine. This code isn't finished yet, but when it is, the GUI will not be shown by default. Instead, there is a taskbar icon that indicates the status of the control board. Green means good; red means bad. ![]() Is this in mass production? No... I need to tweak a few more hardware things. For basic inputs such as switches and potentiometers and with LED outputs, it's great. There are some problems with running servos. They're interfering with the analog inputs. All the design files and software are in our repository here. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|