Sensing a position
T Chap
Posts: 4,223
I need to have a Propeller on boot move a motor(Home) CW till it hits a limit switch then zero the HomePos variable, then it needs to move to the farthest CCW position and hit another switch, writing the MaxTavel position. The code with then use HomePos + X as it's home position, allowing some amount of distance offset. The same goes for MaxTravel = Maxtravel - Y
I have used current sense before to locate a hard stop, but have seen cases where it can fluctuate depending on temp and other factors related to the motor used. In this new case, it is a brushless DC servo motor, which will have some advantages over the stepper(a stepper can vary its current draw based on where it is sitting in the sequence when micrstepping). The DC motor may very well work out, but I can't test it yet.
The object being moved is a sliding door and is not ideal for mounting wire to it, the door frame is ok to mount to. The options I have so far are swithes or hall sensors with magnets on the door. There are concerns with each method, the switches may fail after so many years. The magnets and hall sensing(comparator) may lose some strength, and the calibration reading them may drift. Magnetic switches, like in the alarm systems seem reliable, but appear that they are not designed for precise positioning( tolerance is about +- .0025"
Anyone have any ideas they could share for a maintenance free solution for precision limit switching?
Post Edited (originator) : 3/7/2007 12:33:01 AM GMT
I have used current sense before to locate a hard stop, but have seen cases where it can fluctuate depending on temp and other factors related to the motor used. In this new case, it is a brushless DC servo motor, which will have some advantages over the stepper(a stepper can vary its current draw based on where it is sitting in the sequence when micrstepping). The DC motor may very well work out, but I can't test it yet.
The object being moved is a sliding door and is not ideal for mounting wire to it, the door frame is ok to mount to. The options I have so far are swithes or hall sensors with magnets on the door. There are concerns with each method, the switches may fail after so many years. The magnets and hall sensing(comparator) may lose some strength, and the calibration reading them may drift. Magnetic switches, like in the alarm systems seem reliable, but appear that they are not designed for precise positioning( tolerance is about +- .0025"
Anyone have any ideas they could share for a maintenance free solution for precision limit switching?
Post Edited (originator) : 3/7/2007 12:33:01 AM GMT
Comments
Does the position sensing need to be on the door side of the equation? I guess what I am saying is it may be possible depending on your application to monitor the other side of the mechanics for limits. That may offer and easier path for a reliable means to detect limits. Also, have you considered optical detection? Perhaps a slotted IR device in which a tab breaks the beam?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
What are the conditions under which the sensor must work (i.e. temperature, moisture, ambient light, airborne dust, etc.)?
-Phil
The door is a pocket door, so it goes inside a wall when open. Typically when closed, it will go into a 5/8" wide x 1/2" deep dado/slot in the door jam.
Chris, the system is auto tuning, so the limits have to be based on the physical travel of the door, which is unique in every case. Granted that the timing belt that moves the door could actually have something attached to it, a magnet or flag for example. Inside the wall where the actuator lives, there is much less ambient light btw.
A pin hole in a light "receiver" mounted above the jam may be workable, the door can easily have a metal glah attached to it to break the light, which can be extremely precise.
Thanks for the ideas.
The controller is shown below, a thumbprint scanner add-on coming soon, will mount just below it. This panel is a black anodized Qprox operated sensor I designed that controlls the motion/locking. The door is shown in black laminated glass, Starfire hardened glass, frameless, 1/2 thick.
Post Edited (originator) : 3/7/2007 12:24:06 AM GMT
-Phil
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
Current limiting is done via DAC from the Prop to the BLDC motor. Minimal torque and very low speed could be used to home each direction, avoiding damage to drive train.
Post Edited (originator) : 3/7/2007 4:20:03 AM GMT
you will need a safety device for closure, that could get you the far limit, like the spring loaded pads on elevator doors or a garage door, or even a pressure sensor. I don't see why you can't run wires in the door, you won't see the outside of the inner frame in the pocket. If you are using external detection for safety, that kinda throws that out. How about a linear encoder strip on the top of the door frame and the encoder inside the pocket. " If the encoder has auto indexing, it should always know its position".
I have previously looked at the USdigital linear encoder strips, and ruled them out due to a number of reasons. One s that the system needs to self calibrate to the limits, which vary from situation to situation.
Post Edited (originator) : 3/7/2007 7:15:44 AM GMT
No we don't have a problem, unless you take a hammer too it. The edge goes into a small groove in the wall that does not have metal near it. The glass is laminated with a rigid poly innerlayer, so it is quite robust, I have really abused these things in testing, and thought many times they were going to break. There are other versions, stainless, wood etc.
The Qprox glass thing took a long time to solve, I spoke to many consultants, 3m, you name I talked to them, finally after a 100 calls found an ITO clear film that is great. I send it to the laminator and they press it in between the glass.
The 160 has been replaced with 1081 8 inputs
www.qprox.com/downloads/datasheets/qt1081_r1.03.pdf
Post Edited (originator) : 3/8/2007 7:45:29 AM GMT