Go to Post FIRST is about the relationships you build. ONE individual at a time. - xitaqua [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 16-02-2013, 21:54
twiggzee twiggzee is offline
Registered User
FRC #3502 (Octo-(PI)-Rates)
Team Role: Mentor
 
Join Date: Mar 2011
Rookie Year: 2011
Location: Tallahassee, FL
Posts: 55
twiggzee is an unknown quantity at this point
Magnetic Encoder Help

We have an AS5130 magnetic encoder from ASM. We're trying to get some readings off of it so we can determine our shooter angle. i'm having trouble getting any response from it.

here's what we've done so far.

wiring is as follows (per an email from an ASM representative)
5V to Digital I/O 5V
GND to Digital I/O (-)
Vout to Digital I/O Signal

Programming:

1. We used the Encoder class, meant for quadrature encoders. We know this is not a quadrature but we tried it anyways. We called the digital I/O channel that it was plugged into and an unused channel as well because it required 2 channels in the constructor. We were unable to read any values.
2. Some CD posts suggested using the Counter class. We tried that as well and were not able to get any readings either.
3. We also tried the PWM class since it should be a PWM signal coming out of the sensor. This classes constructor calls for a pin on the PWM channels on the digital sidecar as opposed to the digitial I/O channels. So we moved the connection as required to a PWM channel. This time we didn't just get no readings, we got an diamond shaped error icon in the output field of the SmartDashboard as if the output was not a number/correct format or something????
4. Lastly, we also read on CD as well as some FIRST forums that a low pass filter could be used to convert it to an analog signal read from the analog breakout. When we did that we found out pretty quickly (and luckily before damaging anything) that it was making the transistor on the breakout module heat up enough to burn your finger within a couple of seconds.
__________________
Wendy
Team 3502
Reply With Quote
 


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 10:13.

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