Michael Dodaro

Programming writer

Homepage: http://gravatar.com/gmdodaro

Seeed Cellular Radio Module for .NET Gadgeteer

The drivers for the Cellular Radio module from Seeed Studio are still in development, so any code using this module has to be tentative at this stage. << Note: the new driver  by Eduardo Velloso has now been released: Drivers for the .NET Gadgeteer Cellular Radio Module.>> That said, using the module for voice calling requires only a little information about […]

, ,


Seeed Temperature Humidity Sensor with OLED Display

The modules available for .NET Gadgeteer now include some interesting modules by Seeed Studio.  This example uses two of them: Temperature Humidity Sensor OLED Display The application code is very simple, as shown in the following block. Note: Don’t use higher voltage than needed to drive components.  Excess power is dissipated as heat.  After running this example for […]

, ,

Leave a comment

Using a Servo in a .NET Gadgeteer Camera Device

The Gadgeteer.Interfaces.PWMOutput interface can support the use of a servo to move mechanical parts of a device as needed by applications. This example uses the Gadgeteer.Interfaces.PWMOutput interface and a servomechanism to turn a camera through an arc of about 140 degrees.  The Pulse Width Modulation (PWM) input for this servo is obtained from a WCF REST Web service running on a remote IIS Server.  The […]

, , , , , ,


.NET Gadgeteer Gyro Module from Seeed Studio

Here’s an example that graphically displays data from the Seeed Gyro module for .NET Gadgeteer.  The GHI Electronics Display_T35 module displays the output. Plug the Gyro module into Socket 3.  Connect the display module and a button in the .NET Gadgeteer designer, but do not connect the optional touch-screen cable to Socket 10.  Apparently the touch screen is incompatible with the Seeed Gyro and […]

, ,


XML Configuration Files for .NET Micro Framework Applications (English)

By Marco Minerva, translated Mike Dodaro from the original Italian version. All applications require configuration files; we use them to customize behavior and to set parameters unknown at compile time, or those that may change over time (such as the database connection string, the address of the mail server, etc.). .NET supplies the class ConfigurationManager, or WebConfigurationManager for Web applications, to […]

, ,


Sending .NET Gadgeteer Sensor Data to a REST Web Service

Sending data to a Web service from a device with an embedded microprocessor is a very common and useful scenario.  This example demonstrates the procedures using the .NET Gadgeteer Pulse Oximeter manufactured by Seeed Studio and a REST Web service implemented on the Windows Communication Foundation (WCF) platform. This post has been updated to use HttpHelper.CreateHttpPostRequest. The Seeed Pulse […]

, , , , ,


Finding Files on an SD Memory Card (English)

By Marco Minerva.  Translated by Mike Dodaro from the original Italian version. .NET Gadgeteer makes useful APIs available to interact with an SD memory card in a module such as this SD Card Module available from GHI Electronics. It is possible to get a list of files, directories, to create files, and to read and write to them. Missing […]


Leave a comment

Interim Solution to KeyboardConnected error USBHost Module

The previous post: Interim Solution to Ethernet_J11D Failure led to a Eureka moment for me.  I was running my daily slog, not in the bath like Archimedes, but it occurred to me that other problems might be solved by using the NETMF API provided by GHI Electronics instead of their newer Gadgeteer SDK.  I hit a dead end  with the […]

1 Comment

Interim Solution to Ethernet_J11D Event Failure

At this stage of development, the NetWorkUp event of GHI Electronics Ethernet_J11D module does not work with the latest .NET Gadgeteer SDK. The reasons are explained in the forum thread here: http://www.tinyclr.com/forum/21/5010/  The fix is not public yet. GHI has good documentation, so I adapted code from their example in the topic: Ethernet Class.  So far, the ethernet class […]


A TCP Server using .NET Gadgeteer

By Marco Minerva, translated by Mike Dodaro from the original version in Italian.  .NET Gadgeteer offers to a very simple method to create a web server that will respond to GET requests, using the SetupWebEvent function supplied by Ethernet module as implemented by GHI Electronics. Examples are available on this blog, as in the post: .NET Gadgeteer Web Services; Picture, Audio, Application. If […]


Seeed Pulse Oximeter .NET Gadgeteer Module

The Seeed Pulse Oximeter is a monitoring device that measures pulse and noninvasively detects oxygen saturation of the blood.  This post demonstrates use of the Pulse Oximeter in a .NET Gadgeteer application. Plug the PCB module into a mainboard socket that has the U label.  This example uses socket number 8 on the GHI Electronics Fez Spider mainboard.  (Do not […]


A ProgressBar for .NET Gadgeteer (English)

English translation by Mike Dodaro of Italian version by Marco Minerva. As pointed out in a previous post, the graphical controls that ship with .NET Gadgeteer can be used to create more complex objects. Today we see how to implement a ProgressBar that displays the progress of an operation, as shown in the following video. The code that supports this scenario […]

, ,

Leave a comment

A Command Push-Button for .NET Gadgeteer

Translated by Mike Dodaro from the Italian version by Marco Minerva We continue discussion of the graphical controls for the .NET Gadgeteer display. This time we implement the CommandButton, that is the classic push-button. The code for the CommandButton class is as follows: The CommandButton inherits from Border and defines four properties, with which you can specify the color of an […]

Leave a comment

.NET Gadgeteer Relay Circuit using DigitalOutput Interface

The relay scenario uses a low-voltage logic circuit to control another circuit, usually of higher voltage.  The relay in this example is a 5 volt DC single pole, single throw reed relay. It is used to switch a battery-driven motor on and off.  The switch is controlled by the Gadgeteer.DigitalOutput interface in a .NET Gadgeteer Visual Studio application. The schematic for this […]



Synchronize the Clock with a Reference Server on the Internet (English)

by Marco Minerva (translated from Italian by Mike Dodaro) Nearly all applications have to use date and time to record when files are saved, to record accesses to resources, etc. The .NET Micro Framework is no exception.  If it were, every application, hardly under way, would have to update its own clock to synchonize it with the real timetable. Beginning with version 4,0, the […]



Windows-like Interface for the .NET Gadgeteer Display (English)

by Marco Minerva (translated from Italian by Mike Dodaro) In the preceding post we created graphical interfaces using the display platform of .NET Gadgeteer.  We have seeen how the controls available are extensible in the implementation of complex user interfaces. We would like to realize a shielded “Windows-like” UI, that is, with title bar and status bar. We create a class named MainWindow, which the Canvas […]


1 Comment

Using the Graphics Interfaces of .NET Gadgeteer (English)

By Marco Minerva (translated from Italian by Mike Dodaro) Thanks to the tools provided by .NET Gadgeteer SDK, creating graphical interfaces with the touch screen is very simple. In fact, the Display object, besides the classic “primitive” functions to create images, geometric shapes, and text, exposes an object called WPFWindow with which it is possible to create objects with functionality similar […]


Leave a comment

Remote Control of .NET Gadgeteer Device via REST Web Service

This example extends code in a previous post: Using the .NET Gadgeteer DigitalOutput Interface. The previous example uses Gadgeteer.Interfaces.DigitalOutput to turn on a LED from application code instead of through a module driver.  .NET Gadgeteer device components can be controlled directly from code.  We’re going to extend this scenario to control various device components by setting their state via a Web service that […]

, ,

1 Comment

Using the .NET Gadgeteer DigitalOutput Interface

You can use the classes of the Gadgeteer.Interfaces namespace directly in code, instead of inside a module driver.  This example uses the Gadgeteer.Interfaces.DigitalOutput interface.  The voltage on this logic circuit, in the high state, is enough to light a LED.  Later we’ll use a relay in the same circuit to implement a more interesting application.  (See also the Light Sensor, which […]


REST Web Service to Record Data from a .NET Gadgeteer Sensor Device

This example demonstrates how to send notification from a .NET Gadgeteer sensor to a REST Web service that records data about the sensor activation.  In this case the sensor is the Light Sensor implemented in the previous post.  The notification data is simply a sensor account identifier and the date and time the sensor is activated.  The code is extensible for various types […]

, , ,