VB Windows Hexapod Control Program based on Xan's Code

Sure…this is the webpage you want: lynxmotion.com/images/html/build125.htm

Yeah, I was going to do that but ran out of time. I’ll see what I can whip up.

As of right now, all the parameters need to be changed in the code. That means that you need VB.net installed…the settings file is on my list of things to add.

Enjoy!

Try Sparkfun, that is where I got mine. They have a couple versions for$50 and $65 respectively. I have a BlueSmirf Gold.

Here is a link:

sparkfun.com/commerce/advanc … n=products

Is is possible to use your program and only a wired serial connection (no bluetooth) between the pc and the scc32 so I can test my setup? Afterwards I can always buy the bluetooth dongle.

The bluetooth connection simulates a serial cable so i don’t think it would be a problem :slight_smile:

Xan

I second Xan. Though I have never tried it. Let us know if it works! Also, if you hang around 5 more minutes I’ll have a setup guide posted! Cheers.

Hello everybody!

See the first post for a link to the much requested VB.net project setup guide!!

Please let me know what you think. What it helpful? Not enough detail? Too much? etc. Enjoy!

Version 1.1 Release

New features:

Pan and tilt head support
8 gaits
Leg cycle feature
Word doc setup guide available for download!

For link to download see first post on this thread…

Hi Flowbot. I’m so appreciative of the program you wrote for the hexapods! I’m a .net programmer myself (more vb then c#) so I was really excited about you using vb. I’ve found that the initial learning curve of gaits has been daunting to me, but being able to look at your source has given me hope.

I need a bit of guidance from you if possible though as things don’t seem to be working as I think they’re supposed to.

I am using bluesmurf to connect to my chr3 from my desktop as you are. The connection is working fine and when I click ‘wake’ the legs all move into position. From this point though, nothing else seems to be working. When I use the nice interface you wrote - nothing happens.

Do you have any ideas of how I may be pooching this?

Thanks again,
Kevin

Hi,

Very nice movements. Excellent work with your code!

I looked deeper into you source and think that the servos are wired different than the chr3 setup. I see for example:

Dim RFCoxaPin As String = "15"      'Front Right leg Hip Horizontal
Dim RFFemurPin As String = "14"     'Front Right leg Hip Vertical
Dim RFTibiaPin As String = "13"     'Front Right leg Knee

where in my wiring these pins aren’t used. So I’ll match it to your code and see what happens.

thanks.

I changed the servo pin numbers in the source so they matched the servos on my chr3, but still no joy.

After loading the program and clicking on ‘Wake’, the robot stands up and looks ready to go. But manipulating the visual controls does nothing, the poor thing just sits there. I feel like a bad parent :frowning:.

Any ideas anyone?

First of all let me say thanks to FlowbotX. I’m a vb programmer and this shed some info on some things i was doing wrong. Great job

After you get it to stand up, have you tried sending a command to one of the servos using SendSerialData() to see if you still have coms with the board. Also, do the controls respond in vb.

Hi Stash, thanks for responding. I haven’t tried that and will this evening. What do you mean when you say do the control respond in vb?

That the app is not locking up in anyway. All the controls are responding and the thread is still running its loop.

I connected my hex straight to the computer via a db9 and the program worked perfectly, so I think it’s something to do with the bluetooth connection.

I tried what you recommended Stash saw the LED on the SSC32 board light each time I sent a valid sequence, so I think the com link is up the whole time.

OK, I’m a bit stumped. I connected to the ssc32 via the bluetooth dongle /bluesmirf with ‘Putty’ and reset/reverified that the ssc32 is set at 115,200k and it went just like the tutorial outlined (the one Jim did on using bluesmirf).

While in Putty, I sent the controller direct commands (#5 P1600 S750 ) and the proper servos functioned correctly. I would think that tis shows the comm connection is good.

So, if connected via the db9, the program works fine, but not via bluesmirf. But, via bluesmirf I can send adhoc commands via Putty and things work…

You may want to look at connecting the Tx and Rx lines together on the ssc-32 end to see if you can receive back what ever you send.

Yikes! Sorry guys. I have been away on vacation and have had no internet access. Please forgive me.

As far as the bluetooth problem goes. You’ll see that the settings for the serial connection are hard coded in the code. I would make sure that all your bluetooth settings match those in the code. For example, your baud rate might be right but things like start bits, etc. could be off.

Please let me know if this helps. If not we’ll have to try something else.

Also, what operating system are you using? Vista/XP? I have heard rumors that some of the serial code in one .NET version won’t work with other .NET versions or OSes.

Finally, glad you guys enjoy the code. Hope you got it fixed by now Kevin…

Hi Flowbot, again great program. I can connect across the bluetooth using the com program Putty with it set to N81 NoHandshake and send individual sequences to a servo and it works fine.

Using your program if I connect via the com1 then all works fine, but not over the bluetooth. Repeating myself, but just wanted to recap.

I’m running it on winxp SP3.

Any suggestions would be most helpful. Do you have plans on making this into a service for MSRB?

Best,
Kevin

Well, I’ve been doing some work. What do you think? PET sleeving on the cables and…EYES (well one eye at least)

What do you think?