To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.handyboardOpen lugnet.robotics.handyboard in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Handy Board / 6950
6949  |  6951
Subject: 
Re: Analog port shaft encoder
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Sat, 23 Oct 1999 18:37:13 GMT
Original-From: 
TH0RMAN23@AOLihatespam.COM
Viewed: 
796 times
  
Tried what you said Joshua, I went through all the analog ports and manually
fed them with a TTL signal from a function generator at a relatively low
frequency of 5Hz and wrote this little test code to test it. In this example,
the sencdr3.icb has been loaded with a global variable named encoder3_counts.
This variable kept the running count of the encoder's ticks so I really dont
have to do anything else but to read it.

void encoder_test()
    {
        while(1)
                {
                        printf("Count: %d\n", encoder3_counts);
                }
    }

void main()
{
start_process(encoder_test());
}

The optical encoder is connected to analog port 3 with a 330 ohms current
limiting resistor for the Emmiter and the sensor si pull up by the Handy
Board's internal 47K. An oscilloscope is connected to the sensor side of the
encoder (QRB1114) . I ran the code and got the pulse but I have no result on
the LCD beside a 1 which seems to "stuck" there and wont change. Does anybody
else have this problem with using this driver? Thanks.

Best regard,
Rob



Message has 1 Reply:
  Re: Analog port shaft encoder
 
Rob, I use these same encoders just as you do, and they work fine. However, the spacing of the encoders from thier targets is important for proper function. 1.5 to 2 mm works well for me. In addition, I have had to play with the encoder high (...) (25 years ago, 25-Oct-99, to lugnet.robotics.handyboard)

2 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR