Go to Post The thrills of a heroic repair, a well deserved award, a compliment on our efforts, the growth of our team members, making new friends.... These can make a memorable and exciting FIRST regional as much as a close match. - Mark Pierce [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 20-02-2012, 07:45
Itamar's Avatar
Itamar Itamar is offline
Registered User
FRC #1943 (NeatTeam) & FRC #4590 (GreenBlitz)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Israel
Posts: 83
Itamar is an unknown quantity at this point
Encoder keeps stopping?

Hey. Today I wired our encoder to the sidecar with two PWMs:

+5 (orange) = PWR of #1
A (blue) = SIG of #1
Gnd (brown) = GND of #1
B (yellow) = SIG of #2

and after wiring it I intergrated the Encoder Example to the default robot project. When I ran the code, I went to teleop to check the indicators, and they were all zero, plus it said that the Encoder Stopped. So I tried adding a joystick button that when pressed called the Start VI of the Encoder. What happened is that every time I hit the button to start the Encoder, the distance went down by 0.25. I tried changing the Decoding Type from 4x to 1x and then the distance went down by 1, so I believe it goes down by 1/Decoding Type.

What can cause this problem? Is the wiring okay?

Thanks.
Reply With Quote
  #2   Spotlight this post!  
Unread 20-02-2012, 08:17
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Encoder keeps stopping?

Did you actually run the Encoder example and make sure it worked? That would verify your wiring.
Reply With Quote
  #3   Spotlight this post!  
Unread 20-02-2012, 09:01
NeatTeam NeatTeam is offline
Registered User
FRC #1943
 
Join Date: Jan 2012
Location: Israel
Posts: 56
NeatTeam is an unknown quantity at this point
Re: Encoder keeps stopping?

Quote:
Originally Posted by Alan Anderson View Post
Did you actually run the Encoder example and make sure it worked? That would verify your wiring.
I ran the Encoder example a few minutes ago and got the same results. (The "Alarm Status" says "Encoder Stopped" and the values don't change)

Is the wiring mentioned in the original post okay?
Reply With Quote
  #4   Spotlight this post!  
Unread 20-02-2012, 14:45
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Encoder keeps stopping?

Assuming you're connecting to DIO pins (and not Relay or PWM pins), the wiring described in the first post should work.

Is there actually 5V on the center DIO pin? Check the 5V LED on the Digital Sidecar. While you're at it, check the 6V and BAT LEDs too. Are they all lit? How about the Robot Signal Light?
Reply With Quote
  #5   Spotlight this post!  
Unread 20-02-2012, 14:52
tilky's Avatar
tilky tilky is offline
Registered User
AKA: Ryan Thielke
FRC #3137
Team Role: Programmer
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Connetquot
Posts: 188
tilky is an unknown quantity at this point
Re: Encoder keeps stopping?

i know it sounds stupid, but try unplugging and replugging the encoder wires from the encoder itself. We had a similar problem, and for whatever reason that worked. Also, if this doesn't work, try reading the digital outs on the front panel. Both should be flashing when you run the motors.
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 08:44.

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