Go to Post Which meant that I was completely unprepared when the congealing large globules suddenly accelerated back towards me at 64 ft/sec/sec. - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 26-08-2013, 14:34
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,795
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: encoder values fluctuating considerably

After verifying the wiring, another issue with that model encoder is the proper installation and spacing of the encoder disk.
If it isn't spaced properly, using the spacer aid that should have come in the kit, then the rate will be random at all speeds.
The encoder disk also needs to be tight on the shaft rotating it, and the shaft itself cannot have very much play which would change the spacing as well.
"Accepts +/-.020" Axial shaft play"

Finally, if you have other EP4's be careful not to mix the encoder disks. The disks and encoder package are paired specifically to match up cycles per rev. Your model number specifies it is 360 cycles per rev., but if you happened to also own a 250 or 100, then they would not work with the 360 model and they are hard to distinguish between.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 26-08-2013 at 14:41.
Reply With Quote
  #2   Spotlight this post!  
Unread 26-08-2013, 14:50
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,065
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: encoder values fluctuating considerably

Quote:
Originally Posted by Mark McLeod View Post
...proper installation and spacing of the encoder disk...

...If it isn't spaced properly...

...The encoder disk also needs to be tight on the shaft rotating it...

... be careful not to mix the encoder disks...
What Mark said. Plus:

... damage to the disk (e.g. scratches) from improper handling


Reply With Quote
  #3   Spotlight this post!  
Unread 03-10-2013, 11:45
sdaustin sdaustin is offline
Registered User
FRC #3667 (The Mecanum Knights)
Team Role: Engineer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Port Huron, MI
Posts: 17
sdaustin is an unknown quantity at this point
Re: encoder values fluctuating considerably

Quote:
Originally Posted by Ether View Post
What Mark said. Plus:

... damage to the disk (e.g. scratches) from improper handling


What Mark & Ether said, plus:

We recently noticed an interesting issue with an E4P encoder codewheel disk. It turns out that the reflective stripes on the codewheel disk from which the encoder picks up the pulses are not applied directly to the disk itself. Rather, they are applied to a plastic film disk that is attached to the codewheel, probably with an adhesive of some kind.

After removing the codewheel from the shaft for cleaning, we found that this plastic film was spinning relative to the disk. There was still a relative tight interference fit of the the plastic film disk to the hub of the codewheel, but it was easy to make it spin on the codewheel and you could easily peel up the edge.

In the past, we have cleaned the codewheel disk with rubbing alcohol & a Q-Tip and alcohol-based eyeglass cleaning wipes, and I suspect the alcohol seeped under the plastic disk and dissolved the adhesive. Probably won't be cleaning them that way in the future. :-)
Reply With Quote
  #4   Spotlight this post!  
Unread 26-08-2013, 14:54
grosh grosh is offline
Registered User
FRC #2147
 
Join Date: Feb 2008
Location: Spokane, WA
Posts: 100
grosh is an unknown quantity at this point
Re: encoder values fluctuating considerably

Joe- the max RPM did include the 3x encoder gear

Mark- I think it is the encoder assembly. I swapped the encoder wire to the gearbox on the opposite side and it solved the problem.

Now can someone help me determine the correct value to use for DistancePerCount in the Encoder Open VI?
Reply With Quote
  #5   Spotlight this post!  
Unread 26-08-2013, 15:30
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,795
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: encoder values fluctuating considerably

Quote:
Originally Posted by grosh View Post
Now can someone help me determine the correct value to use for DistancePerCount in the Encoder Open VI?
It depends on what you want Get Distance to return.
In the example code you are using it isn't actually setup to return distance. It is setup to return an angle of rotation. In normal usage I'd prefer the Get Distance to return actual inches travelled.

If you want to use the example code as is and keep Distance as a rotation angle, then you can determine the value experimentally by setting DistancePerCount to 1, rotating the wheel 360 degrees (or some multiple to help reduce error), finally dividing 360 by the "Distance" to get DistancePerCount in degrees/count. You'll need to add a display of the raw Distance value, so you can use it. The value can also be calculated analytically as long as you take into account any reduction, so you know what a full rotation is.

If instead you want to have the Get return actual distance travelled, then follow the (paraphrased) example given by the LV Help detail for Encoder Open:
"For example, if the wheel diameter is six inches and the encoder pulses 360 times per rotation of the wheel (at 1x), then a scaling factor of 6*pi / 360= .0524 returns the number of inches the wheel has turned. In this case, you input .0524 ."

I also recommend experimentally verifying the distance value by setting DistancePerCount=1 (that'll output the number of ticks as the "Distance"), adding a display of the raw Distance value, then slowly push your robot a pre-measured distance using a tape measure. That'll give you the proper value to use by dividing the measured distance by the Get Distance.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 27-08-2013 at 09:52.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:47.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi