![]() |
Using the TI LaunchPad from your KoP
As many readers here at CD may know, Texas Instruments is a diamond level supplier to FIRST, but you haven’t seen our name in your KoP before. TI works hard in the background to supply the silicon that goes into the control systems components, but we wanted to put our technology directly into your hands this year. To this end, we've included a new MSP430 LaunchPad in every single KoP.
Now, you can go ahead and use it for whatever you like (plenty of examples and information avaliable here: http://www.ti.com/ww/en/launchpad/launchpad.html), but our flagship purpose for this year is as a custom operator interface for your driver’s station. A solution was developed by software engineers at TI so that all you have to do is flash the board, and it will show up as a USB HID Gamepad, ready for input. This has been fully tested and vetted by our best guys, so you know it won’t stop working in the middle of a match. We also worked closely with NI to make sure that it’s as easy as possible for you to get started, and get some cool new features out of it. You may have already noticed the “Game Pad Tool” in your NI update. This is a dedicated application to make programming easy; just select your pinout and hit program, no additional downloads needed. Our engineers also worked with NI to add digital outputs to the HID specification available to you via the driver station. You can now use the LaunchPad to set digital indicators or anything else you can think of, straight from the driver’s station using new WPILib API calls. Since there is a limit to the number of pins available, we worked out three configurations that should have you guys covered:
For more information on the solution, with some fun examples of what you can do with a custom operator’s interface, check out our wiki page here: http://processors.wiki.ti.com/index....cs_Competition In addition to our activity here on CD, we’ve also set up a dedicated FRC support hotline that will let you contact TI engineers directly at FRCSupport@list.ti.com. Everyone on this list is not only a TI engineer, but also a dedicated FRC mentor, so try not to send us too many emails during week 6 :) We have a lot of other ideas for using the LaunchPad on your robots as well (an LED controller is at the top of our list) so keep an eye out for more examples to come! |
Re: Using the TI LaunchPad from your KoP
FIRST off, thank you!
We on 2073 love to do custom controls, this will give us a FANTASTIC option to add to our bag if tricks. Is there a way we can get a second, or even third, board? We often build multiple identical robots, and having two, or more, identical drivers stations would be an added bonus. |
Re: Using the TI LaunchPad from your KoP
Here at FRC 116, we implement custom OI controls for each of our robots over the past several years. We find that it's more effective to have a dedicated switch labeled "Deploy" than it is to try to remember which button on a joystick is mapped to the same feature. So, during the beta test cycle, the ability to create outputs ala LEDs was one of the many questions that got submitted.
Thank you for working with NI to make this happen. Mike |
Re: Using the TI LaunchPad from your KoP
Quote:
|
Re: Using the TI LaunchPad from your KoP
Quote:
|
Re: Using the TI LaunchPad from your KoP
Quote:
Uhhhh, I mean, to experiment with so that we can get even better at utilizing it's possibilities. Yeah, that's my story and I'm sticking to it. |
Re: Using the TI LaunchPad from your KoP
Awesome to hear you guys are jumping right in!
I know it's robot season, so there isn't much time left over for personal tinkering, but the community over at 43oh is a really great resource for people starting out. You might want to check out their projects forum for some ideas on what the board can do. |
Re: Using the TI LaunchPad from your KoP
Quote:
How can you tell the pioneers? They're the ones with the arrows in their backs. :yikes: |
Re: Using the TI LaunchPad from your KoP
Quote:
Currently, the output is just driving a pin high (3.3V) or low from the MSP430. Essentially, you can set it in WPILib, and it will get transferred to the HID device on the following USB poll cycle (every 20ms). I'll get my software cohort to elaborate a bit more for you guys on this. The max a single pin can source is 10mA, and the device total is 100mA. When I made the example panels on the wiki, I just used the indicator pins output to directly drive the LEDs. No problems so far. |
Re: Using the TI LaunchPad from your KoP
1 Attachment(s)
Quote:
If you load one of the three default firmware images it becomes straight forward to set/clear the indicator outputs using the API, which you can then use to drive an LED or other indicator. In addition, we are working on the documentation for the source code provided on our github page, beyond what is commented in the code (including setup instructions). So if you want to do something else with the output data outside of what the 3 preconfigured binaries provide, you can. |
Re: Using the TI LaunchPad from your KoP
Quote:
|
Re: Using the TI LaunchPad from your KoP
Quote:
|
Re: Using the TI LaunchPad from your KoP
Thank you TI! As the lead mentor of a team who experienced losing a match in the elimination rounds due to a different product with a similar function flaking out on us, I am very glad to see this change. Having a well-vetted board for custom driver station inputs included in the KOP is something I mentioned for briefly to one of the FIRST personnel at the event and he put it in his notes, and it's something I mentioned for again in the end-of-season survey.
I'm not sure if others lobbied for this to happen, but I feel like my detailed suggestions to FIRST on the matter were given very serious and detailed consideration, and FIRST and TI acted on those suggestions. It's nice to feel as if I've influenced positive changes in FIRST on a global scale. Thank you FIRST and TI! |
Re: Using the TI LaunchPad from your KoP
Quote:
I received my two extra boards yesterday. It was very simple to follow the instructions at http://processors.wiki.ti.com/index....cs_Competition to get the board configured as a Gamepad. Once I verified the DS saw it as a controller, I wanted to explore the code behind the magic, maybe even edit it. I was able to get Energia installed, but now I see that it does not support USB HID devices. Code Composer Studio looks to be the best alternative. What I would like to know is, it looks like the free use license for use with this model of the LaunchPad has a 16K code size limit. Is this a realistic size for the code we are currently using? Additionally, what folder(s) on the Github contain the example Gamepad projects? |
Re: Using the TI LaunchPad from your KoP
Quote:
Quote:
Quote:
CCS is Eclipse based and needs a workspace set up before importing projects. To set up CCS to work on the project, clone the MSP430-Gamepad repo into your workspace folder. From there you should be able to import and run the code. I will be posting more detailed documentation soon. |
| All times are GMT -5. The time now is 05:08. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi