This project is read-only.

How to control Gadgeteer devices from my web browser

Jun 6, 2012 at 1:23 AM

Hi Kids,

I'm liking what I'm seeing in the Gadgeteer project.  I'm curious about how possible it is to send commands to a Gadgeteer device over an ethernet network - in particular from my web browser.

I'd have some great incentive to get off my buns and build some devices if I can talk to them through the browser.

Can this be done and where do I go to learn about the capabilities?

(No, I have never worked in Visual Studio, C# or C but I've done other kinds of programming over the years.)

Thanks for any help

-- Steve

Jun 6, 2012 at 2:56 PM

Kids?! Many of gadgeteer users are 50+ year old. Unless you are 80 :-)

There are many tutorial here

and many examples on web server here




Jun 8, 2012 at 1:08 AM

Hi Steve,

You can definitely talk to Gadgeteer devices over the Internet.  NETMF includes a full TCP/IP stack and Gadgeteer has WebClient/WebServer classes that make communication very easy.

Here's a good intro which shows a Gadgeteer device pushing photos to a Web browser:  The model is very similar when the control flow goes the opposite way.

Here's a more sophisticated version, in which a Gadgeteer camera mounted on a servo motor is controlled by a remote device:

Here's a robot that is controlled over Bluetooth:  You could adapt that to use Ethernet or WiFi pretty easily.

If you build something cool and would like it featured in the Gadgeteer Featured Projects showcase, let us know!

-- K

Jun 20, 2012 at 9:23 PM

Thanks Kerryh - these are very helpful links!

I'm quite excited.  I ordered the kit from GHI last night and hope to get started this weekend!

It's going to be quite the learning curve.  I've programmed before, but this will be my first time in a C language.  I do a lot of web-work, but I haven't done anything on a Windows server in more than 10 years.

However, I'll break it down into little pieces and take it one step at a time.  The goal is to have a number of devices that are controlled through the web.  I'll post my progress!

- Steve