Hi everybody, <p>
After 8 long months, some trigonometry lessons and a lot of experimentation I finally was able to get my hexapod running and walking great. I tried using several different servo controllers. A torobot, one stamped with a decepticon and a pololu. The sequencer programs are pretty cool but theres lil documentation (except the pololu but no hexapod code) and most of it is too vague to get them going using a code or micro-controller and the sequencer just cant capture that creepy walk.
So it was either learn a lot of code and alot of trigonometry which i did learn from the helpful folks here at LMR and Robotshop. But i was still far from writing my own code.
Thats where lynxmotion came into it and please believe me this is the easiest way but you will still need a lil math skill.
In this tutorial i am going to hopefully explain how to apply the code to your hexapod. PLEASE read all the way through before starting.
Lets start first by going over the items you will need.
1X Lynxmotion SSC-32U USB servo controller
1X Lynxmotion Botboatduino or any arduino microcontroller
18X servos
1X frame kit of your own design or someone elses. Google 3D printable hexapod for many options. Lynxmotion also makes frames and there are generic ones on other sites.
1X 7.4v lipo 1000mah
1X 11.1v lipo 500mah to 1000mah
1X 12A 5volt voltage regulator. Pololu makes awesome voltage regulators in many amperages. Youll want one with a lil higher amperage than you need. The MG90 servos i use draw 6A total so im using a 9A which takes care of the boards power too.
1X computer
1X PS2 TX/RX
And a lil patience.
Lets start by learning how to hook the boards up to eachother and powering them. The link to that page is here....
http://www.lynxmotion.com/images/html/build99f.htm
Next we will need to download the latest version of Arduino. This program is what we will use to upload the the Phoenix code to the Botboarduino.
You can download the IDE from straight from arduino here..........
https://id.arduino.cc/auth/login/?returnurl=http%3A%2F%2Fwww.arduino.cc%2Fen%2FMain%2FSoftware
Next we will need the actual phoenix code to upload to the board you can find that here.........
https://codeload.github.com/Lynxmotion/3DOF-4DOF-Hex/legacy.zip/Botboarduino
Ok now before we begin this assumes that you have the servos wired to the Lynxmotion SSC-32u board correctly. It also assumes you have that board wired to your Botboarduino correctly. Also make sure your PS2 TX/RX pair ate connected to the Botboarduino correctly. You can double check all these by opening the program files in arduino and opening the hex_config.h file. We'll come back to that shortly.
You should have been asked to download the hexpaod calibration tool to help you calibrate the legs positions. Its legacy software and out of date so go ahead and down load Lynxterm from here.......
http://www.lynxmotion.com/p-567-free-download-lynxterm.aspx
Open the program add power to your SSC-32U and connect it to the computer using the USB cable that came with your controllers. You wil need to have changed the Baud rate to 38400 on the SSC-32U manually. See the users manual here for that info....
https://www.robotshop.com/media/files/pdf2/lynxmotion_ssc-32u_usb_user_guide.pdf
Now use the slider on the legt to move each servo and putting it into its perfect alignment.
While your doing this you will need to find the mechanical limits of your legs. The best way to do this is to align like it says in the build instructions then use this calculation to find the angles.
30* X 4160 / 360 - 1500
The 30* is how many degrees you want the servo to turn from 1500 or servo center 90*
<p€ Experiment moving the legs back and forth til you find the angles between each servo. Basically move your front and rear servos in to where you are comfortable with the angle. This will be your rearmost and front most mechanical limit angle for the front and rear legs. Next move the middle legs to the point where they meet the front and rear servos this will be your mechanical limit angles for the middle servos. Write down the the angle in degrees for each leg.
Once its calibrated click the H2 seq button on the Lynxterm then hit write. You can also read the board here to make sure your corrections saved.
If you are completely satisfied that you have done everything correctly up to this point we can now begin to Phoenix code your bot.