Ioannis
Speed max 6 turn sec --> 6 KHz
Hmm, I think it is very fast for the PIC to respond and also display to LCD. I guess that you might try use second PIC to display and get the data through a fast connection either parallel (PIC to PIC with 8 bit ports) or serial the fastest possible. This way the main PIC will have all the time to read the encoder and send the data to the second PIC or terminal device.
Also the first PIC should run as fast as you can, 20MHz xtal, or in assembly. I don't have the time to do the math right now to calculate how fast it has to run.
Ioannis
Greetings,
Scott Shumate of Shumatech http://www.shumatech.com has designed a 3 axis Digital ReadOut for lathes and mills based on a single PIC microcontroller.
Full documentation is available on his web site and he sells bare circuit boards at very reasonable prices.
The Shumatech DRO has advanced features such as bolt hole patterns, tool offsets and RPM.
The Shumatech DRO will work with Chinese linear scales and / or rotary encoders simultaneously.
I bought the circuit board from Shumatech and built my 3 axis DRO for about $125 in parts which is a tremendous savings when comparable DROs cost $1,200+.
My Shumatech DRO:
http://users.rcn.com/seiths/projects...s/RPM_DRO.html
http://users.rcn.com/seiths/projects...s/RPM_DRO.html
I had started designing a PIC based DRO for my milling machine when I discovered the Shumatech DRO.
I abandoned the design, as it didn't make sense for me to attempt to reinvent a DRO when an excellent advanced featured DRO was available for the cost of a circuit board and parts.
Ned
Hello everyone
Currently I have one quadrature optical coder and my code works fine (increase and reduction according to the sense of rotation)
I have two questions
1) I want to increase the resolution (x4) of the optical codeur while decoding the fronts high and low of two channels A and B (see the picture in blue)
2) When I start the code if I decrease immediately the value displayed is 65535 65534.9 65534.8 etc....
but I will want -0.1 -0.2 -0.3 etc
Do you have an idea to begin?
Bookmarks