![]() |
Re: Photosensor as encoder for bang bang.
And can you also check my global variable
|
Re: Photosensor as encoder for bang bang.
The DSC is?
|
Re: Photosensor as encoder for bang bang.
Quote:
|
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
|
Re: Photosensor as encoder for bang bang.
Quote:
You want to wire your sensor to a DIO on the Digital Side Car. |
Re: Photosensor as encoder for bang bang.
haha thank you. I will try it.
|
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... |
Re: Photosensor as encoder for bang bang.
Yes i am using that kind. I have it powered by the power distribution board
|
Re: Photosensor as encoder for bang bang.
I used what you gave me and now my motor wont even spin at all
|
Re: Photosensor as encoder for bang bang.
Quote:
http://www.chiefdelphi.com/forums/sh...6&postcount=22 |
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
|
Re: Photosensor as encoder for bang bang.
It is still making my motor spin as fast as possible
|
Re: Photosensor as encoder for bang bang.
Quote:
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. |
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
|
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