Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/26/05 17:08
Read: times


 
Msg Score: 0
 +1 Good Question
 -1 Didn't Search First
#88547 - Digital position encoder
Hello everybody.

I have a problem with digital position encoder.

Introduction:
The digital position encoder is device, which is attached on the motor and it generate impulses when the motor is rotating. The encoder has a two output channel with phase shift 90°. I have these output from encoder connected to TH0(P3.4) and TH1(P3.5) pins of my 8052 derivate microcontroller. When the signal on channel A is comming sooner than signal on channel B, the result is in rotating motor to right. In the other case, when the signal on channel B is commning sooner than signal on channel A, the result is in rotating motor to left. When signals not comming, motor is stopped. The position of something (e.g. carrier lift) can be dedicate by counting of impulses generated by encoder.

Question:
Can you give me advice how should I make service routines (the best in C language) for dedicate direction and number of impulses?

I am in hurry I have to solve the problem in few days. I make programs for 8051 derivate microcontroller, especially in measurements system for some years but this is new for me.
Thank you all for fast response.

PS: Sorry for my not good english, but I still studying it :)


List of 51 messages in thread
TopicAuthorDate
Digital position encoder            01/01/70 00:00      
   Dont do this.            01/01/70 00:00      
      Signals are not connected directly            01/01/70 00:00      
   Is assembly ok?            01/01/70 00:00      
      For Mehdi            01/01/70 00:00      
   its easy in software            01/01/70 00:00      
      but            01/01/70 00:00      
         same resolution            01/01/70 00:00      
      But...what if ?            01/01/70 00:00      
         So what is the solution?            01/01/70 00:00      
         absolutely no problem            01/01/70 00:00      
      Thank you            01/01/70 00:00      
         PLEASE not again            01/01/70 00:00      
            Sorry            01/01/70 00:00      
               list.hw.cz            01/01/70 00:00      
                  thank you            01/01/70 00:00      
            Re: PLEASE not again            01/01/70 00:00      
               Re frequency            01/01/70 00:00      
                  So what frequency do we sample at?            01/01/70 00:00      
                  I try to explain Peter's idea again            01/01/70 00:00      
                     We know it !            01/01/70 00:00      
                        Nothing ???            01/01/70 00:00      
                           it takes time            01/01/70 00:00      
      Code doesn't function            01/01/70 00:00      
         reverse direction !            01/01/70 00:00      
            This is not a problem            01/01/70 00:00      
               incorrect operation?            01/01/70 00:00      
               right connection ?            01/01/70 00:00      
   I dunno            01/01/70 00:00      
   Now...            01/01/70 00:00      
   check the sample condition !            01/01/70 00:00      
   clarify            01/01/70 00:00      
      @Erik            01/01/70 00:00      
         @Peter            01/01/70 00:00      
            Grey code            01/01/70 00:00      
               Grey code more            01/01/70 00:00      
                  Grey INCREMENTAL ?            01/01/70 00:00      
                     I guess 98            01/01/70 00:00      
                  Gray code            01/01/70 00:00      
      Not a gray code            01/01/70 00:00      
         Grey            01/01/70 00:00      
   Yes of course its Grey code            01/01/70 00:00      
      Absolute Vs Incremental            01/01/70 00:00      
         So now...            01/01/70 00:00      
            Yes it can but only...            01/01/70 00:00      
               Peter is right!            01/01/70 00:00      
   Lover not a fighter :-)            01/01/70 00:00      
      Lover of software            01/01/70 00:00      
         steps lost or not            01/01/70 00:00      
   Determining direction            01/01/70 00:00      
   Its not Grey, its Gray !            01/01/70 00:00      

Back to Subject List