Go to Post I would be happy playing matches in a waffle house parking lot - mesamb1 [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 15-02-2011, 00:43
implosionprez's Avatar
implosionprez implosionprez is offline
Registered User
AKA: Ty
FRC #2484 (Team Implosion)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2008
Location: Woods Cross, Utah
Posts: 74
implosionprez is an unknown quantity at this point
Photoelectric sensor wiring

Our photoelectric sensors don't work. The lights light up, and change when something is moved underneath the sensors, but they don't send signal, to track the line. Right now we have them wired so that brown and blue are power from the PDB, and white is plugged in to the DSC, and black is plugged in to nothing. Where should white be plugged in on the Digital I/O of the DSC, pin 1, 2, or 3? Is this wired correctly?
__________________
  #2   Spotlight this post!  
Unread 15-02-2011, 01:06
gcschmit's Avatar
gcschmit gcschmit is offline
Registered User
AKA: Geoff Schmit
FRC #3061 (Huskie Robotics)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Naperville, IL
Posts: 10
gcschmit is an unknown quantity at this point
Re: Photoelectric sensor wiring

The white wire needs to be connected to the signal pin (farthest from the edge of the DSC) on a digitial channel on the DSC. I'm not sure how you are testing if a signal is being sent or not. If you are using the sample line following code in LabVIEW, I think you may also need to open the DIO channel and store its refnum in Begin.vi.
  #3   Spotlight this post!  
Unread 15-02-2011, 01:22
implosionprez's Avatar
implosionprez implosionprez is offline
Registered User
AKA: Ty
FRC #2484 (Team Implosion)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2008
Location: Woods Cross, Utah
Posts: 74
implosionprez is an unknown quantity at this point
Re: Photoelectric sensor wiring

We aren't using Labview. We're using C++. How should we be testing to see if they are sending signal back?
__________________
  #4   Spotlight this post!  
Unread 15-02-2011, 02:05
Stimpy1901 Stimpy1901 is offline
Registered User
AKA: Bobby
FRC #2348 (Cool Geeks)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2008
Location: Honolulu
Posts: 57
Stimpy1901 will become famous soon enough
Re: Photoelectric sensor wiring

Not quite sure about Windriver this year because we are using Java, but it should be similar.

Does Windriver have a LineTrackerProject sample like Java does? If so, it may be good to review that code.

Below is the code using Java, which should be very similar to C++:

Code:

 DigitalInput left; // initializes digital input for line tracking sensors (be sure to include DigitalInput library)

 left = new DigitalInput(1);  //assigns the signal based on the port you use

//in auto or teleop:

 System.out.println(left.get());//in windriver, you would probably use cout or printf, but the left.get() should give you true or false.
//this should print to the console and be sure this is in some loop or you will only get it once (or use iterative template)
__________________
"The person who says it cannot be done should not interrupt the person doing it."
- Chinese Proverb

Last edited by Stimpy1901 : 15-02-2011 at 02:07.
  #5   Spotlight this post!  
Unread 15-02-2011, 06:41
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: Photoelectric sensor wiring

For wiring the light sensors, please refer to this thread.
http://www.chiefdelphi.com/forums/sh...ad.php?t=88548
__________________
  #6   Spotlight this post!  
Unread 15-02-2011, 06:57
krudeboy51's Avatar
krudeboy51 krudeboy51 is offline
Only Programmer
AKA: kory
FRC #0369 (369)
Team Role: Programmer
 
Join Date: Mar 2010
Rookie Year: 2010
Location: brooklyn
Posts: 151
krudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of light
Send a message via AIM to krudeboy51
Re: Photoelectric sensor wiring

To test whether your sensors are working, you can add a printf statement to your code regarding your sensors and download it to the robot. Then on windriver, open up target console (I think) and enable the robot, wave the sensors over something that makes the sensor lights go orange and yellow, or green. If the target console reads a value of 1 or zero- green then its wired correctly

Last edited by krudeboy51 : 15-02-2011 at 07:12.
  #7   Spotlight this post!  
Unread 15-02-2011, 08:09
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: Photoelectric sensor wiring

Your wiring appears to be correct.
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364
  #8   Spotlight this post!  
Unread 15-02-2011, 20:37
ATH1RSTYM00SE's Avatar
ATH1RSTYM00SE ATH1RSTYM00SE is offline
Stephen Fastow
AKA: Stephen Fastow
FRC #5254
Team Role: College Student
 
Join Date: Jan 2011
Rookie Year: 2009
Location: River Vale
Posts: 27
ATH1RSTYM00SE is on a distinguished road
Re: Photoelectric sensor wiring

Sorry, im new to chief delphi and can't exactly find what forum im looking for but do any teams from new jersey, preferably northern have an extra pair of light sensors that we can have? We need to conduct tests and on multiple bots and we are being told that if we order we won't get them until 2-3 weeks from now
  #9   Spotlight this post!  
Unread 22-02-2011, 23:00
krudeboy51's Avatar
krudeboy51 krudeboy51 is offline
Only Programmer
AKA: kory
FRC #0369 (369)
Team Role: Programmer
 
Join Date: Mar 2010
Rookie Year: 2010
Location: brooklyn
Posts: 151
krudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of light
Send a message via AIM to krudeboy51
Re: Photoelectric sensor wiring

IS IT MANDATORY TO USE THE LINE SENSORS?
  #10   Spotlight this post!  
Unread 23-02-2011, 07:55
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: Photoelectric sensor wiring

Quote:
Originally Posted by krudeboy51 View Post
IS IT MANDATORY TO USE THE LINE SENSORS?
No? What gave you that idea?
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364
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


All times are GMT -5. The time now is 09:55.

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