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's Ray Ozzie: 'Nobody's going to be 100% open'

The mobile apps ecosystems of the world may converge over time, led by apps being ported over across platforms, according to the Chief Software Architect.

Will Firefox beat IE9 to Direct2D rendering?

Just days after Microsoft executives gave conference attendees a peek at a new rendering technology, a Mozilla contributor revealed he's working on the same thing.

Where there's smoke: Apple warranty stance raises troubling questions

Carmi Levy | Wide Angle Zoom: Smoking can be dangerous not only for your lungs, it appears, but for your Apple hardware warranty.

AOL's decision to rebrand as Aol. takes a bad brand and makes it worse

The idea behind the social Web is to crowd source before bringing out something new. But not at AOL, which new logo debuted with a cry of "fail!" across the blogosphere and Twittersphere today.

Microsoft 'worked with Apple' for Silverlight on iPhone, says Goldfarb

By not making such a big deal out of trying to stream video to the iPhone, Microsoft got a big deal out of it, revealed the Silverlight product manager.

Clicker.com cuts through the Web video chaos

In a world where homemade video and Hollywood movies travel the same pipeline, it's good to have a real search engine to cut through the clutter.

A case study in improving software: What Office 2010 can learn from Notion 3

A music composition product gambles with a complete overhaul, in an effort to make headway against two well-known competitors in a tough market.

Kindle 2 update adds battery life, native PDF reader

Amazon has pushed out an update to the Kindle 2 e-reader that lengthens battery life and adds a native PDF viewer.

Safari on iPhone gets competition from a $1 browser app

Apple likes to say it gives iPhone users a full browsing experience, but a new competitor tries to incorporate more desktop browser features.

Action Replay maker sues Microsoft for Xbox 360 'predatory technological barriers'

Third-party video game accessory maker Datel has filed an antitrust lawsuit against Microsoft over the Xbox 360's recent Dashboard update.

Microsoft's Bob Muglia and Ray Ozzie on Silverlight vs. standards

Bob Muglia: "We're trying to provide people with an environment that has capabilities that you just simply can't do today in the standards-based world."