Go to Post Are we really at the point where the only useful thing we can discuss is Dean's choice in timekeeping apparel? The man has a watch. He uses it to tell time. Do we really care how much it is worth, or who made it? I would be much more interested in what he does, not what he wears. - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 31-01-2010, 20:18
JewishDan18's Avatar
JewishDan18 JewishDan18 is offline
Registered User
FRC #1700
Team Role: Engineer
 
Join Date: Feb 2009
Rookie Year: 2007
Location: Sunnyvale, CA
Posts: 185
JewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to behold
KOP Mangetic Encoders Don't Spin Full 360

Hello, today I was using the KOP magnetic encoders in analog mode. To my understanding, It should read 0 volts at 0 degrees, and 5 volts at 360 degrees, and vary linearly in between. However, It seems that they reach 5 volts at about 270 degrees, and reset after that. This is true for both the encoders in the kit. Perhaps the magnet is not properly centered on the chip? If so, it is strange that they are both reseting at a similar angle. Has anyone else experienced this? Thanks for any help.
  #2   Spotlight this post!  
Unread 31-01-2010, 21:41
sparrowkc sparrowkc is offline
Registered User
AKA: Mark
FRC #1986 (Team Titanium)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Lees Summit
Posts: 114
sparrowkc is a splendid one to beholdsparrowkc is a splendid one to beholdsparrowkc is a splendid one to beholdsparrowkc is a splendid one to beholdsparrowkc is a splendid one to beholdsparrowkc is a splendid one to beholdsparrowkc is a splendid one to beholdsparrowkc is a splendid one to behold
Re: KOP Mangetic Encoders Don't Spin Full 360

Our mag encoders do not have dead spots. We are reading them over SPI.
  #3   Spotlight this post!  
Unread 01-02-2010, 19:43
JewishDan18's Avatar
JewishDan18 JewishDan18 is offline
Registered User
FRC #1700
Team Role: Engineer
 
Join Date: Feb 2009
Rookie Year: 2007
Location: Sunnyvale, CA
Posts: 185
JewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to behold
Re: KOP Mangetic Encoders Don't Spin Full 360

Its not so much a dead spot, but it read 0 volts at 0 degrees, 5 (or 0) volts at 270 degrees, and if i keep spinning, reads 5 volts again at 180 degrees
  #4   Spotlight this post!  
Unread 01-02-2010, 20:24
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: KOP Mangetic Encoders Don't Spin Full 360

What you describe doesn't make sense. How are you testing this? It might make things clearer if you showed us a picture of your setup.
  #5   Spotlight this post!  
Unread 01-02-2010, 23:52
JewishDan18's Avatar
JewishDan18 JewishDan18 is offline
Registered User
FRC #1700
Team Role: Engineer
 
Join Date: Feb 2009
Rookie Year: 2007
Location: Sunnyvale, CA
Posts: 185
JewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to behold
Re: KOP Mangetic Encoders Don't Spin Full 360

Perhaps the attached image will help. We are measuring the value with a voltmeter and outputing the number to the DS, and they match. The values are the voltage multiplied by 72 to convert it to degrees. So 0 volts is 0 degrees, and 360 is 5 volts
Attached Thumbnails
Click image for larger version

Name:	spiral1.gif
Views:	81
Size:	46.3 KB
ID:	8468  

Last edited by JewishDan18 : 01-02-2010 at 23:58.
  #6   Spotlight this post!  
Unread 02-02-2010, 10:22
sparrowkc sparrowkc is offline
Registered User
AKA: Mark
FRC #1986 (Team Titanium)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Lees Summit
Posts: 114
sparrowkc is a splendid one to beholdsparrowkc is a splendid one to beholdsparrowkc is a splendid one to beholdsparrowkc is a splendid one to beholdsparrowkc is a splendid one to beholdsparrowkc is a splendid one to beholdsparrowkc is a splendid one to beholdsparrowkc is a splendid one to behold
Re: KOP Mangetic Encoders Don't Spin Full 360

Does the location of the border between 0 and 5 volts change over several rotations? Just to verify, you have a proper setup (magnet centered over the chip with an air gap of less than 2 mm) and aren't spinning the magnet in your fingers or something, right?
  #7   Spotlight this post!  
Unread 02-02-2010, 10:32
bcieslak
 
Posts: n/a
Re: KOP Mangetic Encoders Don't Spin Full 360

An encoder sends out a stream of 0V to 5V pulses as it rotates...Don;t look for anything voltages in between. They are digital not analog.. Not sure about the KOP encoder but typically you get 1024 pulses per revolution. .Your code counts pulses and the time between the pulses to get the information it needs. And there are 2 channels putting out pulses but they are out of phase with each other. Using that difference you can determine the direction the axis is turning. Use an oscilloscope to test the outputs and observe the pulse train...

BC
  #8   Spotlight this post!  
Unread 02-02-2010, 10:55
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,078
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: KOP Mangetic Encoders Don't Spin Full 360

Quote:
Originally Posted by bcieslak View Post
An encoder sends out a stream of 0V to 5V pulses as it rotates...Don;t look for anything voltages in between. They are digital not analog.. Not sure about the KOP encoder but typically you get 1024 pulses per revolution. .Your code counts pulses and the time between the pulses to get the information it needs. And there are 2 channels putting out pulses but they are out of phase with each other. Using that difference you can determine the direction the axis is turning. Use an oscilloscope to test the outputs and observe the pulse train...

BC
This is for a quadrature-type (optical) encoder. The original poster is describing the magnetic encoder that came in the kit of parts this year.
  #9   Spotlight this post!  
Unread 02-02-2010, 11:55
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: KOP Mangetic Encoders Don't Spin Full 360

Quote:
Originally Posted by JewishDan18 View Post
Perhaps the attached image will help. We are measuring the value with a voltmeter and outputing the number to the DS, and they match. The values are the voltage multiplied by 72 to convert it to degrees. So 0 volts is 0 degrees, and 360 is 5 volts
You're not telling us the whole story. Your green numbers can't get as high as the picture shows them reaching.

What is your magnet affixed to, and in what orientation relative to the sensor?
  #10   Spotlight this post!  
Unread 02-02-2010, 18:34
JewishDan18's Avatar
JewishDan18 JewishDan18 is offline
Registered User
FRC #1700
Team Role: Engineer
 
Join Date: Feb 2009
Rookie Year: 2007
Location: Sunnyvale, CA
Posts: 185
JewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to behold
Re: KOP Mangetic Encoders Don't Spin Full 360

The magnet is fixed to an axle, above which is the chip, mounted on a lexan bracket. The chip is pretty freaking close, but I'll check it out tonight and make sure it is close enough.

I made a mistake in describing the picture. The white numbers show how far it has turned, and the green numbers show how far it would think it has turned (both over multiple revolutions). Take that number modulo 360, and it'll give you the degrees it reads. Sorry about that. I'll try to get some pictures tonight of the setup, if it'll help.
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Attaching KoP encoders DarKCroNo Electrical 4 04-02-2009 17:23
KoP Quadrature Encoders ComradeNikolai Sensors 1 22-01-2009 14:22
2009 KoP Wheel broken (already) - don't drop them! DonRotolo Kit & Additional Hardware 2 17-01-2009 13:12
Don't Do What Seanny Don't Does Mike Iantorno General Forum 38 05-02-2003 23:56


All times are GMT -5. The time now is 07:50.

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