Skip to content

Instantly share code, notes, and snippets.

@mschmitt
Created May 24, 2010 08:56

Revisions

  1. mschmitt created this gist May 24, 2010.
    28 changes: 28 additions & 0 deletions virtualwall_irremote.pde
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,28 @@
    /*
    A trivial Arduino sketch to mimic iRobot Virtual Wall for Roomba
    ----------------------------------------------------------------
    Based on information found at:
    http://sites.google.com/site/irobotcreate2/createanirbeacon
    Uses "A Multi-Protocol Infrared Remote Library for the Arduino":
    http://www.arcfn.com/2009/08/multi-protocol-infrared-remote-library.html
    */

    #include <IRremote.h>

    // Instantiate IRremote on Pin 3.
    IRsend irsend;

    void setup()
    {
    irsend.enableIROut(38);
    }

    void loop()
    {
    irsend.mark(1000);
    irsend.space(1000);
    }