|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
Re: Non Contact Magnetic Encoder with PWM Output
Quote:
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
|
|||||
|
|||||
|
Re: Non Contact Magnetic Encoder with PWM Output
Quote:
Something like the encoder mentioned here would have made it easier to use more sensors without worrying too hard about interrupts. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |