Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Electrical (http://www.chiefdelphi.com/forums/forumdisplay.php?f=53)
-   -   How should we wire the photoswitchs? (http://www.chiefdelphi.com/forums/showthread.php?t=88548)

jsasaki 20-01-2011 00:07

Re: How should we wire the photoswitchs?
 
does this mean the black cable doesnt get connected to the dsc?:confused:

PhilBot 20-01-2011 09:44

Re: How should we wire the photoswitchs?
 
Quote:

Originally Posted by jsasaki (Post 1004035)
does this mean the black cable doesnt get connected to the dsc?:confused:

The Black and the White wire provide the same information, just with opposite logic. When one is on, the other is always off.

No point connecting both.

Note: The colors were NOT chosen to be compatible with FIRST robots, so don't assume that black is GND. It's NOT !!!

JDM 21-01-2011 08:18

Re: How should we wire the photoswitchs?
 
The sensors have 22AWG wire, but they must be connected to a 20-amp circuit on the PDB. By the rules, this requires 18AWG wire. Is there an exemption somewhere I am missing?

If not, I will bring this to the Q&A later today.

Jon236 21-01-2011 08:40

Re: How should we wire the photoswitchs?
 
Quote:

Originally Posted by JDM (Post 1004864)
The sensors have 22AWG wire, but they must be connected to a 20-amp circuit on the PDB. By the rules, this requires 18AWG wire. Is there an exemption somewhere I am missing?

If not, I will bring this to the Q&A later today.


If you splice the sensor power leads or use a connection block, they will need to connect to 18 AWG before terminating in the PDB. That will satisfy the wiring rules.

Alan Anderson 21-01-2011 10:26

Re: How should we wire the photoswitchs?
 
Quote:

Originally Posted by JDM (Post 1004864)
The sensors have 22AWG wire, but they must be connected to a 20-amp circuit on the PDB. By the rules, this requires 18AWG wire. Is there an exemption somewhere I am missing?

If not, I will bring this to the Q&A later today.

There's no explicit exemption. Sensors and custom circuits are typically not given as much scrutiny by the inspectors as are motor and relay power circuits, so they usually pass inspection even though they don't strictly follow the wire gauge rules, but you're right to be concerned.

A couple of years ago we used a small-valued inline fuse on a power branch that was going to a single Banner sensor (very much like the photoswitches in the Kit this year). That practice is mentioned in the wiring rules for custom circuits.

DFZXA 21-01-2011 11:18

Re: How should we wire the photoswitchs?
 
Quote:

Originally Posted by andreboos (Post 997639)
I've wired the sensor with:

Blue: +12v from PDB
Brown: Ground on PDB
White: a DS signal pin
Black: another DS signal pin

When it receives power the orange and yellow lights alternate. Is there any documentation about the status lights? I read the document regarding Teach mode but I don't think that applies to our sensor (no push-button that I can find).

I think my code is correct but I'd like to see example code (Didn't they specifically mention that in the kickoff broadcast?). I can't find any bundled with WindRiver.

Did you ever fix the alternating orange and yellow alternating lights? We have two sensors working properly just one does this weird alternating thing

Alan Anderson 21-01-2011 11:30

Re: How should we wire the photoswitchs?
 
Quote:

Originally Posted by DFZXA (Post 1004964)
Did you ever fix the alternating orange and yellow alternating lights? We have two sensors working properly just one does this weird alternating thing

Yes, he did.

tommy0019 21-01-2011 15:28

Re: How should we wire the photoswitchs?
 
we are trying to get our line sensors to work. we have it wired as:

sensor blue- 0v
Sensor brown- +12v
Sensor white- white pwm to signal pin on digital i/o section of the DSC.
sensor black- nothing

we were trying to run the autonomous mode from a new robot code project and it only runs a pre-programmed drive and doesn't respond to the sensors. then we put a jumper on the 2 power pins for the digital i/o side and when we enabled the autonomous mode nothing happened at all.

a note: our sensors are showing green when not by anything and orange and red when over the reflective tape. i heard the red meant it was over it's threshhold. what threshhold is that and is it fixed with the sensitivity knob or not?

I am asking if anyone could give any advice so we can get our line sensors working correctly.

Mark McLeod 21-01-2011 15:35

Re: How should we wire the photoswitchs?
 
Quote:

Originally Posted by tommy0019 (Post 1005112)
then we put a jumper on the 2 power pins for the digital i/o side...

The Digital I/O side doesn't have 2 power pins or use jumpers.

Could you be connecting them to the PWM side (all white connectors)?

tommy0019 21-01-2011 16:04

Re: How should we wire the photoswitchs?
 
The side of the DSC that is labeled Digital i/o has 14 sets of 3 pins(sig, pwr, -) we have the sensors connected as so all with the white pwm cables.

right to digital i/o 3
center to digital i/o 2
left to digital i/o 1

There is a set of two pins right next to those 14 that are labeled pwr and (-). i am guessing that they supply power to the digital i/o pins. we put a volt meter on the pins and the supplied power when the jumper was connected.

Mark McLeod 21-01-2011 16:11

Re: How should we wire the photoswitchs?
 
Quote:

Originally Posted by tommy0019 (Post 1005139)
There is a set of two pins right next to those 14 that are labeled pwr and (-). i am guessing that they supply power to the digital i/o pins. we put a volt meter on the pins and the supplied power when the jumper was connected.

Those pins are only an extra ground/5v set for devices that just need power.
Do not use a jumper to short those.

The Digital I/O was shorted out by that...

tommy0019 21-01-2011 16:15

Re: How should we wire the photoswitchs?
 
those are the correct place to put them, right(without the jumper)?

do you have any ideas as to why our robot isn't responding to the sensors?

DFZXA 21-01-2011 16:25

Re: How should we wire the photoswitchs?
 
Quote:

Originally Posted by Alan Anderson (Post 1004969)
Yes, he did.

So what'd he do then? Our robot just turns randomly in a cricle when we start the program and I'm not sure if this is the problem.

Mark McLeod 21-01-2011 16:27

Re: How should we wire the photoswitchs?
 
The digital signal inputs sound good, as well as, the rest of the wiring.
The jumper would have disabled all the digital inputs while it was in place, but they should start working again after it's taken off.
It also sounds like the sensors are working just fine too.

I'd look at the code next.

Which edition of the Framework are you using?
Since there are two that do different things it may just be that you have the one that just drives rather than the one that follows a line.

If you use the Run button on Robot Main.vi in LabVIEW (assuming LabVIEW) you can probe the values coming back from the sensors.

tommy0019 21-01-2011 16:34

Re: How should we wire the photoswitchs?
 
We used the robot framework with game code.


All times are GMT -5. The time now is 07:26.

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