Legacy Forum: Preserving Nearly 20 Years of Community History - A Time Capsule of Discussions, Memories, and Shared Experiences.

Wireless Control

Bioloid robot kit from Korean company Robotis; CM5 controller block, AX12 servos..
65 postsPage 1 of 51, 2, 3, 4, 5
65 postsPage 1 of 51, 2, 3, 4, 5

Wireless Control

Post by AlphA » Thu Apr 10, 2008 2:44 pm

Post by AlphA
Thu Apr 10, 2008 2:44 pm

I've been wanting to control my Bioloid with a wireless game controller. This is what I cam up with, for now. I didn't think it would work well, but it's really not too bad.
http://www.youtube.com/watch?v=sLVa9U-bnK0
http://bigmech.com/bioloid/
http://bigmech.com/bioloid/wp-content/uploads/2008/05/bioloidserialcontrol.zip

phpBB [media]
[/url]
I've been wanting to control my Bioloid with a wireless game controller. This is what I cam up with, for now. I didn't think it would work well, but it's really not too bad.
http://www.youtube.com/watch?v=sLVa9U-bnK0
http://bigmech.com/bioloid/
http://bigmech.com/bioloid/wp-content/uploads/2008/05/bioloidserialcontrol.zip

phpBB [media]
[/url]
Last edited by AlphA on Mon May 05, 2008 8:03 pm, edited 1 time in total.
AlphA
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 48
Joined: Mon Jan 07, 2008 6:12 am
Location: Ohio

Post by limor » Thu Apr 10, 2008 3:14 pm

Post by limor
Thu Apr 10, 2008 3:14 pm

Great stuff!
what is the wireless gamepad you are using and how did you link its output with robot-terminal ?

(btw: you can copy-paste the "embed" youtube text onto the forum post)
Great stuff!
what is the wireless gamepad you are using and how did you link its output with robot-terminal ?

(btw: you can copy-paste the "embed" youtube text onto the forum post)
limor
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 1845
Joined: Mon Oct 11, 2004 1:00 am
Location: London, UK

Post by Bullit » Thu Apr 10, 2008 5:47 pm

Post by Bullit
Thu Apr 10, 2008 5:47 pm

Nice.

Does the controller interact with the bioloid or the PC?

We connected wireless PS2 controllers to CM-2's via SPI and was quite successful at that.
You can check out my post here which covers how to connect to a CM-5.

We did notice some interrence problems in some areas with the PS2 controllers though. In most places it was fine. Of course the firmware was all our own as the SPI interface isn't supported in the bioloid firmware.

Now we are using PS3 six axis bluetooth controllers which talk to Gumstix boards.

Keep up the good work!
Nice.

Does the controller interact with the bioloid or the PC?

We connected wireless PS2 controllers to CM-2's via SPI and was quite successful at that.
You can check out my post here which covers how to connect to a CM-5.

We did notice some interrence problems in some areas with the PS2 controllers though. In most places it was fine. Of course the firmware was all our own as the SPI interface isn't supported in the bioloid firmware.

Now we are using PS3 six axis bluetooth controllers which talk to Gumstix boards.

Keep up the good work!
Bullit
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 291
Joined: Wed May 31, 2006 1:00 am
Location: Near robot

Post by BillB » Thu Apr 10, 2008 6:25 pm

Post by BillB
Thu Apr 10, 2008 6:25 pm

Ingenious - what an innovative use of the Terminal editor and Joystock macros.
Ingenious - what an innovative use of the Terminal editor and Joystock macros.
BillB
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 232
Joined: Sun Aug 06, 2006 1:00 am
Location: Hampshire, UK

Post by Tech Mech » Thu Apr 10, 2008 10:32 pm

Post by Tech Mech
Thu Apr 10, 2008 10:32 pm

Tech Mech
Savvy Roboteer
Savvy Roboteer
Posts: 31
Joined: Thu Nov 08, 2007 4:21 am
Location: Detroit Mi

So Cool!

Post by Banzai_One » Thu Apr 10, 2008 10:39 pm

Post by Banzai_One
Thu Apr 10, 2008 10:39 pm

Did you need to do any extra programming to make it work?

I just finished building a remote controller out of an extra CM-5, an AX-1S, and a spare AX-12.
Did you need to do any extra programming to make it work?

I just finished building a remote controller out of an extra CM-5, an AX-1S, and a spare AX-12.
Banzai_One
Newbie
Newbie
Posts: 3
Joined: Sat Mar 15, 2008 6:39 pm

Post by AlphA » Fri Apr 11, 2008 8:27 pm

Post by AlphA
Fri Apr 11, 2008 8:27 pm

I appreciate your comments.

Yes. It is a Saitek P2900. I used this one because it has the 6 on top (Street Fighter style) buttons and good joystick to virtual keyboard macro implementation.

As for programming, there is none. The game pad communicates with the PC running Robot Terminal then Robot Terminal talks to the CM-5 (in program mode).

The Saitek driver comes with a virtual keyboard and programmable macros, but any device (keyboard, mouse, joystick, pedals, Wiimote, etc.) would work if you were to run something like AutoHotkey to convert joystick buttons to keyboard macros.
I appreciate your comments.

Yes. It is a Saitek P2900. I used this one because it has the 6 on top (Street Fighter style) buttons and good joystick to virtual keyboard macro implementation.

As for programming, there is none. The game pad communicates with the PC running Robot Terminal then Robot Terminal talks to the CM-5 (in program mode).

The Saitek driver comes with a virtual keyboard and programmable macros, but any device (keyboard, mouse, joystick, pedals, Wiimote, etc.) would work if you were to run something like AutoHotkey to convert joystick buttons to keyboard macros.
AlphA
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 48
Joined: Mon Jan 07, 2008 6:12 am
Location: Ohio

Post by Banzai_One » Fri Apr 11, 2008 9:46 pm

Post by Banzai_One
Fri Apr 11, 2008 9:46 pm

So the robot is still connected to your PC via the USB cable?

The controller I built communicates using the IR tranceiver on the AX-S1. I used a servo with the motor turned off as a mode selector and programmed it to send a different set of command codes depending on the angle of rotation that the servo was set.
So the robot is still connected to your PC via the USB cable?

The controller I built communicates using the IR tranceiver on the AX-S1. I used a servo with the motor turned off as a mode selector and programmed it to send a different set of command codes depending on the angle of rotation that the servo was set.
Banzai_One
Newbie
Newbie
Posts: 3
Joined: Sat Mar 15, 2008 6:39 pm

Post by AlphA » Mon Apr 14, 2008 8:08 pm

Post by AlphA
Mon Apr 14, 2008 8:08 pm

No. I don't believe the Bioloid can do anything with a USB cable, and the controller is completely wireless.

The robot is, however, connected to a laptop via serial. This should be remedied with the use of a ZigBee or BlueTooth hack. Actually, can anyone using either wireless solution confirm that one can communicate with the CM-5 via Robot Terminal using any of the following methods?

PC Serial > Serial2Zig > Zig-100 > ...air... > Zig-100 > CM-5
or
PC USB ZigBee Dongle > ...air... > Zig-100 > CM-5
or
PC BlueTooth > ...air... > BlueSmirf > CM-5
No. I don't believe the Bioloid can do anything with a USB cable, and the controller is completely wireless.

The robot is, however, connected to a laptop via serial. This should be remedied with the use of a ZigBee or BlueTooth hack. Actually, can anyone using either wireless solution confirm that one can communicate with the CM-5 via Robot Terminal using any of the following methods?

PC Serial > Serial2Zig > Zig-100 > ...air... > Zig-100 > CM-5
or
PC USB ZigBee Dongle > ...air... > Zig-100 > CM-5
or
PC BlueTooth > ...air... > BlueSmirf > CM-5
AlphA
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 48
Joined: Mon Jan 07, 2008 6:12 am
Location: Ohio

Post by Bullit » Tue Apr 15, 2008 4:02 am

Post by Bullit
Tue Apr 15, 2008 4:02 am

I can confirm robot terminal with bluetooth on both ends. 57.6k baud on CM-5 end.
I can confirm robot terminal with bluetooth on both ends. 57.6k baud on CM-5 end.
Bullit
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 291
Joined: Wed May 31, 2006 1:00 am
Location: Near robot

Post by siempre.aprendiendo » Tue Apr 15, 2008 1:49 pm

Post by siempre.aprendiendo
Tue Apr 15, 2008 1:49 pm

I use BlueConsole, a RS232-BT adaptor, and it works very well at 57600 and at 115200 changing the CM-5 firmware
I use BlueConsole, a RS232-BT adaptor, and it works very well at 57600 and at 115200 changing the CM-5 firmware
siempre.aprendiendo
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 559
Joined: Wed Aug 08, 2007 9:13 pm
Location: Barcelona

Post by Bullit » Tue Apr 15, 2008 9:24 pm

Post by Bullit
Tue Apr 15, 2008 9:24 pm

Just to clarify, the CM-5 bootloader only runs at 57.6k (unless you replace it) so to update the firmware, the CM-5 side must be set to 57.6k. The PC side can be set to any baud rate you like since its virtual any way.
Just to clarify, the CM-5 bootloader only runs at 57.6k (unless you replace it) so to update the firmware, the CM-5 side must be set to 57.6k. The PC side can be set to any baud rate you like since its virtual any way.
Bullit
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 291
Joined: Wed May 31, 2006 1:00 am
Location: Near robot

Post by siempre.aprendiendo » Tue Apr 15, 2008 10:56 pm

Post by siempre.aprendiendo
Tue Apr 15, 2008 10:56 pm

Bullit wrote:Just to clarify, the CM-5 bootloader only runs at 57.6k (unless you replace it) so to update the firmware, the CM-5 side must be set to 57.6k. The PC side can be set to any baud rate you like since its virtual any way.


Yes, it 's pretty tedious, in addition I should change, every time the baud rate is changed, the BlueConsole baud rate...
Bullit wrote:Just to clarify, the CM-5 bootloader only runs at 57.6k (unless you replace it) so to update the firmware, the CM-5 side must be set to 57.6k. The PC side can be set to any baud rate you like since its virtual any way.


Yes, it 's pretty tedious, in addition I should change, every time the baud rate is changed, the BlueConsole baud rate...
siempre.aprendiendo
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 559
Joined: Wed Aug 08, 2007 9:13 pm
Location: Barcelona

Post by limor » Tue Apr 15, 2008 11:45 pm

Post by limor
Tue Apr 15, 2008 11:45 pm

AlphA wrote:The Saitek driver comes with a virtual keyboard and programmable macros, but any device (keyboard, mouse, joystick, pedals, Wiimote, etc.) would work if you were to run something like AutoHotkey to convert joystick buttons to keyboard macros.


what a great idea!!

I've been using AutoHotkey for a long time but didn't think of applying it to convert Joystick events to keyboard events inside robot-terminal.

I came across this post on their forum, which implies that you can actually use AutoHotkey to convert Joystick events to directly to COM port communications (Bluetooth, Zigbee, serial port)
AlphA wrote:The Saitek driver comes with a virtual keyboard and programmable macros, but any device (keyboard, mouse, joystick, pedals, Wiimote, etc.) would work if you were to run something like AutoHotkey to convert joystick buttons to keyboard macros.


what a great idea!!

I've been using AutoHotkey for a long time but didn't think of applying it to convert Joystick events to keyboard events inside robot-terminal.

I came across this post on their forum, which implies that you can actually use AutoHotkey to convert Joystick events to directly to COM port communications (Bluetooth, Zigbee, serial port)
limor
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 1845
Joined: Mon Oct 11, 2004 1:00 am
Location: London, UK

Post by AlphA » Tue Apr 22, 2008 8:18 pm

Post by AlphA
Tue Apr 22, 2008 8:18 pm

Good thinking limor! I've looked through aobrien’s serial port console script, and figured out enough to make a standalone AHK exe that directly converts joystick input to Bioloid serial control commands. No more macros or robot terminal and nothing to install! No need for any Bioloid software or special JoyStick drivers either.

I’ve made it customizable and gave it some smarts. For example, if you are in the Init (standing) position and send the AttackFront command, Bioloid will first send the AttackReady command. This way, the user can throw a few punches without worrying about erratically changing poses from stand to attacking. It also prevents the user from going from AttackReady to walking, which would otherwise result in a fall. If you stop attacking for a few seconds, the Bioloid will return to Init and be ready to walk, turn, etc. It’s a lot simpler than I’m making it sound.

Another good thing about this technique is that everything is executed in Program Mode. So, it will not interfere with any program you may have saved in the Bioloid. You can switch between autonomous (play) and manual control (program) modes without changing the behavior control program.
Both, Prolific usb2serial adapter and actual serial ports worked fine. I've tested this on Windows 2k, XP and Vista.

All that is required is:
• a PC with some form of serial port (possibly BlueTooth)
• joystick/gamepad
plug-and-play is best (HID-compliant game controller). Sometimes, "fancy" gamepads that show up as "USB Human Interface Device" have trouble communicating correctly.

http://bigmech.com/bioloid/wp-content/uploads/2008/05/bioloidserialcontrol.zip

I'd like to know if this works with Zig-Bee and/or BlueTooth hack, but I have neither. Can someone give this a try?
Good thinking limor! I've looked through aobrien’s serial port console script, and figured out enough to make a standalone AHK exe that directly converts joystick input to Bioloid serial control commands. No more macros or robot terminal and nothing to install! No need for any Bioloid software or special JoyStick drivers either.

I’ve made it customizable and gave it some smarts. For example, if you are in the Init (standing) position and send the AttackFront command, Bioloid will first send the AttackReady command. This way, the user can throw a few punches without worrying about erratically changing poses from stand to attacking. It also prevents the user from going from AttackReady to walking, which would otherwise result in a fall. If you stop attacking for a few seconds, the Bioloid will return to Init and be ready to walk, turn, etc. It’s a lot simpler than I’m making it sound.

Another good thing about this technique is that everything is executed in Program Mode. So, it will not interfere with any program you may have saved in the Bioloid. You can switch between autonomous (play) and manual control (program) modes without changing the behavior control program.
Both, Prolific usb2serial adapter and actual serial ports worked fine. I've tested this on Windows 2k, XP and Vista.

All that is required is:
• a PC with some form of serial port (possibly BlueTooth)
• joystick/gamepad
plug-and-play is best (HID-compliant game controller). Sometimes, "fancy" gamepads that show up as "USB Human Interface Device" have trouble communicating correctly.

http://bigmech.com/bioloid/wp-content/uploads/2008/05/bioloidserialcontrol.zip

I'd like to know if this works with Zig-Bee and/or BlueTooth hack, but I have neither. Can someone give this a try?
Last edited by AlphA on Mon May 05, 2008 8:04 pm, edited 1 time in total.
AlphA
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 48
Joined: Mon Jan 07, 2008 6:12 am
Location: Ohio

Next
65 postsPage 1 of 51, 2, 3, 4, 5
65 postsPage 1 of 51, 2, 3, 4, 5