Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@mschmitt
Created May 24, 2010 08:56
Show Gist options
  • Star 20 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • Save mschmitt/411664 to your computer and use it in GitHub Desktop.
Save mschmitt/411664 to your computer and use it in GitHub Desktop.
A trivial Arduino sketch to mimic iRobot Virtual Wall for Roomba
/*
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);
}
@fettesps
Copy link

I don't get how you're specifying Pin 3 for output here? Is that hard coded in the library for the enableIROut() method?

@mschmitt
Copy link
Author

Yes, it's hardcoded in the library.

@probonopd
Copy link

You might also be interested in https://gist.github.com/probonopd/5181021 to send all sorts of IR commands to the Roomba.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment