Pages

Tampilkan postingan dengan label ti. Tampilkan semua postingan
Tampilkan postingan dengan label ti. Tampilkan semua postingan

Sabtu, 07 Mei 2016

TI Tiva C Connected LaunchPad

Allow me to introduce the shiny new Texas Instruments (TI) Tiva-C Connected LaunchPad!


Lots of pins, two 40-pin BoosterPack headers, two buttons, four LEDs, a USB host/slave port and an Ethernet port! All for $20 with free shipping.

That last bit is why I bought one the moment I read about it. Then I started hoping that Energia supported it. Luckily for me, Energia seems to have started working with TI directly and already had support for this board. Energia is even linked on TIs product page and mentioned in the user manual / datasheet.

If you arent familiar with Energia, its a port of the Arduino IDE to work with TI LaunchPads. It supports most of the LaunchPads, and more are being added fairly regularly. Energia also has a decent pile of libraries for the various LaunchPads, including the basic i2c, SPI, and so on, as well as Ethernet and WiFi. This makes getting your LaunchPad connected to the outside world just as easy as with an Arduino.

That double row of 0.1" spaced holes along the bottom of the board are a complete breakout of all the pins. The manual / datasheet gives header part numbers you can buy from your favorite parts house and instructions to install them. Once you do, you can plug the entire board into the middle of a solderless breadboard. Its a fairly interesting feature, and one that I hadnt seen before.

The most attractive part of this board to me is the cost. At $20 it costs less than an Arduino ($25) or an Ethernet Shield ($31 for a genuine Arduino), let alone both. It even comes with a USB cable for programming it as well as an extendable/retractable Ethernet cable. To any annoyed Arduino fans out there, know that I too am an Arduino fan and use them often.

On the bottom of the Tiva-C Connected LaunchPad (thats enough of the official name, Im going to call it the TM4C1294 LaunchPad from here on out; the core chip is a TM4C1294) we find female headers as well as pin designations:


The white stickers have your boards serial number and MAC (media access control) number, though you can set the MAC in software to be anything youd like.

Beyond Ethernet, there are plenty more communication methods and channels at the TM4C1294s disposal.
  • 7 TTL Serial ports.
  • 3 I2C ports.
  • 6 SPI ports.
  • USB Host / Device port.
  • At least two CAN bus ports.
Is that enough for you?

Before you start worrying about having enough RAM for all this, let me assure you: You do. You get 256KB (thats kilobytes, no funny business with kilobits) of RAM, 6KB of EEPROM storage arranged in 32bit cells, and a full megabyte of flash storage for programs. Oh, and dont forget the 120MHz ARM Cortex A4 CPU with hardware floating point abilities.

For input / output you get 20 analog inputs spread between two 2 million samples per second 12bit ADCs, tons (>70) digital inputs/outputs, >20 PWM outputs, two pushbuttons and four LEDs, plus a RESET button and a WakeUp button. For a full rundown on the pins available in Energia, heres a pinmap.

So weve got tons of everything, what do we do with it?


Anything?

Beyond the snarky answer, I have no idea what you want to do with it. Heres something cool though! Texas Instruments bought a chunk of Exosite.com for people to use with LaunchPads, or any other device.

Exosite is a cloud storage and delivery platform, among other things. Using TIs section of it you can create a free account and start uploading your data, whatever it might be. Once its there you can do all sorts of interesting things with it. Ive been having it chart the light level in my living room for the last 18 hours or so. Heres the chart ti.exosite.com generates for me:


It can do far more than just graph data, as well. Ill go into more detail on how to get your TM4C1294 LaunchPad, Arduino Ethernet, Raspberry Pi, desktop computer, or anything else that can speak basic HTTP, connected to TIs slice of Exosite in a future blog post.

Alternatively, you have enough RAM storage and CPU power to use the TM4C1294 as a web host itself. If youre only going to use your data (whatever it might be) on a single network, there is no reason to bring the cloud into things at all. Writing webpages inside programs is time consuming, but certainly doable. The first thing I did was make a webpage hosted on the TM4C1294 that allowed me to turn the onboard LEDs on and off.

In conclusion, if youre looking to dig into the much vaunted Internet of Things, this might be a good place to start.

-Ed Smith
Read More..

Rabu, 04 Mei 2016

TI LaunchPad Microcontroller

At the May 29 meeting of the Humboldt Microcontrollers Group, Ed and Nick were discussing the Texas Instruments (TI) LaunchPad microcontroller (MCU).

This MCU was also in a few news articles recently, so I decided to do a little research on this item and see if its something worth buying for future electronics projects or experimentation.

Automation recently had an article titled "Prototype Internet Of Things Apps for $20?" This article states:
"...Texas Instruments has released it newest LaunchPad microcontroller—the Tiva C Series Connected LaunchPad. According to Texas Instruments, this MCU enables engineers to prototype a range of cloud-enabled applications, bringing expansive connectivity to any new or existing LaunchPad-based application. And it retails for $19.99. The peripherals on this MCU platform can reportedly run multiple communication stacks simultaneously, allowing engineers to develop network gateways that can connect multiple endpoints to the cloud.  Example applications include sensor gateways, industrial communication/control networks and cloud-enabled devices, as well as home automation controllers..."
At $20, the above mentioned version of the TI LaunchPad is about $10 less expensive than an Arduino Uno. And the LaunchPad MSP-EXP430G2 is only $10. Because Im very early in the learning stages of how to use MCUs and what the various features are used for, I dont yet know how to compare the TI LaunchPad to the Arduino Uno or to the many other MCUs available from DigiKey or one of the other electronic component vendors.

A May 30 article titled "Texas Instruments do-it-yourselfers show off creations at annual event" talks about a few DIY projects TI employees have done with their microcontrollers:
"...Fernandez recently created an LED light system that turns his kitchen into “a European nightclub.” He attached an LED light strip to his kitchen cabinets, programmed it using a TI microcontroller developer kit called LaunchPad and sends Twitter hashtag messages to change the color...TI test engineer Luis Flores uses a smartphone to scroll LED light images or text across sunglasses. He used TI microcontrollers, a Blue Tooth interface and a microphone. Zwerg created his low-water, switch-controlled outdoor shower with a 12-volt battery and a microcontroller. He takes it every year to the Burning Man festival in the Nevada desert...Leonardo Estevez, a researcher at TI’s Kilby Labs who has been making beer for 20 years, wanted to create a better brewing process. So, he developed a smartphone-controlled microbrewery kit based on a TI LaunchPad. Is the beer any good? “The neighbors have never complained,” Estevez said..."
Ill do some more research tomorrow and also ask Nick and Ed if theyll consider collaborating on a blog post about the specific advantages of the LaunchPad vs other MCUs.

**********
Read More..

Rabu, 13 April 2016

Arduino Uno vs TI LaunchPad MSP430 edition

[Post today by Ed Smith, Member of the Humboldt Microcontrollers Group]

Today Im going to compare the well known Arduino platform to a relative newcomer, the Texas Instruments (TI) LaunchPad.

Im writing this with the assumption that you, the reader, have at least a vague idea what a microcontroller is and are curious about them.

Arduino Uno (Atmega328P)

There are a lot of Arduinos out there (link), were going to focus on the Uno as its the gold standard of Arduinos. You can get smaller Arduinos, cheaper Arduinos, more powerful Arduinos, but it all centers on the Uno. This is an Uno (photo from Arduino.cc):


For the full specs, click here.

An Arduino Uno will run you between $25 and $30 depending on where you buy it. This gets you an Arduino Uno only; youll need to buy a USB-A to USB-B cable to plug it into your computer, so figure $30-$35 for Uno+Cable.

This gets you 20 IO pins, 6 of which do analog input and 6 of which can do PWM output (pulse width modulation). Should your code crash or you have other reasons to need it, there is a RESET button on the board. There is an LED built into pin 13 for easy testing and/or status reports and/or the MCU version of Hello World!. Disabling this LED if you want to use pin 13 for something the LED interferes with requires cutting a trace or de-soldering the LED.

Arduinos have a lot of expansion options. Boards called shields can be stacked on top of the Arduino board to add features. Ethernet? Sure! Motor control? You bet! WiFi? Yup. GSM Cell Radio? Why not? The full list is too large to list here. Many of them can be stacked on top of other shields as well. Arduinos start to look pretty funny after two or three shields are stacked on them, but its a wonderful ability.

The really cool bit about Arduinos though is the IDE (which stands for something Im sure, but I dont know what). It takes the opaque (to me, anyway) mess of the AVR C language and turns it into a fairly simple, fairly logical language.

Also worth noting is that Arduino is a separate entity from the company that manufacturers the actual microcontroller chip. Atmel makes the microcontroller chip, then Arduino buys the chip and assembles the single-board microcontroller and sells it.

Texas Instruments MSP430 LaunchPad

Now that weve met the Arduino, lets meet the TI LaunchPad (MSP430). One of the more important differences relates to who makes the MCU on the LaunchPad. TI makes it. TI is big, TI is bloody huge. This means that TI can make a microcontroller development board (what an Arduino is too, as a note) for a lot less money than a relatively small company like Arduino can.
This is a TI LaunchPad (MSP430G):
For full specs, click here.

A TI LaunchPad (MSP430) costs $10 with free shipping from TI directly. Thats pretty amazingly cheap. This gets you the LaunchPad, a USB cable (Mini-USB, just like cameras and such) and, in the case of the units I bought in 2012, three MSP430G chips of varying complexity and speed. Ill be talking about the MSP430G2553 in this article, as it is the most powerful of the three and what you officially get with the board. I do not know if you still get the extras now (2014).

You get 16 IO pins, of which 8 can do analog input and 7 can do PWM. You also get a green LED connected to a PWM pin and a red LED connected to a digital IO pin. Both LEDs can be detached from their pins by removing a pair of jumpers. You get a RESET button just like the Arduino, as well as an extra pushbutton that you can use in your projects.

TI puts out an IDE (actually a couple) for programming the MSP430. I have attempted to use it and failed miserably. If youre fluent in C you may have better luck. Thankfully the folks at Energia.ru have ported the Arduino IDE to work with LaunchPads! Theyve ported many libraries as well, so many Arduino programs can be moved between the two platforms very easily. Its not quite a simple copy/paste as the pin names are different, but its close. The LaunchPad also has expansion boards, TI calls them BoosterPacks. They add all sorts of features, just like the Arduino shields do. The BoosterPacks do not, however, stack.

Now that weve met the two, lets compare directly! Im going to list the advantages that each platform has; this is not a comprehensive list.

TI LaunchPad MSP430 Advantages: 
  • Much lower cost. $10+tax and youre set. Ardunos $25+tax+shipping+buy-a-USB-cable cant compare.
  • Better built in LEDs, and a button.
  • Standard header spacing for pins, no odd 0.05" gap to foil breadboard/perfboard projects.
  • Much more flexible PWM controls. The MSP430G2553 uses a 16 bit timer for PWM rather than the Atmega328Ps 8bit timer.
  • Very good low power draw features for long battery life.
  • Replacement chips dont need pre-programming/bootloading before working with the Energia IDE.

Arduino Uno Advantages:
  • Massively huge community support. This is not to be under-estimated.
  • Stackable shields mean the sky is the limit for feature expansion.
  • Capable of 40mA source/sink per pin; this is enough for very bright LEDs. The MSP430 LaunchPad caps out at ~ 4mA.
  • Can run at 5V or 3.3V (or anywhere between 1.8V and 5V if you change oscillators). The MSP430 caps out at 3.6V.
  • More IO pins, 20 vs 16. It might not seem like a huge difference, but I have projects where Ive used 18 of those pins after using a pin expander to gain 8 more.

Either board is an excellent choice for people just starting out in the microcontroller world. Personally I prefer the MSP430 LaunchPad for most things due to the button, LEDs, and cheap replacement cost if I blow it up. I have many, many Arduinos, however, and use them quite often as well.

Its worth noting that both TI and Atmel make a lot of different microcontrollers. TI makes a number of snazzier LaunchPads, and Arduino makes a number of snazzier Arduinos as well. Many of the LaunchPads are Energia compatible; all of the Arduinos are Arduino IDE compatible of course. Many other Atmel MCUs are also Arduino IDE compatible with modifications/expansions of said IDE.

**********
Read More..