I am trying to create a program from the Master.pmp with autonomous control to be run on the Bot Board II (w/BASIC Atom microcontroller) on a 3DOF AH3-R Hexapod. But how does this program work? I tried it connected to the SSC-32 on the hexapod but nothing happend. Anyone who help me with this?
I looked under the Autonomous Program Information step in this tutorial. I talks about controlling the robot by changing variables in the code. But chould the robot do anything of one downloads the program without changing any of the variables. Because I tried this and nothing happened. There was no problem downloading the code to the Bot Board II, but when I turned in the robot it did not move at all. Is there some thing that has to be changed in the code for it to work?
Ah I misinterpreted your original post. Yes autonomous operation will require you to edit the code to provide the âwhat to doâ part. I have not done this personally. I will ask Laurent if he can add any information on this. The manual doesnât go into any detail. The two things Iâm not sure of is where in the code the autonomous part should be added, (note it might be in the comments of the code) and what sort of sensor delays would be tolerable before adversely effecting operation of the legs IK positioning system.
Ok, thanks for clarifying that. If you get any information where in the code to write the autonomous part it would be great if you would tell me I have begyn experimenting with the serial program. Manipulating and creating own sequences for the warious buttons in the H3/H3-R Serial Port Control Panel. However, I have a problem with the original serial program that I generated, and that is that when I use the commands in the panel to get the robot to walk it walks very strangely (like a hurt animal or something ). So I was thinking that mayby some of the parameters when generating the code was off. I used the following:
Basic Micro IDE V05.3.0.0
Serial Port
3DOF-A
Round
Bot Board II (pin 12, 13, 14, 15)
Normal
Vertical 0
3 sec
The 3DOF-A Legs
Does this look right for the AHR-3 model?
And another thing. Is there some pre-generated sequences anywhere on the forum etc. that can be pasted in to the code and tried out. I have seen a couple of videos on youtube with the same hexapod model as I have where the robots are doing some really cool stuff autonomously.
This is the fist time I have tried to make the robot walk. But the guy I bought it from has made it walk properly before and the pins should be connected correctly according to the PowerPod calibration program.
I would recommend you might want to try programming the bot with the PS2 code just to make sure all is well before you start messing with code and stuff.
Also a low battery can cause some interesting behaviors.
First make sure all servos are connected properly to the according pin,
use PowerPod to test and check the right location of each servos.
To do this, select servos one by one on the robot picture and move the âoffset sliderâ to move the servo to its correct position.
Then donât forget to save the configuration file.
if all servos are correctly adjusted and if they are connected as shown on the robot picture in PowerPod it should work properly.
Then you should check with PS2 control if all is correct.
To use the autonomous program, read the middle of the generated code,
all variables are listed (just after the âmainâ label).
Itâs the place to write your code to handle variables.