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 21-01-2015 09:03

Re: Autonomous Help
 
That looks good. Let me know if there is anything else.

curtis0gj 21-01-2015 09:10

Re: Autonomous Help
 
Quote:

Originally Posted by notmattlythgoe (Post 1431457)
That looks good. Let me know if there is anything else.

Thanks a bunch I will test this tonight and get back to you if I need any more help. Thanks!

curtis0gj 21-01-2015 17:42

Re: Autonomous Help
 
Quote:

Originally Posted by notmattlythgoe (Post 1431457)
That looks good. Let me know if there is anything else.

Just tested the program and the robot executed the turn and went on into the straight drive however it did not stop and I also noticed that I was not getting a distance value on my smart dashboard. Tomorrow we are going to check the encoder with a multimeter and see if we get any voltages.

Ether 21-01-2015 17:44

Re: Autonomous Help
 
Quote:

Originally Posted by curtis0gj (Post 1431740)
we are going to check the encoder with a multimeter and see if we get any voltages.

What kind of voltages are you expecting to get?



curtis0gj 21-01-2015 17:52

Re: Autonomous Help
 
Quote:

Originally Posted by Ether (Post 1431742)
What kind of voltages are you expecting to get?



No Idea my mentor thought we would get some answers doing that. I'm just concerned the encoder may be broken.

curtis0gj 21-01-2015 18:50

Re: Autonomous Help
 
Quote:

Originally Posted by curtis0gj (Post 1431747)
No Idea my mentor thought we would get some answers doing that. I'm just concerned the encoder may be broken.

I also think it could be the encoder.setDistanceperpulse(); because I don't know what it needs to be set at.

curtis0gj 22-01-2015 06:42

Re: Autonomous Help
 
Should the encoder be plugged into DIO or analog?

notmattlythgoe 22-01-2015 09:47

Re: Autonomous Help
 
Quote:

Originally Posted by curtis0gj (Post 1432010)
Should the encoder be plugged into DIO or analog?

It needs to be plugged into DIO. What kind of encoder are you working with?

curtis0gj 22-01-2015 09:53

Re: Autonomous Help
 
[quote=notmattlythgoe;1432076]It needs to be plugged into DIO. What kind of encoder are you working with?[/QUOTEh

http://www.andymark.com/product-p/am-0180.htm
US Digital Encoder E4P-250-250-N-S-D-D-B

notmattlythgoe 22-01-2015 09:56

Re: Autonomous Help
 
[quote=curtis0gj;1432078]
Quote:

Originally Posted by notmattlythgoe (Post 1432076)
It needs to be plugged into DIO. What kind of encoder are you working with?[/QUOTEh

http://www.andymark.com/product-p/am-0180.htm
US Digital Encoder E4P-250-250-N-S-D-D-B

This will need placed into 2 DIO ports.

Ether 22-01-2015 09:59

Re: Autonomous Help
 
Quote:

Originally Posted by curtis0gj (Post 1431740)
Tomorrow we are going to check the encoder with a multimeter and see if we get any voltages.

Did you try this yet?



curtis0gj 22-01-2015 10:04

Re: Autonomous Help
 
[quote=notmattlythgoe;1432080]
Quote:

Originally Posted by curtis0gj (Post 1432078)

This will need placed into 2 DIO ports.

Alright I have it in two of the DIO ports. However it is possible that we soldered it wrong or maybe have the cables plugged into the DIO backwards.

curtis0gj 22-01-2015 10:11

Re: Autonomous Help
 
Quote:

Originally Posted by Ether (Post 1432083)
Did you try this yet?



We are going to do that tonight and I think it's to check the solder we did.

curtis0gj 22-01-2015 10:14

Re: Autonomous Help
 
Quote:

Originally Posted by curtis0gj (Post 1432094)
We are going to do that tonight and I think it's to check the solder we did.

This is the wiring we followed does it look correct?http://frc-labs.com/wp-content/uploa...03/encoder.png

Ether 22-01-2015 10:18

Re: Autonomous Help
 
Quote:

Originally Posted by curtis0gj (Post 1432094)
We are going to do that tonight and I think it's to check the solder we did.

The E4P-250-250-N-S-D-D-B has single-ended outputs, and according to the datasheet you should get a square wave on each of the 2 output signal channels (A & B).

As you manually rotate the encoder shaft (very very slowly), you should see the voltage going from ~5V to ~0.4V on each channel.




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