Servo position control - General Discussion - 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

Servo position control

Servo sensor

  • Please log in to reply
2 replies to this topic

#1 Giuliano

Giuliano

    Advanced Member

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

Posted 21 October 2014 - 05:14 AM

Good day everyone,

 

I would like to know if there is a sensor I can use to calculate the relative center position of a rotating servo.

 

So the idea is to mount something like a magnet on one of the rotating arms of a servo and then when this magnetic piece passes over a sensor that detects a magnetic field (or something of that matter) then it triggers a value of 1 that I can read and use it to stop the servo rotation.

 

I have a sensor like what I describe in my radio control airplane to calculate RPMs, it uses a magnet but I don't know how to find one that I can use with the Netduino.

 

Thank you



#2 Paul Newton

Paul Newton

    Advanced Member

  • Members
  • PipPipPip
  • 724 posts
  • LocationBerkshire, UK

Posted 21 October 2014 - 06:20 AM

Hi Giuliano,

 

The simple way to do this would be to use a reed switch.

You wire it up just like a push button switch.

There are lots to chose from - different sizes, some with change over contacts.

 

In the UK Maplin have several around £2 to £4, this one being £1.99.

 

The only drawback will be accuracy.

The magnet will activate the reed from a distance, so it may be hard to resolve the position accurately.

 

If you need a really accurate position, then an Infra-red LED and transistor pair would be best, with the servo disc passing between the pair to block the light until a small drilled hole allows it through. The input to the Netduino would still be an on/off signal and the software should be the same.

I would start with the reed switch and get the system working first, then consider improving it.

 

Hope this helps - Paul



#3 Giuliano

Giuliano

    Advanced Member

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

Posted 21 October 2014 - 07:59 PM

Thanks for the information provided, I really appreciate it. I will look both sensors.






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.