Go to Post "It's not a bug, it's an unlisted feature." - Barry Craig [more]
Home
Go Back   Chief Delphi > Technical > Control System > Sensors
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 15-02-2013, 01:31
vikesrock777 vikesrock777 is offline
Georgia Tech RoboJacket
AKA: Casey O'Connor
FRC #5332 (Toaster Tech)
 
Join Date: Mar 2012
Rookie Year: 2009
Location: Atlanta, GA
Posts: 201
vikesrock777 will become famous soon enough
Encoder Feedback in BDC-COMM

We’ve been unable to receive any encoder data using the BDC-COMM utility. We’re currently running BDC-COMM 107 with Jaguar firmware version 107. We hooked up an E4P http://usdigital.com/products/encode...rotary/kit/E4P (E4P-360-250-N-S-D-D-2) encoder to the Jaguar and established communications with it via BDC-COMM. Suspicious of poor disc alignment or bad connections in our circuitry, so we measured the encoder output with an oscilloscope and confirmed a square wave signal coming off of the appropriate lines. Next, testing the connectors off of the encoder lines, we sequentially took things apart to the point where the lines (which we’d confirmed the signal on) were gator-clipped into the pins of the jaguar’s encoder input. To be clear, these are the connections we made.

+5VDC -> ‘+’

Ch A -> ‘A’

Gnd -> ‘-‘

Ch B -> ‘B’





From the software side of things, we’re sure we have communications with the Jaguar (we can read temperature, voltage out, and current out in real-time, and drive motors in these modes), we’ve specified the number of encoder lines (360), and we’ve tried both reference settings (encoder, which should use only the ‘A’ channel, and quadrature encoder, which should use both ‘A’ and ‘B’).

With this setup, we’ve tried both spinning the encoder by hand and running it on a gearbox. In BDC-COMM, the values associated with the encoder output (speed, position) remain firmly at zero.


Any thoughts as to what we might check next?
Reply With Quote
  #2   Spotlight this post!  
Unread 15-02-2013, 10:33
cmoon71 cmoon71 is offline
Mentor
AKA: Chuck Moon
FRC #3015 (Ranger Robots)
Team Role: Leadership
 
Join Date: Nov 2009
Rookie Year: 2008
Location: Rochester, NY
Posts: 10
cmoon71 is an unknown quantity at this point
Re: Encoder Feedback in BDC-COMM

Have you set the encoder counts/rev? The default value is 0 and unless you set this to a number, you will always read a 0 speed.
Reply With Quote
  #3   Spotlight this post!  
Unread 15-02-2013, 12:14
dyanoshak dyanoshak is offline
Registered User
AKA: David Yanoshak
FRC #2158 (ausTIN CANs)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Austin, TX
Posts: 189
dyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond repute
You need to set the mode to Speed Mode for the encoder speed to display. Switch back to whichever mode you want to control it in and you should now see the speed reported.
__________________
David Yanoshak
Co-founder REV Robotics | www.revrobotics.com
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:33.

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