Advertisement
Guest User

Roomba Wake Up

a guest
May 29th, 2015
546
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. /*
  2. Roomba Wake Up
  3.  
  4. Sends an active low pulse to the DD (Device Detect) Pin of the Roomba
  5. for 500msec to wake the Roomba up from the default power on sleep state
  6.  
  7. Roomba Serial Command Interface Specification at the following location:
  8. http://www.ecsl.cs.sunysb.edu/mint/Roomba_SCI_Spec_Manual.pdf
  9.  
  10. Device Detect: ArduinoUno Digital pin 7 to Roomba pin 5 (black wire)
  11. */
  12.  
  13. int ddPin = 7;
  14.  
  15. // the setup function runs once when you press reset or power the board
  16. void setup() {
  17.  
  18. pinMode(ddPin, OUTPUT);
  19.  
  20. //Use Device Detect to wake Roomba
  21. digitalWrite(ddPin, HIGH);
  22. delay(100);
  23. digitalWrite(ddPin, LOW);
  24. delay(500);
  25. digitalWrite(ddPin, HIGH);
  26. }
  27.  
  28. // the loop function runs over and over again forever
  29. void loop() {
  30.  
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement