This topic has 3 replies, 2 voices, and was last updated 8 years, 8 months ago by SuperDroid.
- AuthorPosts
- April 12, 2016 at 2:15 pm #3359NathanParticipant
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.
April 12, 2016 at 5:21 pm #3360SuperDroidKeymasterI 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
April 14, 2016 at 12:47 pm #3364NathanParticipantThank you for the help. I have purchased the LS7366R. I have also purchased an incremental encoder (in the link below):
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
April 14, 2016 at 2:03 pm #3365SuperDroidKeymasterWe 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/
- AuthorPosts
You must be logged in to reply to this topic.