Go Down

Topic: FIRST ftc IR beacon. (Read 625 times) previous topic - next topic

RobotshopLover1

Hey guys, I am working on an autonomous program for my FTC teams robot and for this I need an IR beacon.  We are using the Lego IR Seeker v2 which needs a 1200 Hz square wave signal.  I want to use an Arduino because it is the easiest way even though it is probably overkill.  I have some normal IR LEDs and I was wondering if I this code would make the LED do what I need it to.

Code: [Select]
tone(4,1200);

Is that the only code I would need?  Thanks in advance!

RobotshopLover1


Go Up