Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: 74HC165N and Rotary Encoders

  1. #1
    Junior Member
    Join Date
    Aug 2013
    Posts
    13

    74HC165N and Rotary Encoders

    My project will have more inputs than my board has pins.

    Project Notes
    Board: Teensy 3.0
    Rotary Encoders turned by hand (no motors)

    Questions:
    1. Will encoders work if going through a 165?
    2. If so, does the encoder library and debounce for the Teensy 3.0 still work? If not, what options would I have? I'm trying to avoid extra code and hardware to handle encoder and debounce.
    3. Can I daisy chain 2 165s so that one will drive buttons and one will drive encoders or would I need to run each separately connected directly to the board?
    4. Not related directly to this post, but what is the difference between a 165 and a 165N (as far as I would care about, or are they essentially the same for what I'm doing)?
    Last edited by eviolett; 09-05-2013 at 04:54 PM.

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    23,001
    Quote Originally Posted by eviolett View Post
    Questions:
    1. Will encoders work if going through a 165?
    No. The Encoder library does not support shift registers for I/O.

    2. If so, does the encoder library and debounce for the Teensy 3.0 still work? If not, what options would I have? I'm trying to avoid extra code and hardware to handle encoder and debounce.
    Neither does the bounce library.

    You'll need to write your own code if you want to connect stuff using a shift register. Bounce is probably much easier to do than Encoder!

    4. Not related directly to this post, but what is the difference between a 165 and a 165N (as far as I would care about, or are they essentially the same for what I'm doing)?
    This question would be easier to answer if you had posted a link to the part's datasheet. Those chips are made by several companies and each uses different letters on the end to mean different things. The letters are probably documented in the "ordering info" section of the datasheet.

  3. #3
    Junior Member
    Join Date
    Aug 2013
    Posts
    13
    Cool. While not great news, not the end of the world. Just saved me several hours (if not days) of testing.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •