Go Down

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

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!


Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy