Go to Post I miss the years when game speculation was based on an actual hint released in the form of unintelligible strings of numbers - tcallan [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 05-10-2005, 23:35
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,187
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Non Contact Magnetic Encoder with PWM Output

http://www.austriamicrosystems.com/0...try/AS5040.htm

I stumbled across this today...

Apparently, this company austriamicrosystems makes an IC which can measure the rotation of a magnet (resolution of 1024 parts per revolution). It has an onboard processor and A/D converter, and does all the stuff we would to do process encoder data in our robot code right on board the chip. It can output rotation data in quadrature, SSI, or PWM.

I cant seem to find how much this costs, but they will send free trials to corporations.

This is the first I've seen of this type of sensor. Does anyone know a little more, or think this may be something worth looking into? As far as I can see (without money on the mind), something like this could simplify our bot's code by leaps and bounds and give a much easier means to closed loop control, with less chance of error or breakage.
  #2   Spotlight this post!  
Unread 07-10-2005, 17:46
Gdeaver Gdeaver is offline
Registered User
FRC #1640
Team Role: Mentor
 
Join Date: Mar 2004
Rookie Year: 2001
Location: West Chester, Pa.
Posts: 1,367
Gdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond repute
Re: Non Contact Magnetic Encoder with PWM Output

From what I read, the chip puts out pulses in mode 2 on one pin and direction state on another. It still requires counting pulses and interrupts. However the interrupt routine would not have to include the state machine that quadrature requires. Simpler and faster handler
  #3   Spotlight this post!  
Unread 08-10-2005, 16:38
seanwitte seanwitte is offline
Registered User
None #0116
Team Role: Engineer
 
Join Date: Nov 2002
Location: Herndon, VA
Posts: 378
seanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant future
Send a message via AIM to seanwitte
Re: Non Contact Magnetic Encoder with PWM Output

Quote:
Originally Posted by Gdeaver
From what I read, the chip puts out pulses in mode 2 on one pin and direction state on another. It still requires counting pulses and interrupts. However the interrupt routine would not have to include the state machine that quadrature requires. Simpler and faster handler
Quadrature doesn't require a state machine to decode the input. Use one channel on an interrupt and the other on a regular digital input. In the ISR, the value of the channel on the digital input provides the direction.

ISR code (assume channel A is on the interrupt pin, fire on rising edge, and channel B is on input 0). distance is a signed int.

distance += (dig_in0 == 0) ? 1 : -1;
  #4   Spotlight this post!  
Unread 09-10-2005, 01:19
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: Non Contact Magnetic Encoder with PWM Output

Quote:
Originally Posted by seanwitte
Quadrature doesn't require a state machine to decode the input. Use one channel on an interrupt and the other on a regular digital input. In the ISR, the value of the channel on the digital input provides the direction.
That can fail if the encoder wobbles back and forth in one place. Unless you keep track of the previous actions, you'll keep counting pulses in one direction and ignoring them in the other. It's not usually a problem with the kind of mechanical systems used in FIRST robots, but it did affect our "ground travel" sensors last season until we put in the necessary state machine.

Something like the encoder mentioned here would have made it easier to use more sensors without worrying too hard about interrupts.
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
Compiling Failed Teh Mike Programming 7 09-02-2005 13:27
Kevin Watson's encoder code with RPM output MaxM Programming 2 05-02-2005 00:06
FYI about using PWM 13-16 with interrupts cabbagekid2 Programming 6 22-01-2005 00:54
Updated Encoder Code Available Kevin Watson Programming 2 04-01-2005 01:00
Fading LEDs using a PWM signal from the Edubot DanL Programming 22 30-03-2004 00:07


All times are GMT -5. The time now is 15:21.

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