by planius » Tue Nov 01, 2011 10:27 am
by planius
Tue Nov 01, 2011 10:27 am
I am assuming you are familiar with C programming and are using AVR Studio 5.
To get started:
1. Unpack the zip file into a suitable directory
2. Create a motion.h file (the included file is for a Type A humanoid robot) using Perl (needs cygwin on Windows):
cygwin> perl translate_motion.pl bio_prm_humanoidtypeX_en.mtn (where X = a, b or c - files available from Robotis or use your own)
3. Overwrite the default motion.h file with the one generated above
4. Import the project into AVR Studio 5
5. Open global.h and select the hardware configuration from the options provided
6. Open serial.h and select the serial interface (Zig2Serial or cable) that you will be using
7. Open BioiloidCControl.c and check the configuration options at the top for any adjustments you would like to make
8. If you don't use an ultrasonic sensor or accelerometer change adc_sensor_enable[ADC_CHANNELS] = {1, 1, 1, 1, 1, 1}; to
adc_sensor_enable[ADC_CHANNELS] = {0, 0, 1, 1, 1, 0}; and change the 2 IF statements in walk_avoidObstacle()
9. Copy the code in motionPageInit.c generated in step 2 to the motionPageInit() function in motion.c
10. Build the solution
11. Transfer the .hex file to the CM-510 controller using RoboPlus Terminal (you have to hold down Shift-# whilst pressing the Robot power button to start the bootloader)
12. Type ‘go’ in RoboPlus Terminal or cycle the power on the CM-510 once the download is complete
13. Wait for the PLAY LED to flash and then press the START button
14. Issue commands at the prompt as per the table in the User's Guide
If you have a Type A humanoid robot, you can skip steps 2, 3 and 9.
Hope this helps.
Peter
I am assuming you are familiar with C programming and are using AVR Studio 5.
To get started:
1. Unpack the zip file into a suitable directory
2. Create a motion.h file (the included file is for a Type A humanoid robot) using Perl (needs cygwin on Windows):
cygwin> perl translate_motion.pl bio_prm_humanoidtypeX_en.mtn (where X = a, b or c - files available from Robotis or use your own)
3. Overwrite the default motion.h file with the one generated above
4. Import the project into AVR Studio 5
5. Open global.h and select the hardware configuration from the options provided
6. Open serial.h and select the serial interface (Zig2Serial or cable) that you will be using
7. Open BioiloidCControl.c and check the configuration options at the top for any adjustments you would like to make
8. If you don't use an ultrasonic sensor or accelerometer change adc_sensor_enable[ADC_CHANNELS] = {1, 1, 1, 1, 1, 1}; to
adc_sensor_enable[ADC_CHANNELS] = {0, 0, 1, 1, 1, 0}; and change the 2 IF statements in walk_avoidObstacle()
9. Copy the code in motionPageInit.c generated in step 2 to the motionPageInit() function in motion.c
10. Build the solution
11. Transfer the .hex file to the CM-510 controller using RoboPlus Terminal (you have to hold down Shift-# whilst pressing the Robot power button to start the bootloader)
12. Type ‘go’ in RoboPlus Terminal or cycle the power on the CM-510 once the download is complete
13. Wait for the PLAY LED to flash and then press the START button
14. Issue commands at the prompt as per the table in the User's Guide
If you have a Type A humanoid robot, you can skip steps 2, 3 and 9.
Hope this helps.
Peter