I've been trying to mod an old Roomba 400 series (model #4220) by adding a Raspberry Pi to it.
I have the Raspberry Pi communicating over serial with the EZSync018 cable. I have everything working, except that I can't seem to wake the Roomba up after it goes to sleep. I try pulsing the DD (pin 5) with pyserial like so:
import serial
import time
ser = serial.Serial("/dev/ttyUSB0",57600)
ser.setRTS(0)
time.sleep(0.1)
ser.setRTS(1)
time.sleep(2)
Even sending the START or CONTROL commands don't seem to do anything if the Roomba is asleep. If I press the power button it turns on and accepts commands normally, but I want it to be able to wake up on its own.
I have a suspicion that the cable might have a wire switched, but I wanted to post here to see if anyone else had any experience or ideas before I mutilate a perfectly good sync cable.
Any help / feedback is greatly appreciated!
I have a suspicion that the cable might have a wire switchedThis can be checked pretty quickly with a multimeter by doing a continuity check across the cable. – Chuck Jul 01 '23 at 06:31