| Electronics > Projects, Designs, and Technical Stuff |
| Troubleshooting an optical encoder |
| << < (4/4) |
| sarahMCML:
Hi, It looks to me like the 2 middle pins of the 4 connector pins at the bottom of the second pic could do with resoldering properly at least! Some shocking soldering on that board! Regards, Sarah. |
| OM222O:
You would be quite right (but red and green) ... I can't believe I didn't spot it myself |O There are even markings on the PCB saying that red is phase A and green is phase B. I was following the instructions listed on the product page which is clearly wrong. https://www.amazon.co.uk/Encoder-SODIAL-Incremental-Rotary-Measurement/dp/B01HLRSLF0/ref=sr_1_16?ie=UTF8&qid=1548923921&sr=8-16&keywords=rotary+encoder So now I realize I must have connected it "the wrong way around" the one time that it worked ... which was actually the correct way around :palm: Also yes sarah, I did some soldering on the board myself ... it's quite bad out of the box! I still can't believe I didn't spot that and took the amazon listing for granted, even though I pointed out the white "phase" has a completely different circuit :-DD What's even more confusing is the choice of their colors! if it wasn't red, eg: purple,pink,yellow, etc I wouldn't think it's VCC ... but it's red and listed as VCC on the product page! then white (which if red wasn't there would be my next choice for VCC) is actually VCC! it's so confusing! |
| OM222O:
here is a short video of the intended application: https://streamable.com/io43n It's a simple but accurate digital protractor :D This is just a prototype and I will have the machined parts soon, it should decrease the parallax error (if the two arms aren't centered around the same point) as well as error on point of contact. would you be interested in a video about how I got 4x the resolution of the encoder? I can explain it in a separate video because it's really simple and useful trick ;D |
| StillTrying:
Now that you've got it working, LOL. I'd apply the 2 phases to digital inputs and plot the 2 phases to see how good it really is, I don't think I've ever come across an encodered knob that isn't easy to confuse. :) |
| OM222O:
That was the first thing I did actually, they both have full swing and the output is pretty decent! now just need to order proper arms to be milled and possibly get a better encoder to measure downto 0.01 degree haha |
| Navigation |
| Message Index |
| Previous page |