Tagged: LS7366R
This topic has 9 replies, 3 voices, and was last updated 4 years ago by nathmaheshmp.
- AuthorPosts
- January 14, 2020 at 7:21 pm #7397extrascrappyParticipant
Hi,
I’m currently unable to use the index function to reset my counter. As found from browsing on this forum, I tried changing the 0x03 to 0x23 which according to the PDF documentation should be correct. I, however, do not seem to be getting anything… when I change 0x03 to 0x23, I just gett a ton of 0s for my encoder postion.
All of my other code is the same as the example Arduino script.
Help!
Thank youJanuary 15, 2020 at 8:47 am #7401SuperDroidKeymasterHello,
Are you trying to reset the number of counts that the arduino is reading? If that is the case, you can use the command “Encoder1.clearEncoderCount()”The buffer board does not hook directly up to the Index pins of the LS7366R, so sending that value might not help.
Thank you,
MartyJanuary 15, 2020 at 12:29 pm #7402extrascrappyParticipantHello,
Hmmm.. ok. But how would i trigger that “encoder clear command” upon every index pulse? I can clear the encoder readings fine from the example Arduino code, but I need to know when that index pulse comes through so that I can execute it accordingly.
January 15, 2020 at 1:13 pm #7403SuperDroidKeymasterDo you physically have the index pin hooked up to the Arduino? If that is the case, then you should be able read the pulse with a digitalRead and clear the encoder counts that way.
January 15, 2020 at 1:19 pm #7405extrascrappyParticipantHi,
Thank you for your response. DigitalRead would work if my particular application didn’t have to spin my motor v fast. But at the speed that I have to use, the pulses would be too fast to be accurately read by the Arduino through a pin.
I just wanted to confirm that from a physical hardware standpoint; does the Dual LS7366R Quadrature Encoder Buffer support the index channel usage because I simply don’t seem to be able to use that feature…. As you alluded to above in Post #2 —> “The buffer board does not hook directly up to the Index pins of the LS7366R”, that would mean, I wouldn’t be able to use it?
January 15, 2020 at 1:21 pm #7406SuperDroidKeymasterYou are correct, the buffer board does not interface with the index pin directly.
January 15, 2020 at 2:44 pm #7407extrascrappyParticipantok. Do u sell any boards that do have the index channel connected?
January 15, 2020 at 3:46 pm #7408SuperDroidKeymasterUnfortunately we do not, we usually don’t have many people that need the index. If you are good with soldering, you might be able to solder a small wire onto the leg of the LS7366R chip.
October 12, 2020 at 5:05 am #8102nathmaheshmpParticipantAre you trying to reset the number of counts that the arduino is reading? If that is the case, you can use the command “Encoder1.clearEncoderCount()”
October 19, 2020 at 9:33 am #8103nathmaheshmpParticipantI can clear the encoder readings fine from the counts that the arduino is reading? If that is the case, you can use the command “Encoder1.clearEncoderCount()” example Arduino code, but I need to know when that index pulse comes through so that I can execute it accordingly.
- AuthorPosts
You must be logged in to reply to this topic.