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.
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.
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?
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.
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 .
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.
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…
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?