HexPi - my first hexapod!
Bill Henning
Posts: 6,445
I've started blogging about my first hexapod build - controlled by my RoboPi controller (I'll be using a Pi for vision, WiFi, and inverse kinematics)
http://www.mikronauts.com/robot-zoo/hexpi-hexapod-pi-robot/
I'll update it tonight (with what I will accomplish today)
It's nothing like DriverBob's Sci-Fi gigantic bot, but it is the first hexapod I am attempting
http://www.mikronauts.com/robot-zoo/hexpi-hexapod-pi-robot/
I'll update it tonight (with what I will accomplish today)
It's nothing like DriverBob's Sci-Fi gigantic bot, but it is the first hexapod I am attempting
Comments
Multi-channel servo tester?? I think Duane Degn came up with something along those lines using a QuickStart. If that won;t work sounds like another good product for Mikronauts!!
I'm glad other folks are moving forward on their robot projects - I get to enjoy my hobby vicariously through everyone else!!
I'm really going to assemble my RoboPi's.....maybe this weekend if all the stars line up and the wind is right....
Wifey insisted that I start to have some fun with bots again instead of just working on consulting projects and products... apparently all work and no play makes for a tired and cranky hubby. Who would've thunk it?
Actually I've been thinking of making a quick servo tester based on RoboPi today... and who knows, maybe there will be such a product in the future. Depends on how much I like the RoboPi based one.
Glad to hear you will start to build your RoboPi's! I am looking forward to seeing what you will do with them, and hearing your feedback.
It's always good to read about other Hexapods! Good luck with the new toy, even better that the wife did not have to give her permission! I gave up asking for permission, I just ask for forgiveness now... This hobby can definitely get expensive, I started out with a budget on my monster and I'm over that but not too badly. I'm even still inside of my time budget of 3 years to get it walking.
There are a lot of great information sites out there on IK and software examples that can be used. It would be interesting to see your code when you get to that point.
I did a lot of programming work on my hexapod a little over a month ago. A couple of things I found useful was calibrating while the servos were connected to the control board. I used the "*" and "/" to change the pulses by 10us and "+" and "-" to change them by 1us.
Another thing that really helped cut down on brownout resets was to bring the servos online one at a time. All the servos lurching at once causes havoc on the power supply.
I also made each servo's pin number a variable so they could be assigned from the terminal connection. I got tired of making sure the right servo was connected to the right pin. The pin numbers and the calibration information gets saved to EEPROM so I don't have hard code the data if I don't want to.
I'm very willing to post my code but it's an absolute mess. I only have a few hundred longs of free space and the IK stuff doesn't currently work. I'm "upgrading" my IK so the 0 degree position of the leg can point in any direction instead of just left or right as seen in the videos. Getting my hexapod up and running again is high on my robotic todo list.
Finding the inexpensive chassis and servo's in China, and trading shipping time for dollars, allowed me to sneak it into my regular toy budget
Shooting for forgiveness.... interesting idea. The only downside is that I fear she would make me build a dog house to sleep in!
Or worse, build it herself - she is pretty handy with tools.
I'll have to research IK, right now, I'll be happy when I get all the legs properly calibrated. I am working on making my own servo tester right now, I should be finished with the control panel in a couple of hours. With luck, I hope to have all the legs calibrated today or tomorrow.
I'll definitely post my experiences and code!
Thank you for the links!
Your servo tester looks good! I've started a different style tester, where I use pots to control the servo position directly. It will let me try out positions "manually" quickly, for testing the leg limits. I'll use a RoboPi as it already has servo headers and adc. I'll post pics when it works
Your hexapod looks great! The video showing it walking gives me hope I'll have mine walking soon. Nice index at http://forums.parallax.com/showthread.php/135706-Index-Test?p=1049905&viewfull=1#post1049905 btw, thanks.
I plan to use two independent power supplies. A 5V USB powerbank for the Pi + Prop, and servo's powered by a separate 7.4V LiPo 4000mahr pack (cut down to 6v via two power diodes for now, maybe dc-dc converter later), as I know exactly what you mean about brownouts due to motors.
We can share code back and forth in this thread (or one of yours if you give me the link).
I suspect it will be at least mid next week before I am ready to try IK stuff, and after initial experiments I currently plan to move the IK to the Pi - but that plan may change.
Wifey ordered me to have some fun - and playing with my shiny (literally, silver colored) hexapod is fun!
I added two photos to my HexPi page:
1) current state of assembly
2) the hexapod parts that came with the kit
My new "better mousetrap" servo tester is comin galong nicely, now I just have to test it (and write a bit of Spin to make it work).
I even took the time to mount a RoboPi and the controls on a piece of Sintra. I am already thinking of other uses for it...
You might want to pick up some bolt thread protectors. A local hardware store should have them. You put them on the ends of the feet which quiets the noise when they walk and give you better traction
And the excellent suggestion, bolt thread protectors will work great.
(oops! wifey just said dinner in a few minutes...)
4 thumb joysticks + 4 hat buttons... 8 channels of analog data & 4 digital channels...
More information at http://www.mikronauts.com/robot-zoo/hexpi-hexapod-pi-robot/
but here is the pic:
I found my two 7.2V RC battery packs and chargers; I will use them to power the servos for now. Later I will probably switch to two 18650's in series.
Last night I had a great idea - I will use the thumb sticks switch between two sets of servos for control.
I am leaning towards getting my servo tester running before I resume assembling HexPi, I think it will save me a lot of time.
Edit: I added a lot more information on the servo tester on the HexPi page
http://www.mikronauts.com/robot-zoo/hexpi-hexapod-pi-robot/
I expect several updates on Monday
The four joysticks work, the buttons not yet (the modules left off the pull up resistors) - details on my HexPi page. I'll update it several times today.
http://www.mikronauts.com/robot-zoo/hexpi-hexapod-pi-robot/
Quick summary:
- I had to add pull-up resistors to the switches on thumbstick pcb's, the manufacturer left them off
- joystick calibration now works
- Kentucky Fried Servo!!! (defective servo found in my last order)
As usual, far more detail at:
http://www.mikronauts.com/robot-zoo/hexpi-hexapod-pi-robot/
I plan on posting some pics tonight.
I've been too busy with other work, so no progress yet. It looks like I might have a few hours for HexPi tomorrow.
Sorry about the lack of updates.
I dismounted the three legs I previously mounted on HexPi, as I want to re-calibrate all the "pelvis/shoulder" servos. It turns out that my initial idea of where to center the legs was sub-optimal.
This time, I am going to pay attention to the limits to travel imposed by the servo holders. Later, I may remove some metal from the servo mounts to allow for greater freedom to travel - I consider the unnecessary travel limits to be a design flaw, caused by using off-the-shelf brackets for the hips. I'll take some photos to illustrate what I mean later.
I might even add some limit switches to detect leg collisions, and footpad switches to detect when the leg is on the surface the robot is travelling on.
Meanwhile, I added support for the inexpensive HC-SR04 distance sensor to the RoboPi firmware, object, and library, so I will mount one or two on HexPi. (I am also adding Ping and SeeedStudio range sensor support).
The "Better Mousetrap" servo tester is working, I plan on posting some photos (and maybe videos) of it working soon. It is really nice to be able to test up to eight (soon 16) servos at once.
Time to start adding and calibrating the legs
Once I add the legs, I'll add the battery packs, and RoboPi for initial testing (the Raspberry Pi will be added later).
http://www.ebay.com/itm/160998716216?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2648#ht_1486wt_929
I was worried when I saw the terrible review of them below, describing them as "the worst servos I've ever seen - bar none!" .
Ack! Have you tested yours? I saw you got one Kentucky fried servo.
http://www.rcmodelreviews.com/mg995review.shtml
Edit: At least that reviewer likes my favorite 9g servo, Hobby King's HXT900: http://www.rcmodelreviews.com/chineseservos1.shtml
I know what you mean - wifey kidnapped me for a three week vacation. Loved it.
I did miss my lab and good internet access, but there was something liberating in being away from work / computers / internet / tv as well.
Wifey would have kicked me out if I spent $1K on a hexapod bot. Or at least put me in a dog house she would have me build.
I know the reviews are bad, but I had to work within my toy budget.
- Cheap Futaba S3003's did not have enough torque
- the chassis vendor said minimum servos were the MG995's
My experience (summary)
- ordered 50 MG995's (enough for two hexapods + spares)
- one went up in smoke
- one did not work (I was able to fix it, loose GND wire due to cold solder joint)
- four had one broken off mounting tab (three were still ok), one of these was the "kentucky" servo
- rest tested OK, have not tested for accuracy yet
As nearly as I can tell, the real problem is lack of quality control at the factory. There is NO way the servos were tested at the factory, if they had been, I'd have received 50 working servos.
Given that I could repair one of the servos, I got 49 usable servos (from a shipment of 50).
So my experience so far is better than the review, however I will know much better once HexPi is walking around.
A robot has far less altitude to fall from
http://www.mikronauts.com/robot-zoo/hexpi-hexapod-pi-robot/
Here is a teaser pic
Understatement of the year! Paul K is apparently too modest to blow his own horn, so please allow me. Brother Paul has worked wonders on his Propeller-based IK hexapod. See his thread at http://forums.parallax.com/showthread.php/126747-Propeller-Based-IK-Hexapod-Project
and his video below.
+1
I'm still actively working on the hexapod Paul gave me.
Thanks for the updates Bill. It's fun to follow along.
Thanks for the links and the video! That code should work on my bot with very few modifications... I'll have to check out the rest of Paul's stuff.
I even have a PS2 writeless controller just like the one Paul used - got it from RobotShop.ca just before I went on vacation. Fortuitous coincidence!
Agreed, hexapods are fun - and I don't even have mine running! Loved looking at Paul K's video, and checked his thread - found useful source code
Funny story:
I asked my 14 year old niece ... "Would you be scared of my large robot spider?"
She got a thoughtful look on her face... thought about it for about half a minute... and said ... "Maybe."
Honest little girl!
I got the brushed aluminium chassis so it would be less likely to scare my niece and nephews. I will also avoid mounting clacking pincers...
http://www.ebay.com/itm/Wireless-Controller-Receiver-Refit-DIY-for-Arduino-Robot-Walking-Biped-Spider-/271172571133?pt=Radio_Control_Parts_Accessories&hash=item3f23250ffd