Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Photosensor as encoder for bang bang. (http://www.chiefdelphi.com/forums/showthread.php?t=113029)

Bunniy 11-02-2013 13:49

Re: Photosensor as encoder for bang bang.
 
And can you also check my global variable

Bunniy 11-02-2013 13:50

Re: Photosensor as encoder for bang bang.
 
The DSC is?

Ether 11-02-2013 13:57

Re: Photosensor as encoder for bang bang.
 
Quote:

Originally Posted by Bunniy (Post 1231608)
The DSC is?

It's the blue thingy where you wire all your DIO.



Bunniy 11-02-2013 13:59

Re: Photosensor as encoder for bang bang.
 
Haha is it the digital side cart i should wire the Photosensor to or the blue thingy on the crio

Ether 11-02-2013 14:05

Re: Photosensor as encoder for bang bang.
 
Quote:

Originally Posted by Bunniy (Post 1231618)
Haha is it the digital side cart i should wire the Photosensor to or the blue thingy on the crio

That's why we avoid using words like "thingy" in this forum.

You want to wire your sensor to a DIO on the Digital Side Car.



Bunniy 11-02-2013 14:11

Re: Photosensor as encoder for bang bang.
 
haha thank you. I will try it.

Mark McLeod 11-02-2013 14:13

Re: Photosensor as encoder for bang bang.
 
Just a caveat about the Photosensor.
What model are you using?

If it's this Kit one:

Then the power wiring gets a bit unusual.
The signal connects to the Digital Sidecar, but it can be unwise to take power for this particular sensor from there.
It doesn't handle voltage dips well.
We can describe what to do, but I don't want to clutter the thread if you're using some other model.

P.S.
I'll take a look at your revision Bill. I just have had only snippets of time over the past couple of days.
I know a lot of new names for snow now, but not in polite company...

Bunniy 11-02-2013 14:19

Re: Photosensor as encoder for bang bang.
 
Yes i am using that kind. I have it powered by the power distribution board

Bunniy 11-02-2013 14:30

Re: Photosensor as encoder for bang bang.
 
I used what you gave me and now my motor wont even spin at all

Ether 11-02-2013 14:48

Re: Photosensor as encoder for bang bang.
 
Quote:

Originally Posted by Bunniy (Post 1231650)
I used what you gave me and now my motor wont even spin at all

He appears to be talking to you, Mr Bill. His post is linked here:

http://www.chiefdelphi.com/forums/sh...6&postcount=22



Bunniy 11-02-2013 14:49

Re: Photosensor as encoder for bang bang.
 
I fixed the spinning part. I wired it wrong. But still the motor is still spinning as fast as possible

Bunniy 11-02-2013 14:50

Re: Photosensor as encoder for bang bang.
 
It is still making my motor spin as fast as possible

Mark McLeod 11-02-2013 15:10

Re: Photosensor as encoder for bang bang.
 
Quote:

Originally Posted by Bunniy (Post 1231643)
Yes i am using that kind. I have it powered by the power distribution board

The problem with this particular sensor is that it's minimum voltage spec. is 10.8v.
With a fresh battery and early in a match without pushing contests and not a lot of motors powered all at once, that's probably fine.
The danger is when the robot battery voltage drops below 10.8v (because it's towards the end of a match full of pushing defensive robots or the battery gives out early) the feedback from the sensor can become random. It won 't count correctly.

There is an alternate source of guaranteed stable power if you are using a 24v Solenoid Breakout. The sensor can be wired just to an available power pin.

Bunniy 11-02-2013 15:14

Re: Photosensor as encoder for bang bang.
 
can you show or tell me where or what that is that i have to wire it to

Mark McLeod 11-02-2013 15:31

Re: Photosensor as encoder for bang bang.
 
For now I'd leave it where it is until you get the code figured out and working correctly.

Are you using solenoids this year?
If you are, then are you using 24v solenoid came in the Kit the past couple of years. This year they were offered in FIRST Choice.


All times are GMT -5. The time now is 22:48.

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