![]() |
Line Tracking Photoswitch Info and Demo Video
1 Attachment(s)
Info gathered from other threads for one stop shopping.
Brown + Blue - White (sig) to digital side car Black nothing If the Sensor is Green: Sensor is powered but does not sense reflection. no output on blk or wht. If sensor is Orange: ON sensor is recieving at least 2.5 times the signal strength needed to trigger an output and green will turn off. May have to adjust the sensitivity adjustment on top of the sensor to get an orange on if already mounted. Do this by placing over reflective surface and adjust until it comes on. Sensitivity is the screw on top. If orange is not on there will be no output on blk or wht. If sensor is Yellow: the output has been energized meaning it sensed a reflective object. be careful most bright objects can be sensed regardless of color. Typical sensor indication is the following Green ON, Orange OFF, Yellow OFF over dull none reflective surface wht low and blk high Green OFF, Orange ON and Yellow ON over bright reflective surface wht high and blk low If you have a flashing LEDs, the sensor has gone in to short circuit protection mode becasue one of the outputs is shorted to ground or it is not wired up correctly. Make sure the black wire is not connected ianything. Make sure the white is connected to the signal pin on the digital side car pwm input and not the + or -. Best way to prevent the shorting out of the black wire is to clip the stripped wire and then wrap it with electrical tape. Inspect the sensor cable for any nicks. I will try and post a quick video by the end of today to show how it works and how to connect it. Demo 1 01-22-2011 http://www.youtube.com/watch?v=t7pf-yWae0k Demo 2 01-22-2011 http://www.youtube.com/watch?v=algLRT4Tawc Hope this helps... |
Re: Line Tracking Photoswitch Info and Demo Video
Hey do you have or know where I can get a working Java code for the Photoswitches? I have 3 of them connected to the DIO. I dont mind switching my hardware configuration to be compatible with yours if it is not already.
Narcisse- 1340 |
Re: Line Tracking Photoswitch Info and Demo Video
I'm sorry Belly, but I don't. If I come across something I'll keep you in mind.
|
Re: Line Tracking Photoswitch Info and Demo Video
Quote:
|
Re: Line Tracking Photoswitch Info and Demo Video
Quote:
|
Re: Line Tracking Photoswitch Info and Demo Video
We have ours tracking the line as well with 2 or 3 sensors:
http://www.youtube.com/watch?feature...&v=PBG5g8geATw (3 sensors) http://www.youtube.com/watch?v=06FPQ...er_profilepage (2 sensors) Ethan |
Re: Line Tracking Photoswitch Info and Demo Video
we can't get code working in labview ? does any one have custome code rather than .. default which is too hard to understand .. we are rookie
|
Re: Line Tracking Photoswitch Info and Demo Video
I would start out by making a handwritten flow chart saying what you want it to do when each sensor is triggered. For example, when the left sensor is triggered, make it go right, and when the right sensor is triggered, go left. When neither are triggered, go straight.
Just use nested case statements and use the DIO ins to be the input for the case statements Ethan |
Re: Line Tracking Photoswitch Info and Demo Video
Quote:
thanks for your help, will lwt you know if i have any problems ... thanks |
Re: Line Tracking Photoswitch Info and Demo Video
Quote:
You know it gets in there when the desired thing happens when you try it with the robot. |
Re: Line Tracking Photoswitch Info and Demo Video
Quote:
tht's wht i did now ... any suggestion and yea how do i make robot turn slowly !!! thanks again |
Re: Line Tracking Photoswitch Info and Demo Video
I seriously hope you're trying to be funny, becuase you have to put set motor output in there....
don't use the arcade drive module use the set motor output module and to make it turn slowly, just use (to go right for example) right motor output at .1 and left motor output at .2 with them both going forward Ethan |
Re: Line Tracking Photoswitch Info and Demo Video
Does this look proper ? or beacuse of having arcade drive module, the value from (set motor output) would not matter, right ? should i keep it like this ? if tht's not the case then should i create new drive system (tank...) just for the autonomous and then switch it back to arcade ? OMG !!! thanks man ! you have been greatly helpful |
Re: Line Tracking Photoswitch Info and Demo Video
Ive never used the tank or arcade module so I wouldn't know :P
Should I assume you got it? If so, congrats, and you're very welcome, feel free to message me or email me whenever you need help Ethan |
Re: Line Tracking Photoswitch Info and Demo Video
I do have one problem with your code however. You need to open everything up in your begin.vi or you are going to run into a lot of problems. Also make sure you close everything in your final.vi
Ethan |
Re: Line Tracking Photoswitch Info and Demo Video
1 Attachment(s)
Just a couple additional notes, since I'm an electrical engineering student and happened to be wiring the sensor up today.
If you have questions about how to follow a line, look at this white paper from NI, or ask an FLL student. |
Re: Line Tracking Photoswitch Info and Demo Video
We have hooked the photoswitch up to the power distribution board and to the signal pin on the DSC, but we only recieve "true" when we use the DigitalInput get() method, no matter what surface the photoswitch is directed at. Any help would be greatly appreciated.
|
Re: Line Tracking Photoswitch Info and Demo Video
Quote:
But before you do that, do your lights change color? Green when it sees nothing and orange and yellow when it does? |
Re: Line Tracking Photoswitch Info and Demo Video
Quote:
|
Re: Line Tracking Photoswitch Info and Demo Video
What did you use to connect the white sensor wire to connect the photoswitch to the I/O on the digital sidecar? :confused:
Sorry for posting such a basic question on a month old thread, but any help would be greatly appreciated. :o |
Re: Line Tracking Photoswitch Info and Demo Video
Quote:
Or you can do what we typically do and make your own connector. Crimp the appropriate kind of female pin onto the sensor's signal wire and insert it into the appropriate kind of servo-style connector housing. We're running low on parts and should probably order more from a place like Hansen Hobbies. |
| All times are GMT -5. The time now is 21:53. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi