CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Hall Effect Sensor direction sensing

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
deepakomanna



Joined: 06 Mar 2007
Posts: 92
Location: Pune,India

View user's profile Send private message AIM Address Yahoo Messenger

Hall Effect Sensor direction sensing
PostPosted: Sun Nov 23, 2008 11:20 pm     Reply with quote

Dear Sir,
In my application I am using Hall Sensor "ATS665LSG" ( http://www.allegromicro.com/en/Products/Part_Numbers/0665/ )
& On the rotor there is one magnetic slot. So whenever it rotates in clockwise direction this gives high-to-low pulses & when it rotates anti-clockwise it gives low-to-high pulses .
So in my application the rotor is running in clockwise but sometimes it rotates anti-clockwise. So please tell me how can I sense the direction i.e. rotor is running in clockwise or anti-clockwise.
_________________
Thank You,
With Best Regards,
Deepak.
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Mon Nov 24, 2008 1:07 am     Reply with quote

According to the datasheet, the said sensor is not providing any kind of directional information. The only option would be in an asymmetricall structure in your hardware, e.g. two slots of different width.

Two sensors with a mechanical offset is another solution.
Ttelmah
Guest







PostPosted: Mon Nov 24, 2008 4:24 am     Reply with quote

Spot on.
If you read the data for these, they are _speed sensors_, _not_ _direction sensors_. This is the whole difference between devices like these, and units like quadrature encoders.
There are ways of adding directional sensing, but all are going to involve some extra hardware, or changes to your hardware.
If (for instance), you are reading off a toothed plate, rather than a gear, then you can fractionally stagger a tooth. Setting one a little 'early' as you rotate in one direction. This only gives the ability to detect direction once per rev, and if the speeds are reasonably slow changing, but what you then do, is have a PLL, running off the pulse train, and look for the one pulse arriving signifcantly early/late.
The second alternative is to add a second sensor, offset by a fraction of a tooth. This is how quadrature encoders are done. This is nice, since it not only gives direction information for every tooth, but also improves the potential resolution as well.
There are then other routes with different sensors and alternative hardware.
As FvM says, What you have, just does not provide directional information.

Best Wishes
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group