To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 15076
15075  |  15077
Subject: 
Re: Struggling with encoder wheel
Newsgroups: 
lugnet.robotics
Date: 
Thu, 12 Apr 2001 04:19:36 GMT
Viewed: 
909 times
  
    Pretty neat Chris.  You've very nearly recreated a special kind of
optical encoder that was developed by my former employers called a virtual
absolute encoder.  It didn't use diferent colors but it used a "time-window"
to read the last few states off of a disc which had "white noise" encoded on
the data track.  The look up is *very* fast becuse the "white noise" is
generated using a simple linear feedback shift register.
    As for speeding up the system you've got, I'm not sure I can help
there... It seems that you've done a very good job optimizing it for compact
storage.  I was trying to fathom a hash function to help here, but I haven't
come up with one that wouldn't take much more space to store the table.  I'm
intrigued though : )
                                        -JSM

"Chris Osborn" <fozztexx@pez.fullsystem.com> wrote in message
news:GBn6Mw.L02@lugnet.com...

I'm having a hard time finding a good algorithm for the encoder wheel
I came up with for use on my webcam. The way I packed the bits in the
lookup table has made it hard to get any speed out of the algorithms.

I'm using NQC, and the LEGO OS seems incredibly slow.

I've got a write-up with pictures on the whole thing at

http://www.fozztexx.com/LEGO/Webcam/

--
Chris Osborn                      Full System, Inc.
fozztexx@fullsystem.com           2160 Jefferson St., #240
http://www.fullsystem.com/        Napa, CA 94559
Webhosting that *works* - 99.99% uptime - First 3 months free



Message has 2 Replies:
  Re: Struggling with encoder wheel
 
(...) If I had room for a 64 element array, I'd just use that and make a lookup table. Unfortunately I don't, and I can't figure out a way to pack things in and still look them up with any speed. I also can't find any way to mathematically convert (...) (24 years ago, 12-Apr-01, to lugnet.robotics)
  Re: Struggling with encoder wheel
 
Chris, This idea would require an additional motor, but, an alternate approach might be to create your wheel with 36 alternating grey and white (perhaps by having a third or fouth shade/color you could have more information) segments. Then, in each (...) (24 years ago, 12-Apr-01, to lugnet.robotics)

Message is in Reply To:
  Struggling with encoder wheel
 
I'm having a hard time finding a good algorithm for the encoder wheel I came up with for use on my webcam. The way I packed the bits in the lookup table has made it hard to get any speed out of the algorithms. I'm using NQC, and the LEGO OS seems (...) (24 years ago, 11-Apr-01, to lugnet.robotics)

19 Messages in This Thread:






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

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    
Active threads in Robotics

 
Verified and Trusted Team of Hackers
7 hours ago
Custom Search

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