Go to Post If you use a flux capacitor make certain it is a COTS component, or that you fabricate it from COTS materials. - Richard Wallace [more]
Home
Go Back   Chief Delphi > Technical > Electrical > CAN
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 02-02-2013, 14:49
ILikePizza555's Avatar
ILikePizza555 ILikePizza555 is offline
Registered User
AKA: Isaac Avram
FRC #2761 (CN Ironhorse)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Fresno, CA
Posts: 63
ILikePizza555 is an unknown quantity at this point
Question Problems with the AS5145B and CAN

Our team has decided to use the AS5145B encoder for some of our motors this year. However, we are running into a few problems.

We've double-checked and we are sure that the encoder is hooked up to the Jaguar correctly, however, in the Labview example project, the motor just keeps increasing speed and and encoder doesn't return return any data.

Also in the BDC-COMM application, when we use Position mode and Set the PID to some simple test values (12, 0, 0) the motor just turns and never stops. When we check the Periodic Status Messages, we see that the data returned is just 0.00 for POS B0-3 and Speed B0-3.

I'm stumped. Anyone else figured this thing out?
__________________
PONIES ARE STOOPID MAGIK -Heavy
Reply With Quote
  #2   Spotlight this post!  
Unread 02-02-2013, 16:10
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 988
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Problems with the AS5145B and CAN

Have you wired up the CSn pin to Ground?

http://wpilib.screenstepslive.com/s/...control-system
Reply With Quote
  #3   Spotlight this post!  
Unread 02-02-2013, 16:35
ILikePizza555's Avatar
ILikePizza555 ILikePizza555 is offline
Registered User
AKA: Isaac Avram
FRC #2761 (CN Ironhorse)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Fresno, CA
Posts: 63
ILikePizza555 is an unknown quantity at this point
Re: Problems with the AS5145B and CAN

Quote:
Originally Posted by RufflesRidge View Post
Have you wired up the CSn pin to Ground?

http://wpilib.screenstepslive.com/s/...control-system
We are not using the digital sidecar, we are connecting it to the encoder pins on the jag, but, now that you mention it, the GND pin is connected to the (-) on the jag.

I'll try changing it and I'll see what happens.
__________________
PONIES ARE STOOPID MAGIK -Heavy
Reply With Quote
  #4   Spotlight this post!  
Unread 02-02-2013, 17:15
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 988
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Problems with the AS5145B and CAN

GND should be connected to - on the jag, but CSn should as well. Even though you aren't using the DSC that page should still be helpful.
Reply With Quote
  #5   Spotlight this post!  
Unread 02-02-2013, 17:17
ILikePizza555's Avatar
ILikePizza555 ILikePizza555 is offline
Registered User
AKA: Isaac Avram
FRC #2761 (CN Ironhorse)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Fresno, CA
Posts: 63
ILikePizza555 is an unknown quantity at this point
Re: Problems with the AS5145B and CAN

I can't change the wiring ATM, but I have a couple of pics for clarity:

Spoiler for Encoder pic1:


Spoiler for Encoder pic2:


Spoiler for JAG Hookup:


Do we need to change the wiring?

Edit:
Sorry, I didn't see your last post
__________________
PONIES ARE STOOPID MAGIK -Heavy
Reply With Quote
  #6   Spotlight this post!  
Unread 02-02-2013, 17:24
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 988
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Problems with the AS5145B and CAN

Excellent job on the pictures! If you run a wire from CSn to GND on the board and leave GND connected to - on the Jag I believe you should be all set.
Reply With Quote
  #7   Spotlight this post!  
Unread 02-02-2013, 17:53
ILikePizza555's Avatar
ILikePizza555 ILikePizza555 is offline
Registered User
AKA: Isaac Avram
FRC #2761 (CN Ironhorse)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Fresno, CA
Posts: 63
ILikePizza555 is an unknown quantity at this point
Re: Problems with the AS5145B and CAN

Quote:
Originally Posted by RufflesRidge View Post
Excellent job on the pictures! If you run a wire from CSn to GND on the board and leave GND connected to - on the Jag I believe you should be all set.
Okay, thank you. We have someone sodering the pins right now. Just wondering if you have tried doing this, and if you have, what's the best way to test it works? BDC-COMM?
__________________
PONIES ARE STOOPID MAGIK -Heavy
Reply With Quote
  #8   Spotlight this post!  
Unread 02-02-2013, 18:17
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 988
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Problems with the AS5145B and CAN

Quote:
Originally Posted by ILikePizza555 View Post
Okay, thank you. We have someone sodering the pins right now. Just wondering if you have tried doing this, and if you have, what's the best way to test it works? BDC-COMM?
Using the encoder, used CAN, never used them together before. BDC-COMM sounds like a good way to check things out and moving to an O-Scope or DMM on one of the channels to see if it's actually changing are where I would go next if that doesn't work.
Reply With Quote
  #9   Spotlight this post!  
Unread 02-02-2013, 18:22
ILikePizza555's Avatar
ILikePizza555 ILikePizza555 is offline
Registered User
AKA: Isaac Avram
FRC #2761 (CN Ironhorse)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Fresno, CA
Posts: 63
ILikePizza555 is an unknown quantity at this point
Re: Problems with the AS5145B and CAN

Thanks, we tried it out and it worked perfectly.
__________________
PONIES ARE STOOPID MAGIK -Heavy
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 02:48.

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