|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Encoder rate noise
How are you mounting and driving the encoder? How are you decoding it? And what speeds. |
|
#2
|
||||
|
||||
|
Re: Encoder rate noise
Quote:
It is mounted to an idler sprocket to a gear box. So there should be no slip I have the encoder running in a 100 ms period task. It is setup how it says in the example I am getting around 9600 pips per second |
|
#3
|
|||||
|
|||||
|
Re: Encoder rate noise
What kind of noise are you experiencing? How fast is it spinning?
|
|
#4
|
||||
|
||||
|
Re: Encoder rate noise
I am seeing about a 33% noise. I attached a picture of my code bellow. The encoder is running at about 1500 rpm
http://www.chiefdelphi.com/media/photos/40706? http://www.chiefdelphi.com/media/photos/40707? |
|
#5
|
|||||
|
|||||
|
Re: Encoder rate noise
???
Are you using the S4 ball bearing version? The sleeve bearing lists 100 RPM as max shaft speed. Are you seeing noise on an oscilloscope? |
|
#6
|
||||
|
||||
|
Re: Encoder rate noise
Some of the wires in your VIs are overlapping or hidden, so it's difficult to be sure where they are connected...
What happens if you switch 4x decoding to 1x? Do you know the CPR (counts per revolution) of your S4 encoders? I believe the standard options are 100 and 360. Can you post a plot of your encoder rate over time? Also make sure there is no load on the gearbox so it can spin freely to ensure a constant speed. Edit: Thanks for the note, Joe, good to know. Note Joe's later post for more about 1x vs. 4x. Last edited by Aren Siekmeier : 06-18-2014 at 03:53 PM. |
|
#7
|
||||
|
||||
|
Re: Encoder rate noise
Also, I forgot to mention. There should be a VI in the Encoder palette to set the sample interval. You can call this in Begin.vi on your encoder reference to change the duration of the rolling interval the FPGA calculates the rate over.
|
|
#8
|
|||||
|
|||||
|
Re: Encoder rate noise
I really hope they make this available in C++ and Java without having to modify the source in this next year's version of the API.
|
|
#9
|
||||
|
||||
|
Re: Encoder rate noise
Quote:
|
|
#10
|
|||||
|
|||||
|
Re: Encoder rate noise
Quote:
|
|
#11
|
||||||
|
||||||
|
Re: Encoder rate noise
Quote:
|
|
#12
|
||||||
|
||||||
|
Re: Encoder rate noise
Quote:
1x decoding helps reduce noise beyond just reducing counts to within the limit of the FPGA. It also allows additional digital samples between each count, effectively acting like averaging 4 samples at 4x. It also ignores manufacturing tolerances between the different signals, like Ether mentioned. For the S4 encoder, B lags A by 90 degress +/- 60 degrees (max). |
|
#13
|
||||
|
||||
|
Re: Encoder rate noise
Quote:
|
|
#14
|
||||||
|
||||||
|
Re: Encoder rate noise
2x uses the rising and falling pulse of channel A (since those are 180 degrees apart).
Last edited by Joe Ross : 06-18-2014 at 04:49 PM. |
|
#15
|
||||
|
||||
|
Re: Encoder rate noise
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|