Absolute angular sensor question
I'm looking for a solution to detect absolute angular position (range less than 0-180°).
I was thinking to use a supermagnet and a magnetic sensor.
Is it a viable solution or are there better options? Has someone a chip to suggest?
Thanks in advance,
Massimo
I was thinking to use a supermagnet and a magnetic sensor.
Is it a viable solution or are there better options? Has someone a chip to suggest?
Thanks in advance,
Massimo
Comments
http://www.parallax.com/StoreSearchResults/tabid/768/txtSearch/28017/List/0/SortField/4/ProductID/93/Default.aspx
http://www.parallax.com/StoreSearchResults/tabid/768/txtSearch/accelerometer/List/0/SortField/4/ProductID/585/Default.aspx
The sensor would be used in an automotive context (farm tractor), where to components can rotate one with respect to the other along one single axis.
Moreover being on a moving machine the whole system would rotate.
See this sketch to have a better idea.
Massimo
Massimo,
by absolute angles, are you talking about with respect to compass points of the earth? or referenced to what?
There are compass modules you could mount on various sections of the vehicle. I suppose you could feed their output information to a single processor and have an algorithm calculate their positions. Is that the sort of thing you're trying to do?
So doesn't the Z-axis of a 3-axis accelerometer change when/as you spin it?
In this application, I suppose it would be difficult to implement, but I haven't thought about it a lot.
Rich H
Few degrees in resolution and accuracy would be perfectly ok.
I guess accelerometers are not the best option. Supposing to have the machine on a horizontal surface a relative angle between the two parts is not detectable.
I was thinking to use something like that:
http://www.sensorsmag.com/sensors/position-presence-proximity/understanding-integrated-hall-effect-rotary-encoders-1254
The sensor would be on a part of the machine, and the magnet fixed on the other.
Optical encoders worry me because of the dirty and harsh environment. I would have to find a IP65 or more type adaptable to a rather big flange.. seeking the web it is not too easy to find. Moreover I'm not sure if I switch the sensor on and off i get the correct position or if I have to reset the zero.
A pot would work, even if the IP65+ requirement still apply.
I started with the supermagnet approach because in my mind a similar solution would be more sturdy and forgiving, but having not experience in the area I don't know if it is viable.
Massimo
Are you making a small, model vehicle or some full-sized industrial?
Sometimes people focus on weird stuff and overlook that all they really need is what they need to get the job done. Who needs needs a pyrometer and 12 bits of ADC resolution to control a bathroom fan, right?
At rest, the Z-axis of the accelerometer will read 1 g ... the other X and Y axis will read 0 g. As you tilt the accelerometer with respect to the X or the Y axis on edge to +90 or -90 deg, the accelerometer will report +1 g or -1 g relative to the axis being tilted. If you flip the accelerometer upside down, then the Z axis will read -1 g.
To detect rotation about the Z-axis you would be better suited to use a gyro, but without a reference you will have drift error.
I like the idea of using two compasses and taking the difference to determine angle. A similar approach could be accomplished with two gyro's.
I've been messing around with a #28017 this week, I got it at RadioShack, and noted its "bubble level" properties. I don't have that 3-axis model to get its story, but wondered whether it might exhibit a similar Z-axis characteristic (provided X & Y were still). Just trying to have a little conversation.
The vehicle aspect wasn't mentioned at the start, it's established now. When everything starts moving, life gets messy.
I mentioned the fine-pitch optical in #4. Not to say that it couldn't be in a sealed enclosure. A pot is good deal, too, RCTIME can take a lot of time. Maybe someone will turn this into 30+ pages of MMWNIC. Like everything, it's just a matter of time and money and one's needs.
Maybe you can nudge them for a "sample", Max.
The cagey Euros may not be as obliging (easily conned) as American companies.
The Melexis sensor seems ideal for this app. DigiKey carries them.
-Phil
VAWT - Version #1
VAWT - Version #2
... So how does this apply to this thread?
Well, tonight I wanted to take some rotation speed measurements, and I got to thinking about this thread. I ended up using a HM55B compass and a rare earth magnet mounted to the shaft of the turbine. The rare Earth magnet is strong enough that in close proximity the HM55B (about 6 inches), it doesn't even see the Earth's magnetic poles. ... the output is non-linear because the shaft that the magnet is stuck to is 1/4 inch metal all-thread and it affects how the HM55B 'sees' the magnetic field. If it (the compass) was calibrated to the metal shaft it would be smooth throughout the 360 deg, but for the purposes that I needed to use it it was fine the way it was. ... Ohh, and it's also a little jumpy, because I'm transmitting the data from outside to inside (about 50 feet) and there aren't any data checks to make sure there is any noise or corrupted data.
Propeller Software Video screenshot of rpm test
The idea as far as applying it to this thread would be to mount the compass on one piece of the equipment, and the magnet on the other in close proximity to one another.
I have a lot of paths to follow now..
Mainly some combinations of compass, the melexis, the good old pot...
I'll let you know how it will evolve.
Thanks again,
Massimo
Beau's very cool VAWT example brings up an important point if you decide to use magnets - the steel structure of the tractor and other trailers, etc. will distort the magnetic field. The magnetic field will try to "flow" through the steel structure and form a magnetic circuit between the magnet's two poles rather than flow through air or non-ferrous materials. This can make things difficult for you if you just stick the magnet onto a solid piece of metal - in which case the magnet might be effectively "short circuited." I'm not saying that the idea isn't feasible - I'm just saying keep that effect in mind when you set up your design. It might also be possible to use more than one magnet so that the magnetic field wants to "flow" from the N pole of one magnet to the S pole of a second magnet that is placed on the opposing side of whatever axis you are measuring.
Earth's magnetic field will be for sure influenced by the ferrous environment.
I hope to reduce the effect by using strong magnets, in order to have a signal so strong that the environment effect is negligible.
Melexis sensors are sensitive to stronger fields with respect to earth's field so it could help.
Massimo
http://www.youtube.com/watch?v=aKkM7RiKliA
You are enlighting as usual.
On my side I tried a setup with a compass module I had in house and a magnet.
Unfortunately the CMPS03 cannot handle strong fields, and after being exposed need recalibrations, so I need another sensor.
I ordered a couple of Melexis from rs-components (small orders from digi-key or mouser are out of range).
I'll keep you updated.
Massimo
Hmm perhaps with the rotating field of the VAWT that I have setup there isn't a polarizing effect over time.
So maybe start with the magnet at the axis of rotation, and then approach it with the compass starting at about 1 foot out and incrementally move the compass closer until the response from the compass is what you want.
The problem with the compass module I have is if you exceed the maximum level the sensor loses any calibration and consistent reading until you re-zero it.
Other sensors simply saturate, without permanent effects (according to datasheet). So I must be extremely careful when testing, moreover the space I have for the sensor is limited, so for a working prototype I cannot use the distance as a mitigating factor.
I'll try it the way you suggested to have a proof of concept.
Thanks,
Massimo
How about using a magnet with a lower strenght? Maybe a piece of refrigerator magnet?
Jim
Unfortunately the sensor used is not the best bet...
Not all fridge magnets are created equally. Some effectively have both North and South poles on the same side!
You want magnets that have only a single pole on one face. Also, most fridge magnets are fairly weak compared to other types of magnets.
It just seems like a magnetic sensor is a more difficult approach, and a pot would be so much easier to do.
You get your choice of PWM or analog outputs. 'Seems hard to beat.
-Phil
In fact I have some advantages here: There is a single pivot axis, so the connection is easy, adding a little bit of flexibility to the measuring rod is probably enough. Moreover the system is hand operated by an hydraulic circuit, so no speed requirements here.
On the other hand the environment is extremely harsh, so special care is required, and the pivot point has not much room around.
So I ruled out optical encoders and similar solution, while magnetic ones are still on the table, mainly because I'm intrigued by the idea.
I'll have to shop for a decent pot, the ones I have are on boars trimmers, and not suitable for the job.
Thanks,
Massimo