Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Autonomous Help (http://www.chiefdelphi.com/forums/showthread.php?t=133182)

notmattlythgoe 23-01-2015 10:19

Re: Autonomous Help
 
Quote:

Originally Posted by curtis0gj (Post 1432628)
How about double distance = encoder.get(); as well?

That's fine, but since you aren't using distance anywhere it won't effect anything.

curtis0gj 23-01-2015 10:25

Re: Autonomous Help
 
Quote:

Originally Posted by notmattlythgoe (Post 1432635)
That's fine, but since you aren't using distance anywhere it won't effect anything.

I will try all this later today I am hoping this will be my fix because it's been at least 4 days of trying to setup this encoder. :deadhorse:

notmattlythgoe 23-01-2015 10:26

Re: Autonomous Help
 
Quote:

Originally Posted by curtis0gj (Post 1432638)
I will try all this later today I am hoping this will be my fix because it's been at least 4 days of trying to setup this encoder. :deadhorse:

You did verify that the encoder is wired and plugged in correctly, including plugged into the correct ports?

I know its a basic question, but sometimes they need asked.

curtis0gj 23-01-2015 10:29

Re: Autonomous Help
 
Quote:

Originally Posted by notmattlythgoe (Post 1432640)
You did verify that the encoder is wired and plugged in correctly, including plugged into the correct ports?

I know its a basic question, but sometimes they need asked.


+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

Is what we are doing and we have the two PWM's into the DIO ports on the roboRIO.

curtis0gj 23-01-2015 10:30

Re: Autonomous Help
 
Quote:

Originally Posted by curtis0gj (Post 1432641)
+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

Is what we are doing and we have the two PWM's into the DIO ports on the roboRIO.

Using ports 0,1 aswell and have tried switching, flipping and inverting them.

notmattlythgoe 23-01-2015 10:30

Re: Autonomous Help
 
Quote:

Originally Posted by curtis0gj (Post 1432641)
+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

Is what we are doing and we have the two PWM's into the DIO ports on the roboRIO.

Ether, can you comment on this? This doesn't seem right to me, shouldn't the ground be shared between both channels?

cgmv123 23-01-2015 10:33

Re: Autonomous Help
 
Quote:

Originally Posted by notmattlythgoe (Post 1432645)
Ether, can you comment on this? This doesn't seem right to me, shouldn't the ground be shared between both channels?

All of the ground pins should be connected internally.

curtis0gj 23-01-2015 10:36

Re: Autonomous Help
 
Quote:

Originally Posted by cgmv123 (Post 1432647)
All of the ground pins should be connected internally.

? What does this mean. :yikes:

Ether 23-01-2015 11:17

Re: Autonomous Help
 
Quote:

Originally Posted by notmattlythgoe (Post 1432645)
Ether, can you comment on this?

I think it's been that way for several years:

http://www.chiefdelphi.com/forums/sh...39&postcount=3



notmattlythgoe 23-01-2015 11:19

Re: Autonomous Help
 
Quote:

Originally Posted by Ether (Post 1432666)
I think it's been that way for several years:

http://www.chiefdelphi.com/forums/sh...39&postcount=3



Cool, this is why I don't wire things.

curtis0gj 23-01-2015 12:08

Re: Autonomous Help
 
Quote:

Originally Posted by notmattlythgoe (Post 1432667)
Cool, this is why I don't wire things.

So wiring is good? Is it just a code thing or could the encoder be broken. :mad:

notmattlythgoe 23-01-2015 12:09

Re: Autonomous Help
 
Quote:

Originally Posted by curtis0gj (Post 1432716)
So wiring is good? Is it just a code thing or could the encoder be broken. :mad:

Have you verified electrically that the encoder is outputting information?

curtis0gj 23-01-2015 12:14

Re: Autonomous Help
 
Quote:

Originally Posted by notmattlythgoe (Post 1432719)
Have you verified electrically that the encoder is outputting information?

Yep we get it gives us voltage readings from .4 to 5 v and we are getting a nice voltage feed on the 5v cable and ground so we do have electrical readings.

notmattlythgoe 23-01-2015 12:15

Re: Autonomous Help
 
Quote:

Originally Posted by curtis0gj (Post 1432722)
Yep we get it gives us voltage readings from .4 to 5 v and we are getting a nice voltage feed on the 5v cable and ground so we do have electrical readings.

Can you explain your testing process?

curtis0gj 23-01-2015 12:17

Re: Autonomous Help
 
Quote:

Originally Posted by notmattlythgoe (Post 1432723)
Can you explain your testing process?

Sure! What we did was while running an autonomous movement code we were measuring dc voltage across the +5 and the common and we got a reading of +5. Then we ran it across the signal cables to the common and it was showing a square wave pretty much.


All times are GMT -5. The time now is 10:30.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi