Go to Post Our robot weighed 168lbs..... bring it on Trimspa!!! - slickguy2007 [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 04-02-2017, 16:23
DIyer5465 DIyer5465 is offline
Registered User
FRC #5465
 
Join Date: Feb 2017
Location: Chandler
Posts: 4
DIyer5465 is on a distinguished road
E4T Encoder Help

We are having issues getting values from our am-3132 (E4T) encoder, connected to our ToughBox Mini with Dual CIM input.

We currently have it wired as follows:
Orange Wire --> DIO 5 / 5V
Brown Wire --> DIO 5 / GND
Yellow Wire (Channel B) --> DIO 5 / S
Blue Wire (Channel A) --> DIO 6* / S

*Nothing is wired to GND or 5V

Code (Java):

Encoder enc = new Encoder(5,6); //robotInit()
enc.reset() //robotInit()

enc.getDistance(); //teleopPeriodic()

So far we have tried:
  1. Switching the DIO ports used
  2. Swapping Channel A and B wires
  3. Reading DIO ports using get() --> We found DIO 5 oscillates between true/false when the wheels are turning, DIO 6 stays constant false

Is there something we're overlooking?
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 02:19.

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