In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote: It's never a good idea to drive an LED directly -- you should have at least 220 ohms. Remember that modulation frequency affects detection distance. Your code is specifying the use of the internal RC oscillator which is not as accurate as the resonator used on the BASIC Stamp. Add a 20 MHz resonator to your circuit and change the setting to OSCXT2; this will give you the better accuracy with FREQOUT and a real chance to increase detection distance. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=283893#m283947 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)