First Project - Prototype - Industrial Control - Project Showcase - Netduino Forums
   
Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

First Project - Prototype - Industrial Control


  • Please log in to reply
4 replies to this topic

#1 SteveAndrews

SteveAndrews

    Member

  • Members
  • PipPip
  • 17 posts
  • LocationOrange County, CA

Posted 25 September 2013 - 04:51 AM

After building Hello World, Hello World 2, and playing as one must with LEDs, buttons, buzzers, PWM, servos, and more, here is my first real-world project (prototype). It utilizes a Netduino Pro 2, dual 9V/12V power supplies, SD card, ethernet, a Sainsmart four relay board, three magnetic switches, a kill button, four relays, two DPDT relays which will power an industrial DC motor, and is mounted on a piece of Plexiglas. The code is mostly standard, but contains a micro web server handling GET, POST, and AJAX calls.

 

The gist of the project is basically industrial lift control via HTTP.

 

Posted Image

 

Still to do:

Find a 12 gang, individual feed, studded junction block (or whatever they're called).

Wire up the inputs and outputs on the junction block.

Find a solid and supported WiFi shield.

Glue down the DPDT relays.

Use a hairdryer on the wires to shape them a bit.

Various coding enhancements including auth and cookies.

 

Being that it's my first real project, I'd love to get some feedback.



#2 Giuliano

Giuliano

    Advanced Member

  • Members
  • PipPipPip
  • 361 posts
  • LocationSimi Valley, CA

Posted 25 September 2013 - 04:46 PM

I now you meant to say Netduino Plus 2 and not Netduino Pro 2.

 

Awesome project, thanks for sharing.

 

Out of curiosity, how is the micro web server running, does it freeze from time to time?



#3 w5uxh

w5uxh

    New Member

  • Members
  • Pip
  • 5 posts
  • LocationLas Cruces, NM

Posted 26 September 2013 - 01:46 AM

I would be interested in seeing your micro web server code as an example to help me figure out how to build a simple server that works with a web page containing text boxes where I can enter text and submit the contents to a server running on the Netduino Plus 2.

 

I have zero experience with HTTP/HTML etc. and have used google to find some sample code.  I have tested some very crude things using the web server example in the Getting Started with Netduino book as a starting point.  But some additional code with forms/text boxes etc. could be very helpful.

 

The specific thing I want to do is have two text boxes where I can enter an IP address in one and a PORT number in the other and then submit those items to the server.  I found a very crude way to send the contents of one box when I type something and hit the ENTER key, but the contents of the box are cleared in the process.  This will only be the first step in a project that will use those entries, but one small step at a time.



#4 SteveAndrews

SteveAndrews

    Member

  • Members
  • PipPip
  • 17 posts
  • LocationOrange County, CA

Posted 26 September 2013 - 07:00 AM

Giuliano: Indeed I did mean Plus 2. :-) Yes, it does. I've found that it can get overloaded, for example when holding down the F5 key to continuously refresh the page. And every now and again it just gets goofy and I'll reset the board. I've also seen issues with certain browsers and chunking the response. I haven't yet looked into these too much, though I'm pretty sure it's the code and not the device or OS.

 

w5uxh: The basic gist for standard forms is to read the POST verb in the header and then parse the request's body content. There are a number of micro web server projects out there. A few, in no particular order:

http://netduinowebserver.codeplex.com

http://embeddedwebserver.codeplex.com

https://netmfwebserver.codeplex.com

http://neonmikawebserver.codeplex.com



#5 w5uxh

w5uxh

    New Member

  • Members
  • Pip
  • 5 posts
  • LocationLas Cruces, NM

Posted 26 September 2013 - 12:23 PM

Steve, thanks for the links.  I will dig through them and see if I can learn enough of the fundamentals to get started.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.