Here is list of motors and parameters Motor #, device addr, bank, type, pin assignments. For the FiveWire the relative pin order is for IN1~4 For the A4988 and Easy Stepper, the relative signal names are: Enable,MS1,MS2,MS3,Reset,Sleep,Step,Direction use -1 if a pin is not used (i.e. strapped to a hard value with a wire)
Code: Select all
Motors = [(0,0x20,0,"FiveWire",0,1,2,3), (1,0x21,1,"A4988",0,1,2,3,4,5,6,7)]During initialization, I wish to create processes addressable by motor number and address/pipe/map/what-have-you commands and results to/from each child process. I would prefer each process to only receive motor data intended for it, but could tolerate a "that is not for me, ignore" sub-process handling. In the spirit of open computing, I will publish the full results. I had to generalize my setup due to a mix of motor types, chip configuration, etc. As you may be able to tell, I did this to easily define other types of control structures (if there really are any) and devices that can be made to communicate through the 23017 chip.