TechEd 2007: .NET Micro Framework Demonstrated for Embedded Devices

By Scott M. Fulton, III | Published June 5, 2007, 5:22 PM

ORLANDO - During an invitation-only demonstration here at TechEd, small device developer EmbeddedFusion demonstrated a prototype programmable small device - actually a circuit board with a 2x3 color LCD display - that is capable of being programmed using Microsoft's .NET Micro Framework. It's a managed code system with which developers can rapidly build programs for embedded devices, and embedded device drivers.

Within the first 20 minutes of programming the card using C# in Visual Studio 2005 (after re-installing the EmbeddedFusion SDK), we were able to construct a simple application that...[drum roll]...blinked an LED on and off.

From a technical perspective, this is more difficult than it seems under the hood. As we learned, embedded devices employ signals on pinouts that are time-specific, while .NET functions are asynchronously sequential.

In other words, they tend to run one after the other, the way things typically do on a PC. So there's already a bit of incompatibility: An event scheme has to be worked up when you connect the programmable device to the PC via a USB cable, in which you have to force the PC to run on a clock.

The skeleton code for doing this is part of the EmbeddedFusion SDK for .NET Micro Framework. We then embellished that skeleton code with test code that samples the inputs every second (or, by our count, every 1000 milliseconds), and that pushes a pin - in the digital sense - every second to flip on and off the LED.

A much more complex sample involves the built-in two-axis accelerometer, and was demonstrated for us. There, a test .NET Micro application was pushed via USB cable into the embedded prototype card, which triggers it to run a ball-in-a-maze game.

On the surface, it looks like a fairly low-order game...that is, until you pick up the card itself and move it around. The active accelerometers scoot the ball around, just like a real steel ball inside one of those cheap plastic mazes you get in a happy meal.

An EmbeddedFusion prototype card connected to our test laptop, as it boots up.The analogy seems cheap, but the implications are fantastic. What has appeared to embedded developers to be extremely time consuming projects, taking on the order of months to complete, can be finished in a matter of no more than a few days - about as much time as you'd think a programmer should consume to accomplish a similar task on a PC.

During the demo, Rob Miles, who teaches at the University of Hull and is a Microsoft MVP for C# development, professed that with the aid of .NET Micro Framework, he had experienced his finest hour: In a matter of days, he used it to program the lasers that etch date stamps in the labels of Budweiser beer bottles.

Home controls manufacturer Leviton, we learned, uses .NET Micro Framework currently to develop security and energy efficiency devices for homes and offices.

As other guests shared with us, the implications of simple C# programming in the evolution of robotics could be staggering.

Comments

View comments by with a score of at least

Then again .... 1 second is 1000 miLiseconds, not 1000 miLLiseconds .... :D

Score: 0

|

umm... 1 second is 1000 miliseconds. not 1000 microseconds.

Score: 0

|

Thanks for uploading this, it gave me something to read on my lunch break.

http://www.zuneconverter.net

Score: -1

|

shut up you spamming tart.

Score: 0

|

PDC 2009: What have we learned this week?

There was the freebie that no one will forget, the heebie-jeebies courtesy of Scott Guthrie, and a teensy bit clearer picture of how this cloud thingie should work.

Live report: Will Google Chrome OS change Linux?

The mysteries of just what Chrome OS is, and how much of an operating system it truly is, may be resolved today.

PDC 2009: Microsoft cares about Web browser performance

The effort to give users of the world's dominant Web browser the impression of quality, is a personal one for the man who leads that battle.

Nokia re-affirms its commitment to Symbian, sort of

Maemo won't necessarily be replacing Symbian in the Nokia N-Series, but that's definitely a place where it will be found.

E-book readers will be in short supply this holiday season

E-readers are hot this year, and a lot of compelling new products have been released, but are there enough electrophoretic displays to go around?

Sony looks to finally open a single storefront for downloads

Sony has had many different download portals for movies, music, e-books, and games, and now it's looking to make a single shop for all of it.

Tuning out the tablet: Time to give the endless speculation a rest

Wide Angle Zoom: Wishing and hoping and thinking and praying....won't put an iTablet on the market.

Five improvements for IT managers in 2010

If businesses are to improve their efficiency for next year, they need to stop and reassess the basic tenets of their job.

AOL's spinoff from Time Warner to shed 2,500 jobs

As AOL moves toward become an independent company again, it will cut nearly a third of its workforce.

Gartner: SMS-based money transfer will be bigger than mobile browsing, search

Gartner issues its predictions for the 10 things our phones will be doing in 2012.

Don't forget to upgrade to Firefox 3.6 beta 3 today

Mozilla has released the latest beta its Firefox 3.6 browser software, just over one week after beta 2.