|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Newbie here, I'm wondering how do the light sensor work or any demo programs you can give me.
|
|
#2
|
||||
|
||||
|
Re: How do light sensor(Banner) work?
take the banner, hook up +5v, GND, and one of the two sensor wires (they are mirrors of each other, one true when the other is false), and plug it into a digital input. play around with it. when the banner sees the line, it will return one value (either 1 or 0), and when it doesn't, it will return the other.
look at the code to map which digital I/O pins are inputs vs. outputs in the default code. |
|
#3
|
|||
|
|||
|
Re: How do light sensor(Banner) work?
This may be of some help too: http://www2.usfirst.org/2003comp/Spe...nersensors.pdf
|
|
#4
|
|||
|
|||
|
Re: How do light sensor(Banner) work?
Quote:
I haven't looked into it, but the sensors in this years kit are different than previous years. I don't know if they can be used to see the line or not. |
|
#5
|
||||
|
||||
|
Re: How do light sensor(Banner) work?
my bad
the sensors should still be able to see the line, though. |
|
#6
|
|||||
|
|||||
|
Re: How do light sensor(Banner) work?
Quote:
|
|
#7
|
||||
|
||||
|
Re: How do light sensor(Banner) work?
Yeah they are the yellow ones. I used them for the wheel encoders this year. The part number is the same. Just this years does not have the schematic on the side. I also think that the sensing indicator led is a different colour.
|
|
#8
|
|||
|
|||
|
Re: How do light sensor(Banner) work?
And you folks are sure we won't fry our board by jamming 12V at it even though its TTL?
|
|
#9
|
||||
|
||||
|
Re: How do light sensor(Banner) work?
You connect to the digital input for the Ground/Signal and 12v for the power.
No problems at all. 5v will not work. Phil |
|
#10
|
||||
|
||||
|
Re: How do light sensor(Banner) work?
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| FRC Problems, will not work | nevrgonastopme0 | Programming | 4 | 04-02-2004 21:01 |
| Please...no more steenkin' light! | Andrew | General Forum | 37 | 17-04-2003 23:06 |
| light visibility | Erinn888 | General Forum | 30 | 17-02-2003 15:56 |
| Important info about light | Jay Lundy | Technical Discussion | 10 | 12-04-2002 11:37 |
| How many posters does it take to change a lightbulb? | Brandon Martus | Chit-Chat | 7 | 22-02-2002 19:48 |