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

Controll two stepper motors via a wpf application


  • Please log in to reply
4 replies to this topic

#1 inxtremo

inxtremo

    Advanced Member

  • Members
  • PipPipPip
  • 32 posts

Posted 05 February 2012 - 06:39 PM

Hey guys,

im fairly new in netduino dvelopment and microcontroller, so sorry if this question may be stupid.

I want to control two stepper motors for a pan/tilt camera scenario. I have a working WPF application written in c#, where i can connect different pan/tilt cameras via a plugin system, a logitech ptz webcam as an example.
The same thing i want to do with the netduino, two easy driver shields and two stepper motors. At this time i can control the two motors via ethernet (server/client). In some tests i mentioned that there is a more or less huge delay between my commands and the execution of the motion. This delay is not the best for my work.

Originally i wanted control the steppers with easy commands from the application. I press the button "TurnLeft" and a stepper turns left as an example. In a past thread is see an answer like mine.

Is there an easy solution for this?

I hope for answers and sorry for my english.

Thanks and best regards,
Daniel

#2 Chris Seto

Chris Seto

    Advanced Member

  • Members
  • PipPipPip
  • 405 posts

Posted 05 February 2012 - 10:20 PM

Basically, you probably want to do this over ethernet, so get a Netduino Plus and setup a webserver on it to respond to commands over GET. All that means is that you'll be transferring data over the URL. For example... http://netduino/move?=down Your WPF program will be a web client and make these requests. You could also do it over serial.

#3 inxtremo

inxtremo

    Advanced Member

  • Members
  • PipPipPip
  • 32 posts

Posted 07 February 2012 - 08:06 AM

Hi Chris,

thanks for the answer. I write the thread in the wrong section, sorry. I have a Netduino Plus and control the movement via an webserver as you mentioned in your answer. My question, is it possible to drive the two steppers through an desktop application without deplying the application to the Netduino? A solution without client server communication?

My idea was to control the steppers over the usb connection. But i don´t know the right buzzwords to search for such a solution. The only thing i read was something about "Serial Communication". But in this thread this posibility was not build in 100%.

Thanks.

#4 Chris Seto

Chris Seto

    Advanced Member

  • Members
  • PipPipPip
  • 405 posts

Posted 07 February 2012 - 02:43 PM

The term "deploy" is used to describe the process by which code is programmed on the Netduino, so no, it's not really possible to do anything without deploying. You'll have an app running on the Netduino listening to requests, and then an app on the PC sending them. This will be the case for pretty much any communication channel used, either USB, serial, Ethernet, etc. Over USB can be done with a user descriptor and the Netduino emulating some device (like a com port). This is not trivial to implement, though I have done it before.

#5 inxtremo

inxtremo

    Advanced Member

  • Members
  • PipPipPip
  • 32 posts

Posted 07 February 2012 - 05:09 PM

Hey Thanks, i will try it with the client/server model. Found some interesting topics here, now i know for which buzzwords to look. Thanks a lot. Best regards, Daniel




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.