Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Roomba Wake Up
- Sends an active low pulse to the DD (Device Detect) Pin of the Roomba
- for 500msec to wake the Roomba up from the default power on sleep state
- Roomba Serial Command Interface Specification at the following location:
- http://www.ecsl.cs.sunysb.edu/mint/Roomba_SCI_Spec_Manual.pdf
- Device Detect: ArduinoUno Digital pin 7 to Roomba pin 5 (black wire)
- */
- int ddPin = 7;
- // the setup function runs once when you press reset or power the board
- void setup() {
- pinMode(ddPin, OUTPUT);
- //Use Device Detect to wake Roomba
- digitalWrite(ddPin, HIGH);
- delay(100);
- digitalWrite(ddPin, LOW);
- delay(500);
- digitalWrite(ddPin, HIGH);
- }
- // the loop function runs over and over again forever
- void loop() {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement