Go to Post bedtime? there's no bedtime while chief delphi is up and running! - Alex Cormier [more]
Home
Go Back   Chief Delphi > Technical > Electrical
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 27-02-2010, 23:38
CrashOverride's Avatar
CrashOverride CrashOverride is offline
Registered User
FRC #1831
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Gilford, NH
Posts: 16
CrashOverride is an unknown quantity at this point
Quadrature Encoder Wiring to Digital Sidecar

I need help understanding the correct wiring scheme for the quadrature encoder from usdigital.

There are 4 leads:
1. +5
2. channel A
3. Gnd.
4. channel B

I have tried connecting +5 and ground to the spare +5 and ground connectors next to the digital inputs on the digital sidecar and each of the channels to the signal pin on a individual digital in port on the sidecar. I have tried connecting the ground pins on digital in ports to a common ground and leaving the ground on the digital in ports unconnected.

The results are fairly consistent: things will work for a few seconds then everything connected to the sidecar stops, the victors and jaguars LED starts to blink like the would if there was no PWM cable connected.

I haven't been able to find any documentation either on the FIRST site or on the usdigital site that specifically covers how to connect this encoder.

Ignorance is definitely not bliss today! Any help would be greatly appreciated.
  #2   Spotlight this post!  
Unread 27-02-2010, 23:48
Vikesrock's Avatar
Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: Quadrature Encoder Wiring to Digital Sidecar

The Labview Encoder Example has a picture of the wiring on the Front Panel.

Basically you want to use 1 full row of the Digital I/O on the Sidecar + 1 signal pin on an adjacent row. Wire +5 to the middle pin of the row, GND to outside pin (on the outside of the Sidecar), and Channel A to the inside pin of that row (Signal pin). Channel B should be wired to the Signal pin (inside pin) of an adjacent row.
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)
  #3   Spotlight this post!  
Unread 28-02-2010, 00:53
Ken Streeter's Avatar
Ken Streeter Ken Streeter is offline
Let the MAYHEM begin!
FRC #1519 (Mechanical Mayhem)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Team: Milford, NH; Me: Bedford, NH
Posts: 470
Ken Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond reputeKen Streeter has a reputation beyond repute
Re: Quadrature Encoder Wiring to Digital Sidecar

Quote:
Originally Posted by CrashOverride View Post
I need help understanding the correct wiring scheme for the quadrature encoder from usdigital.

There are 4 leads:
1. +5
2. channel A
3. Gnd.
4. channel B
We always hook up our USDigital Encoders as follows, using two PWM connectors to the GPIO pins on the digital sidecar:

+5 (orange) to the +5 pin of PWM connector #1
A (blue) to the signal pin on PWM connectore #1
Gnd (brown) to the ground pin of PWM connector #2
B (yellow) to the signal pin on PWM connector #2

Each PWM connector will then have one unconnected pin.

Place the two PWM cables into two GPIO inputs on the digital sidecar (make sure to connect them the right way round, with the signal pins in the appropriate spots). Then configure the software to recognize the encoder as being on those two GPIO pins.

Best regards,
--ken
__________________
Ken Streeter - Team 1519 - Mechanical Mayhem (Milford Area Youth Homeschoolers Enriching Minds)
2015 NE District Winners with 195 & 2067, 125 & 1786, 230 & 4908, and 95 & 1307
2013 World Finalists & Archimedes Division Winners with 33 & 469
2013 & 2012 North Carolina Regional Winners with teams 435 & 4828 and 1311 & 2642
2011, 2010, 2006 Granite State Regional Winners with teams 175 & 176, 1073 & 1058, and 1276 & 133
Team 1519 Video Gallery - including Chairman's Video, and the infamous "Speed Racer!"
  #4   Spotlight this post!  
Unread 01-03-2010, 11:29
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Electrical/Programming Mentor
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,784
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: Quadrature Encoder Wiring to Digital Sidecar

Crash -

Does the problem go away when the PWM headers for the encoder are not plugged in? If so, then it could indeed be a problem with the encoder or wiring (although it sounds correct to me).

Could this be a code issue? Have you checked the classmate to see if the watchdog is being fed, or if it reports everything as working correctly? Can you remove or disable any code you have for the encoders - does that fix the problem (indicating that the problem isn't with the encoders themselves, but with the code reading them)?

Can you enable the robot and let it sit without anything moving - does the problem still happen after a few seconds, or does it only happen after you start moving?

What does the robot signal light do once the sidecar stops responding (you can also look at the LED next to the 2-pin output for the signal light if you don't have one installed)?
  #5   Spotlight this post!  
Unread 01-03-2010, 13:16
CrashOverride's Avatar
CrashOverride CrashOverride is offline
Registered User
FRC #1831
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Gilford, NH
Posts: 16
CrashOverride is an unknown quantity at this point
Re: Quadrature Encoder Wiring to Digital Sidecar

Thanks for the help guys!

The problem turned out to be the digital sidecar.

This didn't occur to me because without the encoder the victors, jaguars and spikes worked fine. I assumed that we had not wired the encoder correctly.

The battery LED was not lit even though all power sources were correctly wired. We replaced the sidecar with one that had all three LED lit and everything worked perfectly as built.
  #6   Spotlight this post!  
Unread 01-03-2010, 14:57
Daniel_LaFleur's Avatar
Daniel_LaFleur Daniel_LaFleur is offline
Mad Scientist
AKA: Me
FRC #2040 (DERT)
Team Role: Engineer
 
Join Date: Apr 2005
Rookie Year: 2003
Location: Peoria, IL
Posts: 1,967
Daniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond repute
Send a message via MSN to Daniel_LaFleur
Re: Quadrature Encoder Wiring to Digital Sidecar

Quote:
Originally Posted by CrashOverride View Post
Thanks for the help guys!

The problem turned out to be the digital sidecar.

This didn't occur to me because without the encoder the victors, jaguars and spikes worked fine. I assumed that we had not wired the encoder correctly.

The battery LED was not lit even though all power sources were correctly wired. We replaced the sidecar with one that had all three LED lit and everything worked perfectly as built.
Happy to hear that.

See y'all at BAE
__________________
___________________
"We are not now that strength which in old days moved earth and heaven; that which we are, we are;
One equal temper of heroic hearts, Made weak by time and fate, but strong in will
To strive, to seek, to find, and not to yield. "
- Tennyson, Ulysses
  #7   Spotlight this post!  
Unread 23-06-2010, 15:19
LinuxArchitect LinuxArchitect is offline
Registered User
AKA: George Boyce
FRC #0053 (Cow Abductors)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Greenbelt MD
Posts: 78
LinuxArchitect is a name known to allLinuxArchitect is a name known to allLinuxArchitect is a name known to allLinuxArchitect is a name known to allLinuxArchitect is a name known to allLinuxArchitect is a name known to all
Re: Quadrature Encoder Wiring to Digital Sidecar

I've connected two encoders and I can't seem to get either one to work, using my own code and the example code. I wired them up as suggested, +5/blue on one, gnd/yellow on the second pwm cable for each encoder. The dashboard shows one gpio of the four lit green, the other three are dark. I've tested the wiring with a multimeter and cables look ok. Any suggestions on how to troubleshoot this problem? Thanks in advance.
  #8   Spotlight this post!  
Unread 23-06-2010, 15:32
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Quadrature Encoder Wiring to Digital Sidecar

Try modifying the default code to update the dashboard every cycle instead of every 25th cycle.

I found an issue where, with the default dashboard code on the robot end, it updates the dashboard REALLY REALLY slowly. This can cause the illusion that something is not working when in reality it is just not up-to-date data.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
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
Wiring Digital Sidecar rsegrest Electrical 7 25-01-2010 11:25
Problem with quadrature encoder Steve Compton Programming 13 14-03-2009 11:16
Help Programming a Quadrature Encoder programmr Programming 17 20-06-2008 10:40
Quadrature shaft encoder source billbo911 Kit & Additional Hardware 7 06-01-2008 19:52
Turning a gear-tooth sensor into a quadrature output encoder Jared Russell Programming 4 18-01-2006 22:19


All times are GMT -5. The time now is 05: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