summary:
- interface between orion and rpi work with both shield and usb cable as per ultrasonic test
- if rpi is powered up on its on external power and the orion is powered up on its own external power and then the rj25 or usb cables are connecte, there should be no loss of power on each
- your first message has you using stepperMotorRun which was last updated 3 years ago
- my last msg has me using stepperMotorRun which was updated 2 years ago to “fix the bugs to support python3”
here is the actual github code
def stepperMotorRun(self,slot,speed):
deviceId = 76;
self.__writePackage(bytearray([0xff,0x55,0x07,0x00,0x02,deviceId,0x02,slot]+self.short2bytes(speed)))
def stepperMotorMove(self,port,speed,distance,callback):
deviceId = 76;
extId = ((port<<4)+deviceId)&0xff
self.__doCallback(extId,callback)
self.__writePackage(bytearray([0xff,0x55,0x0b,extId,0x02,deviceId,0x01,port]+self.long2bytes(distance)+self.short2bytes(speed)))
def stepperMotorMoveTo(self,port,speed,distance,callback):
deviceId = 76;
extId = ((port<<4)+deviceId)&0xff
self.__doCallback(extId,callback)
self.__writePackage(bytearray([0xff,0x55,0x0b,extId,0x02,deviceId,0x06,port]+self.long2bytes(distance)+self.short2bytes(speed)))
next steps
- get the DC motors back from your friend
- I have run out of ideas, maybe tech support has some ideas