This topic has 3 replies, 2 voices, and was last updated 8 years ago by SuperDroid.

  • Author
    Posts
  • #3359
     Nathan
    Participant

    My question does not involve robotics specifically, however I felt Superdroid might be able to help with my project. I would like to use a rotary encoder to count rotations of a shaft. I have not purchased an encoder, because I would like to find one that would work for my application and would be easy to program with my micro-controller. I already have an arduino uno.

    The shaft that is rotating (that I would like to keep track of rotations) will be moving a collar up and down, because the rod is threaded. I have calculated that 1 rotation will be 1/8th of an inch vertically. I would like to display on an LCD screen the amount of vertical distance the collar has traveled. So I would like the rotary encoder to sense (for example) 3 turns clockwise equals 3/8th of an inch on the display. Then if the rod turns the other way I would like it to subtract from the accumulated value.

    This is my first experience with arduino and a rotary encoder. So I was wonder if you all would have the hardware and program ability to perform this project.

    #3360
     SuperDroid
    Keymaster

    I would recommend you use one of these: http://www.superdroidrobots.com/shop/item.aspx/dual-ls7366r-quadrature-encoder-buffer/1523/

    It will interface with any encoder that outputs pulses and maintain a count on the number of pulses observed. You can talk to it using SPI communication to read the pulse count, which can be done pretty easily using an Arduino Uno. We have posted some sample code for interfacing an Arduino with an encoder buffer board here: https://github.com/SuperDroidRobots/Encoder-Buffer-Breakout

    #3364
     Nathan
    Participant

    Thank you for the help. I have purchased the LS7366R. I have also purchased an incremental encoder (in the link below):

    http://www.amazon.com/Signswise-Incremental-Encoder-Dc5-24v-Voltage/dp/B00UTIFCVA?ie=UTF8&psc=1&redirect=true&ref_=oh_aui_detailpage_o00_s00

    I am sorry to ask so many basic questions. However, do I need any other hardware to connect my incremental encoder and arduino uno to the LS7366R? Will I need a breadboard or connectors for the wires?

    Is there any videos to show how and where I connect these pieces together? I am not understanding the schematics.

    Any help would be appreciated

    #3365
     SuperDroid
    Keymaster

    We sell a hookup kit. you can get by without it, but it helps. http://www.superdroidrobots.com/shop/item.aspx/encoder-buffer-hookup-kit/1702/

    since you have ordered a optical encoder, you will want to remove the pull up resistor jumpers on the buffer board. the item description details this. http://www.superdroidrobots.com/shop/item.aspx/dual-ls7366r-quadrature-encoder-buffer/1523/

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Login Register

©2024 SDRobots.com | All rights reserved.

Log in with your credentials

or    

Forgot your details?

Create Account