Shop OBEX P1 Docs P2 Docs Learn Events
Interfacing Contacting Encoders — Parallax Forums

Interfacing Contacting Encoders

n9rfn9rf Posts: 2
edited 2007-10-19 20:47 in BASIC Stamp
Hi folks!

I need to interface a contacting (mechanical, not optical) rotary encoder to the Basic Stamp. I need Direction and Magnitude.

Should I condition, then use the Stamp to cipher Direction and Magnitude; or should external circuitry perform all tasks?

Anyone have any favorite circuits?

Thanks,
John

Comments

  • DgswanerDgswaner Posts: 795
    edited 2007-10-19 15:07
    I haven't found any Circuits for encoders, except circuits to work with other micro processors, which I didn't want to get into. As far as the stamp begin th cipher or not, it depends on what else it's going to do. a stamp isn't multi processing so if your reading the input from an encoder you aren't doing anything else. If you are you are missing data from the encoders, unless your stopped. I'm not sure of the scope of your project, you'll have to be the one to decide that. good luck

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    A complex design is the sign of an inferior designer. - Jamie Hyneman, Myth Buster
  • n9rfn9rf Posts: 2
    edited 2007-10-19 18:40
    Thanks for the reply.

    While the processor has other chores to do, I do not believe it will be tied up reading the encoder(s). The project is intended to use DC motors to position 4 shafts. Each shaft will tune the input and output (2 each) of a remote RF amplifier, and have a feedback potentiometer coupled to it. The processor's duties will be to read the RF frequency, consult a look-up table, and position the shaft according to the table as well as read the output of·four encoders that can be used to manually tune the amplifier.

    What·I·am looking for·is minimal circuitry to perform the encoder conditioning the Stamp will require.

    Oh, and why use DC motors? I want to use DC motors instead of steppers for·several reasons: 1) To minimize any lag between turning the knob and the final position of the shaft, 2) Eliminate the need for for stepper circuitry, 3) Eliminate the need to "Home" the steppers upon start-up, and 4) To have a proportional relationship between turning the knob and motor rotation.

    Thanks again for any advice.

    -J
  • D FaustD Faust Posts: 608
    edited 2007-10-19 20:47
    I don't think that you will be able to determine direction. What is your set up?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    --DFaust
Sign In or Register to comment.