Porting Contiki to the TI MSP430 Launchpad

For many years Contiki has been one of the main choices when it came to choosing an IPv6 over Low power Wireless Personal Area Networks stack (aka 6LoWPAN). It is developed by a world-wide team of developers with contributions from Atmel, Cisco, ETH, etc… and is open source. As most platforms to which Contiki has been ported are quite expensive, [Marcus] decided to bring the operating system to the TI Launchpad. For our readers that don’t know, the latter is based on a msp430g2452/2553 microcontroller, which only have 256/512 bytes of RAM and 16kB of ROM. As a side note, Contiki typically requires 10k RAM and 30k ROM.

[Marcus] therefore had to remove several features from Contiki: queue-buffering, energy estimation and regrettably uIP. His test setup (shown above) uses the TI CC2500 radio that can be found for less than $2 on Aliexpress, for which he wrote radio drivers from scratch. He also coded his own radio duty-cicling layer, as the one included in Contiki was too big.

Wireless Encryption Between Galileo and a MSP430

[Mark] recently finished his latest project, where he encrypts wireless communications between the new Intel Galileo and a Texas Instruments MSP430. The wireless interfaces used are the very common nRF24L01+ 2.4GHz transceivers, that had a direct line of sight 15 feet range during [Mark]’s tests. In his demonstration, the MSP430 sends an encrypted block of data representing the state of six of its pins configured as inputs. This message is then received by a sketch running on the Galileo and stored in shared memory. A python script then wakes up and is in charge of decrypting the message. The encryption is done using AES-128bits in Electronic Codebook mode (ECB) and semaphores are used to prevent simultaneous accesses to the received data. As it is the first project using an Intel Galileo we received, don’t hesitate to send us a tip if you found other ones.

The Cramp: A MSP430-powered crane lamp

theCramp

If you think your last project required a lot of soldering, take a look at [Multivac’s] remote controlled and fully-articulable desktop crane lamp. Sure, it’s a 430 microcontroller combined with an LED driver, 32 LEDs, PWM control, and some moving parts: but take a closer look at the structure. The Cramp uses an old HDD as its base, with the crane spinning around the main bearing that previously supported the platter. A system of spools and pulleys provides a reasonable range of motion to the rest of the build. Relocating the entire assembly, however, is evidently an unpleasant task.

[Multivac] based his design on a Liebherr LR1750 Crawler Crane, which he meticulously pieced together using leftover copper salvaged from an upgrade to his home’s mains wiring. A mountain of solder secures what must include several hundred joints—possibly more. The head of the lamp is an elegant exoskeleton-interpretation of industrial designer Eero Saarinen’s TWA Flight Center. You can see the Cramp in action in the video below.

Continue reading “The Cramp: A MSP430-powered crane lamp”

MSP430 alarm clock project

msp430-bedside-alarm-clock

[Markus] turn his breadboard LED matrix tinkering into an alarm clock which wakes him each morning.

Don’t be fooled by how clean his assembly work is. That’s not a fabbed PCB, it’s a hunk of green protoboard which a lot of point-to-point soldering on the back side. It’s driven by the MSP430 G2452 which is oriented vertically in this image. The two horizonal ICs are 595 shift registers which drive the LED modules.

We already mentioned the cleanliness of his assembly, but there’s one other really cool design element. On the back of the unit is what looks like a battery holder for two AA cells. He’s using just one Lithium Iron Phosphate battery (3.2V) which is in the upper of the two cavities. This let him cut the lower part of the holder at an angle to act as a stand for the clock.

Don’t miss the video which walks us through the user interface. It has what you’d expect from an alarm clock. But there is a really bright white LED which mimics a sunrise clock and it does more than just buzz one note when the thing goes off.

Continue reading “MSP430 alarm clock project”

MSP430 touchscreen piano

msp430-touchscreen-piano

[Rohit Gupta] wrote in to share this touchscreen piano project he built around the TI Launchpad. It provided a way for him to explore using a resistive digitizer found on a lot of mobile devices. These are simply stuck to the top of LCD screens and replacements are inexpensive, but salvaging one from old hardware is an option as well.

The first thing he did was to test the four outputs of the digitizer with his multimeter. Logging the changing resistance will help make sure you’re reading the correct wires and are able to zero in the settings before you start coding. [Rohit] uses the ADC on the MSP430 chip to read from the screen. He went with the algorithm from one of TI’s app notes to convert the readings in to X and Y coordinates.

He separated the screen into seven columns, each generating a different tone. Touching higher or lower on that column will alter the pitch of the note produced. You can hear an example of this in the demo after the jump.

Continue reading “MSP430 touchscreen piano”

MSP430 bit banged USB 1.1

msp430-usb-hardware

Here’s a rather exciting development for those who work with MSP430 microcontrollers. [M-atthias] worked out a way to implement USB 1.1 on a MSP430G2452. He’s bit banging the communications as this hardware normally doesn’t support the Universal Serial Bus. This is much like using the V-USB stack for AVR micros.

The test hardware seen above uses an 18Mhz crystal to get the timings just right. As this squeezes the most out of the chip it should come as no surprise that the firmware is written in assembly. This is still quite early on in development but the core features are mostly there, having been implemented and debugged over several versions already. Currently the base functionality can be loaded using under 2k of flash memory. You can download the Mecrisp package from [M-atthias’] sourceforge page. If you want to lend a hand testing or developing it would be greatly appreciated.

[via 43oh blog]

MSP430 Launchpad Game of Life shield

[100uf] built an LED matrix shield for the MSP430 launchpad. His goal with this design was to have it play Conway’s Game of Life. It does just that, as you can see in the clip after the break. But it’s just waiting to learn some more tricks. After he tires of watching the cellular automaton he can try his hand at making some LED pendant animations.

As you can tell, the board was made in his home workshop. It’s not etched, but milled using the CNC machine shown in this image gallery. This is a single-sided PCB, which works well enough for the surface mount components and the downward facing pin sockets. But we wonder how difficult it was to solder the legs of that 8×8 LED matrix. It does have plastic feet at each corner that serve as standoffs to separate the body from the copper layer. But it still looks like a tight space into which he needed to get his iron and some solder.

Continue reading “MSP430 Launchpad Game of Life shield”