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

|

Microsoft launches Office 2010 technical beta a few days early

A big week for Microsoft starts off with an out-of-sync surprise: the early release of the Office Technical Beta ahead of the launch keynote.

PDC 2009 Day 0: Vista is through

If there was any doubt in your mind that Microsoft is putting Vista behind it, the first session at PDC would eliminate it for good.

Windows Marketplace for Mobile launches on WinMo 6.0 and 6.1

No longer isolated to Windows Mobile 6.5, the Windows Phone app store has opened up to older versions of Windows Mobile.

Samsung releases another Android: where will it fit in with Bada approaching?

Samsung today announced the Galaxy Spica, sequel to its first Android handset destined for Europe and Asia.

Twitter to abandon 'politically biased' suggested user list

Twitter's suggested list of users to follow will be going away, says co-founder Biz Stone.

The Internet can still be a positive force, World Wide Web Foundation says

Sir Tim Berners-Lee's World Wide Web Foundation has launched worldwide operations.

Blockbuster's way down, but poised for a comeback

Though it took a serious beating in 2009, Blockbuster CEO Jim Keyes says the company can turn it around.

iTunes Preview doesn't go far enough to create Web-based option for store

Apple has rolled out iTunes Preview, a Web interface for browsing iTunes.

PDC 2009 Preview: The move to Office 2010 and Visual Studio 2010

The major focus of Microsoft's conference next week will likely be explaining why two pillars of its software sales strategy deserve to remain where they are.

Dell's first smartphone aids the Android onslaught

Longtime PC leader Dell has finally announced its Android-based smarphone.

After the Intel + AMD armistice: Do we really want a level playing field?

Scott Fulton On Point: One by one, the reasons for us to continue suspending the course toward open and fair competition in IT, are dropping like flies.