Next large robot

1111214161727

Comments

  • DiverBobDiverBob Posts: 752
    edited 2014-08-15 - 15:35:31
    Paul K. wrote: »
    Sounds like you need to tweak how everything moves using interpolation. In short all motors move from point A to B no matter the distance, at the same time.

    Even though a motor/leg doesn't move it should still receive a pulse. My idea which I used to make my code was to constantly update every motor/servo non-stop. Even if it didn't move. You have a cog constantly looping feeding data to you motors. The Q4 feeds the values in a mian loop to alter the motor loop.

    Can you post your code/codes. Since your using multiple props, post all of the files.

    Here is a copy of the Transmitter, Reciever (master computer) and leg computer codes. Warning, the last person to look at the leg code complained his eyes were bleeding! So be careful! Anyway, see if anything jumps out, there is a lot of troubleshooting code in there to push data to a serial terminal which can make it hard to read. There is a seperate routine for each motor however all three are very similar in structure. Thanks for looking!

    Bob
  • DiverBobDiverBob Posts: 752
    edited 2014-08-16 - 19:08:45
    Got some time to work on the code and worked on the motor done flags. I made some changes and that helped a lot. I got multiple motor movements at the same time, granted they still aren't moving to the right angles all the time but it's better than before! Tomorrow I'll try some other ideas I got from playing today. I want to see how much I can get done before next weekend as I can't do any work on the robot before disassembling it for the drive to Ohio.
  • DiverBobDiverBob Posts: 752
    edited 2014-08-17 - 14:28:03
    This has actually been another good day for coding. Only stopped now to recharge the motor battery. I made some additional changes to the code that have improved the responsiveness of the legs to a move request. Since I have a spare cog again, I re-added the RGB control, seems to be some bugs in that part of the code so I'll play with that again in a bit.
  • DiverBobDiverBob Posts: 752
    edited 2014-08-21 - 03:13:10
    The RGB code issues ended up being an issue with my ability to count! I had already used up all the cogs which explains the failure to respond. The plan for now is to run the RGB LEDs from the master computer now and come up with a method for the leg computers to provide that feedback. This means I need to solder the LEDs into a single string of 24 LEDs vs the 6 groups of 4 LEDs I have now. The control code allows individual LEDs to be controlled so I'll write up some code to interpret the incoming messages from the individual slave computers that will set values in an array. The array will then be cycled through to set the LED color.
    Since I'm on the road next week for business, the robot gets disassembled this Sunday and packed in the car so this will be my last chance for setup before the Orrville get together. I hope to see some of you there and you can see the progress so far on the beast!

    Bob
  • dbpagedbpage Posts: 180
    edited 2014-08-21 - 07:19:34
    You should find that 24 addressable RGB LEDs on a single pin will be easier to manage and better performing than 6 strands of 4.
  • DiverBobDiverBob Posts: 752
    edited 2014-08-22 - 03:18:21
    With it being a rainy day out yesterday, that meant a much shorter daily bike ride (only 5 miles!) which left much more time to play in the workshop. I disassembled the plugs from the RGB LED strips and soldered the strips into a single, 24 RGB LED strand. Using my test program I powered it up and everything worked! Reassembling the new stand into its slot took longer than expected, I didn't want to pull the plugs to the slave Prop board so I could only lift the computer base section up a couple of inches. I finally got everything wedged back into their places and verified that it still was working correctly.
    Tonight I start on the feedback loop from slave to master so the individual RGB LEDs can be used as informational displays. Don't expect to have that done in time for the get together but it will be a work in progress!
  • DiverBobDiverBob Posts: 752
    edited 2014-08-29 - 05:40:57
    I'm here in Wooster, Ohio for the Microcomputer Expo tomorrow in Orrville. The hexapod is disassembled in my car (first time since last year!) . Tonight is a get together for people to talk about projects etc. and the official show is tomorrow at the library. I'll be re-assembling the hexapod and if all goes right I'll be able to demonstrate one leg moving via the transmitter. It's not much but better than last years static display! There are both hardware and software improvements/changes to see since last years show. Fingers are crossed that next year this time it will be actively walking, and maybe climbing stairs.

    Hope to see some of you tonight or tomorrow!

    Bob Sweeney
  • ercoerco Posts: 19,440
    edited 2014-08-29 - 06:52:57
    Sounds like fun with a fair amount of work involved! I'm sure you will be the hit of the show. Enjoy the event and share some pics and or videos if you can.
    "When you make a thing, a thing that is new, it is so complicated making it that it is bound to be ugly. But those that make it after you, they don’t have to worry about making it. And they can make it pretty, and so everybody can like it when others make it after you."

    - Pablo Picasso
  • DiverBobDiverBob Posts: 752
    edited 2014-08-30 - 06:12:37
    Sitting in front of the Orrville library waiting for it to open so I can haul all my parts inside and attempt to re-assemble the hexapod. This will be a good practice run to see how well the modular design works. I do need to come up with some written instructions on the order of which parts have to be put on first, there are a few spots where the order matters but I've done this so infrequently that I haven't memorized all the steps!

    Anyway, looking forward to meeting everyone that can come to the show. I'll attempt to get some photos to post of the other projects too.
  • DiverBobDiverBob Posts: 752
    edited 2014-09-23 - 16:43:56
    I haven't done too much since the show in Orrville. It's been a time for getting all the end of summer stuff done and all the other chores that got neglected taken care of. Here is a short list of changes.

    There is some progress on the computer power supply wiring, a little more soldering and that will be done. I managed to re-assemble the robot and make sure it survived the trip back from Orrville. Still have some software bugs to find, I noticed that I get some occasional random movements, I suspect the ADC filter may need a bit more fine tuning. That isn't a major concern but it seems the leg is not always moving to the requested position as requested by the transmitter. That is a bug that has to be squashed!

    I did get some soldering done today, finished up 2 more RoboPi boards, only 2 more to go! These boards are working very nicely, lots of interface options and the 3 pin connectors on the outputs make interfacing easy.

    It may be a bit again til my next update, we have started our refueling outage so I'll be working lots of hours for the next month, still have to have a way to pay for the toys!
  • Paul K.Paul K. Posts: 150
    edited 2014-09-23 - 19:04:03
    Bob which filter do you think needs fine tuning? The controller or the bot?
  • Paul K.Paul K. Posts: 150
    edited 2014-09-23 - 19:13:51
    Paul K. wrote: »
    Bob which filter do you think needs fine tuning? The controller or the bot?
  • DiverBobDiverBob Posts: 752
    edited 2014-09-24 - 16:34:25
    Paul K. wrote: »
    Bob which filter do you think needs fine tuning? The controller or the bot?
    The controller is fine, the filter I'm talking about is the one I'm using for the ADC filtering. I think some bad values are leaking thru occasionally. One idea is to ignore the ADC input until a new reposition request is received. I'll run some tests and figure out the best fix.
  • DiverBobDiverBob Posts: 752
    edited 2014-10-26 - 06:47:55
    The outage at work is done, 12 hr days with only one day off can get brutal after a while! Anyway it's time to get started back on the Hexapod! (Still need to come up with a cool name for this thing sometime...).

    I spent some time running power wires from the computer distribution center up to the computer level. I didn't like the first version so tore it out and now re-thinking this. The goal is to continue to keep this a modular assembly so the computer level wiring will plug into the battery level. I have some nice 2 pin plugs that will work, just have to figure out how to route everything.

    On the software side, I fixed a couple of bugs that occasionally resulted in random motion of the leg without any input changes. Just started working on closing the feedback loop from the slave computers back to the master computer. This will be used to signal error conditions, sensor feedback and inform the master computer when the leg has completed a motion.

    I want to get started soon on programing the IK routines into the master computer. This will be the acid test for leg movements! I have tried earlier and played around with it but the leg control software wasn't accurate enough to provide the expected motions. It's almost there now, I just have to have patience.

    That's it for now, I'll be getting some more work in later today but it's time to go shipwreck diving now!

    Bob
  • DiverBobDiverBob Posts: 752
    edited 2014-11-02 - 07:34:20
    Finished up wiring the computer power supply for the leg controllers, lots of crimp terminals, soldering and heat shrink but the result looks pretty good now.

    Today will be spent working on the feedback loop from the leg to the master controller and then back to the transmitter. Lots to do!

    I also need to do a lot of tedious soldering for all the 3 pin connectors, got to be in the right frame of mind for that task! That will also determine when I can hook up more than one leg and start that experimenting.

    Hard to show photos at this stage, most of the changes are pretty suble and not very noticeable, like wiring and software bug fixes. I did buy a wood stand to set the robot on top of for testing. I cut the size down so I don't need a step stool to look into the computer level anymore! That was helpful for me and the wife wanted her kitchen stool back!
  • DiverBobDiverBob Posts: 752
    edited 2014-11-08 - 21:08:34
    Today was pretty good programming wise. Got the feedback loop from the slave to master figured out so data is being passed both from and to the master computer and slave computer. I'm only feeding back data that is being used to control the RGB LEDs that are located above the leg. Each leg has 4 LEDs used to provide troubleshooting data. Each motor has one LED, with the fourth LED used for miscellaneous data. The data is shown as a seperate color. Right now I'm using 7 colors that are easily identified to signify different conditions.

    Tomorrow the job will be optimizing the code and making it work for all the legs instead of just one leg.

    I was getting low voltage indications on the main motor battery so I hooked up my old trusty gel cell charger that I got back around 1984. It finally gave up the ghost so a quick run to the Battery Store and got a new charger. So I'm back in business.
  • DiverBobDiverBob Posts: 752
    edited 2014-11-22 - 07:49:51
    Glad to see the forums are back up again! I was missing my daily fix.

    After my last posting where I was charging the main battery, I decided to pull the computer deck off to do some work I'd been putting off. Once that was done and the battery still wasn't fully recharged, I decided to make some programming changes. The problem with that is I was only checking that the changes were compiling and not seeing how the leg reacted. So when I finished charging and reconnected the battery the leg refused to move.

    I had to validate the wiring was still correct and then started to back out the program changes. Still no go, no signs of life other than the occasional twitch during startup. Finally I removed the radio interface entirely and tested using the manual serial input from the computer.
    After a bit of time I got that function to work again. Next was putting the XBee back in place with a lot of debug statements to narrow the problem done. The holdup appears to be that either the XBee reciever on the master isn't recieving the transmissions correctly.

    So today will be going back to some of my earlier test code to see what changed. I figured I'd be a bit further along by now but moving backwards wasn't in the plans. It's a wet, miserably cold day so working in the basement isn't such a bad idea.
  • PublisonPublison Posts: 10,787
    edited 2014-11-22 - 07:53:33
    Bob,

    Thanks for all the updates, I read them all. Anxiously awaiting some new videos.

    Jim
    Infernal Machine
  • DiverBobDiverBob Posts: 752
    edited 2014-11-22 - 12:01:43
    Looking back at this forum I found some XBee code I posted shortly before the Orrville get together. Comparing it to the current code I was able to fix some of the coding differences enough so that the leg is moving once again. However I also removed some of the code earlier that fixed issues with that version of the code. So back to the drawing board and figure out what I did. Hopefully it will go faster this time since I've fixed it once before.
    I really need to save older versions of the code more often since this has happened a couple of times before, however not this badly.
  • ratronicratronic Posts: 1,451
    edited 2014-11-22 - 12:10:34
    I just hate when that stuff happen's Bob! Pretty soon you will have it doing the bunking bronco routine like Duanes hex.
    Fix it, if it ain't broke! .......... D Rat .......... Dave ..........
  • DiverBobDiverBob Posts: 752
    edited 2014-12-07 - 16:41:25
    Still working to resolve coding issues. As long as I was trying to fix code, I completely changed the parsing routines to a much simpler setup based on some GPS parsing code I found. This version is easier to understand and troubleshoot! Still getting errors but they are easier to figure out now. I've got the parser breaking down the input from the transmitter into individual motor commands and the global variables that the motors use to base their movement on are being updated but I'm not getting the expected motor motio yet.
    After a day of coding my mind is mush right now so I'll get back to it after work tomorrow. I haven't progressed as fast as hoped for, looking to build the motivation up again, been spending too many nights without much progress.
  • DiverBobDiverBob Posts: 752
    edited 2014-12-13 - 19:52:09
    Working on a thread I posted in the Prop forum with the parsing code. My new and simplified parser is outputting not only the desired angle data but also a lot of angles that were not requested. Although it is interesting to see the leg moving all over the place, that isn't the goal of this experiment. Will hit it again tomorrow, hopefully with a good nights rest I'll see where the problem lies.
  • DiverBobDiverBob Posts: 752
    edited 2014-12-24 - 07:23:19
    I'm out of town so haven't been able to do any further work on the robot but was able to test several variations of the parser routine. Most work well but it seems to 'lock up' occasionally. I'm working on improving the reliability of the routine next. I'll be home soon and plan on hitting it hard to get over this bump in the road. I really want to start testing multiple leg movements soon!

    Merry Christmas to all and hope that Santa is good to you!
  • DiverBobDiverBob Posts: 752
    edited 2015-01-01 - 16:03:08
    Now that I'm back from another Florida trip (with side trip to Skycraft Surplus in Orlando) and ready to get back to work.
    Today I used parser code from Jon M. over on the Propellor forum and got that running. Most of the issues I was seeing before have disappeared. I found that adding a 5 msec delay on the master computer routine when it outputs the serial output has almost totally eliminated some of the bad inputs to the leg controller.
    One test was to move the leg to a specific position and just let it sit there and see if it generates any random movements. This test went very well with some new instructions that specifically bypass the leg movement routines unless the command comes in correctly.
    Now that I've got stable code again it is time to work on that feedback loop again. This time I'm making multiple copies of the code as I go along so it will be easier to return to a valid working code base.
  • ercoerco Posts: 19,440
    edited 2015-01-01 - 16:22:21
    DiverBob: Great to see you're back on the case. Once again, your patience and persistence are exemplary.

    But please note that zappman's FrankenBot is stealing all the headlines in the forum. He's made lots of progress in just a few hours. If it's not asking too much, could you please finish your robot tonight and have it walk a figure 8 pattern? Time's a-wasting! :):):)
    "When you make a thing, a thing that is new, it is so complicated making it that it is bound to be ugly. But those that make it after you, they don’t have to worry about making it. And they can make it pretty, and so everybody can like it when others make it after you."

    - Pablo Picasso
  • DiverBobDiverBob Posts: 752
    edited 2015-01-02 - 09:13:30
    erco wrote: »
    DiverBob: Great to see you're back on the case. Once again, your patience and persistence are exemplary.

    But please note that zappman's FrankenBot is stealing all the headlines in the forum. He's made lots of progress in just a few hours. If it's not asking too much, could you please finish your robot tonight and have it walk a figure 8 pattern? Time's a-wasting! :):):)
    I'm going to spend a few hours this weekend, does that count? The best I think I could do is have a leg tip move in a figure 8 pattern, does that meet the requirement?
  • ercoerco Posts: 19,440
    edited 2015-01-02 - 11:45:59
    Hey, that would be a great challenge and an awesome first! The closest thing is Martin_H's ingenious IK program and robot arm drawing a figure 8.

    http://forums.parallax.com/showthread.php/138125-Erco-s-Figure-Eight-Challenge?p=1168501&viewfull=1#post1168501
    "When you make a thing, a thing that is new, it is so complicated making it that it is bound to be ugly. But those that make it after you, they don’t have to worry about making it. And they can make it pretty, and so everybody can like it when others make it after you."

    - Pablo Picasso
  • DiverBobDiverBob Posts: 752
    edited 2015-01-03 - 14:12:45
    Tougher time than expected, had to take a time out before I break something. Was able to get the feedback loop started and sending back valid data for one motor that was then used to control the RGB LEDS. However once I added to other 2 motor data, I started picking up bad data in the string that stops the leg from responding. I've been inserting all kinds of debugging statements to try to narrow down the issue and everytime I think I have the solution it results in another dead end. With that in mind, I'm stopping to write this up and hope that I can come up with another idea. In the mean time I've backed out of the changes and will try again later.
    Another thing that just showed up is that when there is a long movement by a motor, it will stop moving after 3-4 sec for less than a second and then resume movement. I think this has something to do with the HB-25 controllers but I don't know what changed to have them start acting like this. I need to read the controller manual again, I tend to remember seeing this discussed in there.
  • ercoerco Posts: 19,440
    edited 2015-01-03 - 14:56:49
    DiverBob wrote: »
    Tougher time than expected, had to take a time out before I break something.

    I haven't actually build a robot that can break or destroy itself yet. What a great goal for 2015!

    Continued good luck on your project. Every part is clearly a labor of love and I'm sure the final product (are robots ever totally finished?) will be worth all the work and head scratching.
    "When you make a thing, a thing that is new, it is so complicated making it that it is bound to be ugly. But those that make it after you, they don’t have to worry about making it. And they can make it pretty, and so everybody can like it when others make it after you."

    - Pablo Picasso
Sign In or Register to comment.