Archive for category REST Web Services

Bing Search API

Developers use the Bing API to add web search functionality to their applications. As shown in the following list, this API includes REST endpoints that search for various kinds of online content.  All of them work basically the same way, so learning how to query for one type builds proficiency in all of them.  The […]

Leave a comment

Playing with Mountaineer Ethernet Mainboard

Posted by Marco Minerva In these days I’m making some tests with Ethernet Mainboard, a Gadgeteer compatibile mainboard that is produced by the Mountaineer Group. Here it is the main characteristics of the mainboard, as described at http://www.mountaineer-boards.com/home/ethernet-mainboard: “Red mainboard” powered via USB 168 MHz STM32F407 microcontroller with 192 KB RAM and 1 MB on-chip Flash 8 […]

, , ,

1 Comment

Controlling a Light Switch using Windows Phone

Posted by Marco Minerva In this post, I’ll show how to control a Relay module using a Windows Phone app that is able to remotely turn on or off a light. (See also: Voice controlled home automation using Arduino) Let’s start creating a new Gadgeteer application. Connect the following modules to a FEZ Spider Mainboard: USB ClientDP; WiFi […]

, , ,

15 Comments

Connessioni XBee con device .NET Gadgeteer (Italiano)

By Mike Dodaro, translated by Marco Minerva from the original English version Le schede XBee hanno un costo estramamente contenuto e possono essere integrate in qualsiasi tipo di device. Il loro raggio di funzionamento supera quello delle connessioni Bluetooth. L’articolo Zigbee Networking with XBee Series 2 and Seeed’s Products fornisce una rapida introduzione alle funzionalità di XBee. Il libro di Robert Faludi intitolato Building Wireless […]

, , , , , , , , , , , ,

Leave a comment

XBee Radios in .NET Gadgeteer Devices

XBee radios are inexpensive and they can be embedded in all kinds of devices.  XBees can be networked so that a failure of one radio does not impar communication between and among others in the network.  Their range exceeds that of Bluetooth connections.  The article Zigbee Networking with XBee Series 2 and Seeed’s Products provides a quick overview of XBee […]

, , , , , , , , , , , ,

15 Comments

Mind Control of .NET Gadgeteer Device via Neurosky EEG Sensor

This experiment leaves much to the imagination, but it does demonstrate how wave forms of the human brain can determine events on a device with an embedded microcontroller.  This code scenario is submitted for use in the Open Health and Fitness Data Aggregator project headed by Ira Laefsky. The Neurosky Mind Wave sensor is an economical electroencephalograph designed for extensibility with other applications.  For less […]

, , , ,

1 Comment

.NET Gadgeteer Relay Actuator via REST Web Service

The .NET Gadgeteer Relay Module from Seeed Studio can be used to activate devices that are designed to run on common household electrical circuits of 120 volts AC or higher if necessary.  The four relays on the Seeed Relay Module are switches with the options, normally open or normally closed. You can power on or power off […]

, , , , ,

4 Comments

How to Initialize the .NET Gadgeteer WiFi Networking Module

Initializing the GHI Electronics WiFi RS21 module involves some different issues than initializing the Ethernet_J11D Module.  It took several runs to get my WiFi module working.  I don’t know all the permutations of WiFi networking, so I used a trial-and-error approach. First, I plugged in the WiFi_RS21 module and added start-up code, equivalent to what I have been using with my ethernet module, […]

,

10 Comments

Controlling the Servo using a Windows Phone application

Posted by Marco Minerva In the post Using a Servo in a .NET Gadgeteer Camera Device we saw how to create a .NET Gadgeteer application that uses a Servo to change the direction of the Camera, takes a photo and uploads it to a Web Service. Now, we’ll realize a Windows Phone application to remotely […]

, ,

2 Comments

Usare un servomeccanismo per orientare la videocamera con .NET Gadgeteer (Italiano)

By Mike Dodaro, translated by Marco Minerva from the original English version. L’interfacccia Gadgeteer.Interfaces.PWMOutput permette l’utilizzo di un servocontrollo per muovere le parti meccaniche di un device, secondo le esigenze delle applicazioni. Questo esempio dimostra l’uso dell’interfaccia Gadgeteer.Interfaces.PWMOutput e di un servomeccanismo per girare la videocamera su un arco di circa 140 gradi. Il valore […]

, , , ,

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 […]

, , , , , ,

9 Comments

.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 […]

, ,

6 Comments

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 […]

, , , , ,

26 Comments

Soluzione temporanea per il corretto funzionamento del modulo Ethernet_J11D (Italiano)

By Mike Dodaro.  Translated by Marco Minerva from the original English version. Allo stato attuale dello sviluppo, il modulo GHI Electronics Ethernet_J11D, in alcune configurazioni, potrebbe non funzionare correttamente utilizzando le librerie incluse nel .NET Gadgeteer SDK. I motivi del problema sono spiegati in questo post: http://www.tinyclr.com/forum/21/5010/. Non è ancora stato rilasciato un aggiornamento ufficiale […]

,

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 […]

8 Comments

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 […]

14 Comments

Un Server TCP con .NET Gadgeteer (Italiano)

.NET Gadgeteer offre un metodo molto semplice per creare un web server in grado di rispondere alle richieste GET, attraverso la funzione SetupWebEvent fornita dall’API del modulo Ethernet di GHI Electronics. Esempi di tale sistema sono disponibili su questo stesso blog, ad esempio nel post .NET Gadgeteer Web Services; Picture, Audio, Application. Se, invece, lavoriamo […]

,

Leave a comment

Web Service REST per registrare dati da un sensore .NET Gadgeteer (Italiano)

Translated by Marco Minerva from the English version by Michael Dodaro Questo esempio mostra come inviare messaggi da un’applicazione .NET Gadgeteer verso un Web service REST che registra i dati sull’attivazione di un sensore. In questo caso il sensore è il Light Sensor implementato in uno dei precedenti post. Il messaggio è semplicemente un identificativo […]

, , ,

1 Comment

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 […]

,

3 Comments

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