How to Run Drosophibot II
Scripts can be downloaded at this public GitHub repo:
In these instructions:
"MATLAB script" = runDrosophibot2_InvKin.m
"Arduino script" = collectDrosophibotStrain36MUX.ino
Instructions
Plug the robot into power. Connect the U2D2 to one USB port of an external computer, and the OpenCM to another port.
If this is your first time running the robot on your machine, change these lines in the MATLAB script:
Line 18 to the port name for the U2D2
Line 19 to the port name for the OpenCM
Line 99 to you desired save location
Line 100 to the location of the simulation .mat file you would like to use for kinematic replay
Run the Arduino script on the OpenCM
Start the MATLAB script
Plug the robot into power. Connect the U2D2 to one USB port of an external computer, and the OpenCM to another port.
Run
sudo chmod a+rw /dev/ttyUSB0andsudo chmod a+rw /dev/ttyACM0in the terminalIf this is your first time running the robot on your machine, change these lines in the MATLAB script:
Line 99 to you desired save location
Line 100 to the location of the simulation .mat file you would like to use for kinematic replay
Run the Arduino script on the OpenCM
Start the MATLAB script
Common Problems
Arduino sends no data back during strain gauge calibration
One of the strain gauge cables has likely come unplugged. The code should be set up to notify you when this occurs and on what leg, then halt the program.
Some of the servos throw a connection error when turning torque on/off
The affected servos likely had slight positional errors last trial. The servos will run completely fine while throwing this error. You can also unplug/plug the robot from power to clear the errors.
Last updated
Was this helpful?