Internet Explorer is not a supported browser for TI.com. For the best experience, please use a different browser.
Video Player is loading.
Current Time 0:00
Duration 12:45
Loaded: 0%
Stream Type LIVE
Remaining Time 12:45
 
1x
  • Chapters
  • descriptions off, selected
  • en (Main), selected

[TEXAS INSTRUMENTS JINGLE]

So I hope that was a nice run-down of the TI cloud computing tools that can be used. Next, we're going to jump into our advanced topics and going to hit a lightning round of Energia libraries, just for typical ones that are good for you to know about.

The first one is a little bit of a review. We talked about the Educational BoosterPack a few sections ago. That was actually built into Energia 18.

And that's the major reason to show you this, is that not only can you run it from Tirex, in this case, instead of the Star Wars theme that you heard, we're going to show an LCD joystick example. But not only can you see it in Tirex, as you'd expect, it must be 432 built in. And there's the LCD joystick that we're going to run.

But also, if you do bring it in locally-- and notice you just go to C colon. I just have placed in the Energia. You can put in anywhere you want.

And notice that you can have multiple versions of Energia running if you want to. But in this case, as you expand, you will see that, under the examples-- then these are the built-in examples. There is LCD joystick. So it just happens to be a local.

The next example we'll show are neopixels. What are neopixels? You might have seen them with lots of products out there that happen to have lights. It's basically a way to have daisy-chained LEDs. In some case, they're just RGB. Some case are RGB and white. And they all can be set in Energia.

Now you do need to bring in a library off of GitHub. And once you do that, you're able to run the example straight out of the box. And there's the instruction on how to download the zip file basically into the library directory, so quite straightforward for you to then be able to build-- going back to here, like we mentioned.

Go to Energia 18. And so the example is you go in the library directory. And you'll download it into here, though I actually haven't done that yet on this PC, but something that's simple and easy to do.

The third example that we'll show is the Grove Starter Kit. And at one point, I mentioned that there was a reason that we used the BeagleBone green. And this was actually the MCU version of that, where, if you get this BoosterPack that connects to a variety of LaunchPads, everything from relays to light sensors. All these different sensors, they can be built instantly in Energia.

Same type of deal where you have to download a library. And all the instructions are given. There's a little detail on the Grove Starter Kit. And it talks about how you go into GitHub. There was some discussion about it.

And then it talks about how to connect it and, of course, the GitHub location you go to, which I'm finding now, to actually download the library. And again, it gives you instructions there on how to do that. And then the case will actually play another buzzer, just because it's easy to hear.

And then, finally, we have actually TI BLE that you can run as a BoosterPack on various TI LaunchPads, just as like previous. You need to go to the web and get a particular library for it. In case there's a whole BLE Energia, get a page that you can download and run.

In this case, what we'll be doing on a MSP432 LaunchPad. All the instructions and such are here, though, if you don't want to deal with BoosterPack, the other-- I mean, if you don't want to deal with Energia, another option you can do, actually, is use simplistic A plug-in.

This is going back to-- was it Energia? This is going back to all the Simplelink SDK options that are out there. There are also Bluetooth options that you can, again, load in straight from Tirex into Composer Cloud if you want and on these particular BLE applications, though we're just going to demo one of the Energia one is just for simplicity.

So we're back in stage two of our demo space. And we have here the mentioned MSP432 LaunchPad and, more importantly, the BoosterPack, Educational BoosterPack, Mark 2 that has an LCD screen and the joystick that we wanted to demo this time.

So you can see there's actually xy coordinates that are presently on the screen. And it depends on the position on the joystick, which I'll put my finger on here to give it some stability. And as you can see, as I move the joystick up and down, the parameters change.

And of course, if you go out of the screen, it turns red. And I can go back up, go, I guess, to the left and right, et cetera. So giving, seeing you the power of using control for the joystick.

So the second demo we mentioned in our lightning round is neopixel-- and very straightforward power and ground connecting to, in this case, an eight pixel, neopixel, strip. And all we need is one GPIO. In this case, it happens to be the same LED one and GPI 1.0 that we used way back in the making square waves.

And it has a certain bit pattern that's going to get programmed and run. And that one GPIO is actually what's daisy-chained to all the other neopixels. So you do have to mention whether it's RGB or RGBW with a white and also how many links you have in each case, eight in the neopixel. So once you plug it in, the light show begins.

There you go. Got power, takes some to boot, and going through the different colors. I guess this is one that has RGBW on it. And the light show can actually get pretty complicated, if you want-- all the different colors and patterns and such that you can add in there.

So the third in our lightening round of demos is the Grove Starter Kit, which is the BoosterPack that you see here and a little hidden way behind there. I guess it's a pretty big BoosterPack. It is the actual is the, yup... This is the TI LaunchPad, so the Valueline version .

Though there is a variety of potential sensors and such, I'm going to just play the buzzer. And this one actually is "Twinkle, Twinkle, Little Star." It can get pretty loud, to the point I've had co-workers come and ask me to turn it off when I've played it for more than a few seconds.

[COMPUTERIZED TONES OF "TWINKLE, TWINKLE, LITTLE STAR"]

So for the fourth and final of our lightning round demos, we're going to do Energia BLE. And I'm going to use my phone, basically, as the simple central. And the simple peripheral is going to be the LaunchPad that you see here-- so MSP432, but running as recommended.

The BoosterPack we're running as a simple network processor image. It becomes a simple peripheral. So of course we have the good all PuTTY screen to see input and output as it goes.

So the BLE central, if it looks and sees the BLE peripheral. It sees the Energia serial is what's being advertised by the BLE peripheral here, Energia serial here. I'll go ahead and connect using this light blue explorer app, and a bunch of information there.

But one nice thing to use is place a gate, client TX, client RX. Let's first do client TX. So it's a little tricky with the hex values.

And what are you actually going write depending on what the out points you did use. So I'm going to put in 41, which is an Ascii, a number which will now show up on the PuTTY screen as the letter A. And of course then I'm going to go back.

Well, I guess I could do one more letter, if you just want to see it. Let's do 42, which is a capital B. Then, going back to service, now we'll do a client RX.

And here on the PuTTY screen, I'll go ahead and type-- so I will type in a capital C, which, if you read from the phone, is a 43 Ascii value. Type in a capital D. And that should be 44.

So there you see the communication between the BLE central, which is the phone, and the BLE peripheral, which is the MSP432 LaunchPad with the CC20650 BLE module BoosterPack. And that's it for our various Energia library demos-- and plenty more out there, just four examples and different ways to install them.

So hopefully those are four nice Energia library examples for you to take a look at. And here is basically a summary of the BoosterPack, and you got to see the joystick example built in everything there. Neopixel driver-- I've seen that every place-- the Grove Starter Kit that's got all kinds of different sensors and such, and finally, TI BLE that you can connect to the various LaunchPads. So that's it for Energia libraries. Our next topic will be layering in Energia code.

[TEXAS INSTRUMENTS JINGLE]

This video is part of a series