How to control Gadgeteer devices from my web browser

Jun 6, 2012 at 12: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

Developer
Jun 6, 2012 at 1:56 PM

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

There are many tutorial here http://www.tinyclr.com/support#gadgeteerTutorials

and many examples on web server here http://www.tinyclr.com/codeshare

 

Enjoy!

Gus

Coordinator
Jun 8, 2012 at 12: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:  http://www.netmf.com/gadgeteer/showcase-item.aspx?id=183&title=Web%20Service%20Surveillance%20Camera.  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:  http://www.netmf.com/gadgeteer/showcase-item.aspx?id=185&title=.NET%20Gadgeteer%20Servo%20Camera%20%26%20Windows%20Phone%20Client

Here's a robot that is controlled over Bluetooth:  http://www.netmf.com/gadgeteer/showcase-item.aspx?id=231&title=Bluetooth%20Controlled%20.NET%20Gadgeteer%20Robot.  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 8: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