Cant control BOTBOARD II via Serial

Hi everyone, im new at the forum, and a total newbie in robotics, but im willing to learn, googleing i found this forum and think its great.

Im working on a project on which im planning to control the bh3-r robot with my pc, when i assembled it for the first time it was controlled using a ps2 wireless controller.

Well i buid a new program using powerpod changing ps2 control to serial port control, i can program the botboard, and everything goes fine, then i run the serial port controller and it connects with the botboard, but when i move the sticks nothing happens. The program seems to be fine, i even tried with this one viewtopic.php?f=8&t=5112 but it still doesnt work.

I dont know what to do, is there a step that im missing, do i have to change anything on the board so that it can work via db9 port? Maybe the timnmings, i also changed the read intervals, but my hexapod still doesnt work.

BTW, when i program it with the ps2 control program, everything goes fine.

Im so lost in here, :frowning:

hi welcome to lynxmotion. always good to see new faces. so to speak…

anyway, my first guess it the baud rate…

what ABB do you have.? (Atom bot-board)
also does the serial control work with ABB2 and with the atom pro28… im not sure.

you shouldn’t need to edit the code at all. iv not ever used the serial program but i hope im in the right direction.

Hi and welcome!

It may help to understand what your setup is and what you are trying to do.

From your question it sounds like you have a hex robot (bh3-r) that you have successfully built and controlled using the PS2. Now you would like to be able to control it from your PC and as such you had powerpod generate a serial control version which you successfully built and downloaded to the robot, which is great!

So the question is, what program are you running on the PC that generates the packets of information to send through the serial port to your robot to make it do stuff? You say when you move the sticks… What sticks? Do you have some Joystick or the like that is controlled by the PC?

Kurt

hi kurte
i believe this is what he means.
by sticks he means these.
http://i531.photobucket.com/albums/dd355/innerbreed/serialport.jpg

Thank you for your answers.

Yes, innerbreed, im using that program it was included with the lynxmotion powerpod.

Well im trying to control the hexapod with the pc, via serial, and wireless maybe rf, or bluethoot. Cause i want to control the robot with a program made in processing, that will allow me to follow a little object, maybe a ball.

The hexapod comes with a BotboardII paired with a Basic Atom PRO, for the servos im using a SSC-32.

Im just loading the new program connecting my pc to the botboard via serial. Then with the same connection im trying to move the robot. But nothing happens. Sometimes when i press L3 in the windows program the robot makes a little noise with his buzzer.

interesting.
the left joystick push button (L3) has a new function now, it selects between 4 control modes for the left joystick:
Body move mode
1)- (by default) move the body vertically + rotate around the vertical axis
2)- (push L3 to activate) move the body vertically + roll
3)- (push L3 again to activate) pitch + rotate around the vertical axis
4)- (push L3 again to activate) pitch + roll the body
pushing L3 again will return to mode 1 (cycling)
and it will lock/unlock the height with the left joystick push button (L3) when in Default mode!

you say you have had it working ps2. well i think you may have not changed the SSC-32 card communication pin. they are different in both codes. the ABB is not talking to the SSC! :wink:

:open_mouth: I think youre right, but i have checked the manuals and i couldnt find what should i modify, besides, i left it like that cause in both codes SSC32 seems to be linked to p15. Where do i have to plug the card? :neutral_face:

i have noticed that in the tutorial for the bh3-r that you need to Install the DC-01 to I/O P8, where black is closest to the outside of the board and yellow is on the I/O pin.

so the code would need to be set to Pin 8!

The Mini ABB originally had the PS2 Port on pins 4, 5, 6, and 7. This worked great with the Basic Atom 28. However, when the Basic Atom Pro 28 came out, there was an issue with P6 and P7 being 3.3vdc I/O pins. This prevented the PS2 controller from working with the Mini ABB when an Atom Pro was used. So move the port to Pins 12, 13, 14, and 15.
also change the default SSC-32 serial out pin from pin 15 to pin 8

you will need to change this in the code.

;*** SSC-32 card communication on pin 15 *** SSC32 con p15
to…

;*** SSC-32 card communication on pin 15 *** SSC32 con p8

Thanks Jonny, you beat my reply by a few seconds. Yes you need to change the define from
P15 to P8

Kurt

OMG :open_mouth: :open_mouth: :open_mouth: :open_mouth:

It works now!!! :smiley: :smiley: :smiley: :smiley:

Ty so much, yes that made it, now i can control it via wireless bluethoot.

Ty all, for your answers.

Great. its always the simple things we overlook. happy its working for you. :wink:
thanks kurte. another happy customer. 8)

Hello again. :slight_smile:

Well i kept working on this communication the weekend, the robot is working fine with the program i was using, but now i made a c# program instead and it doesn’t work.

I’m sending hex data trough COM 1, it seems that the data is being recieved by the robot, cause it makes a little noise on hiz buzzer (just like the last time).

Well first of all, i dont know if im sendig the right data. Im using this set of instructions lynxmotion.net/viewtopic.php?f=8&t=4924

And it does nothing, i’ve also tried with this program lynxmotion.net/viewtopic.php?f=8&t=5112 sending an Hex “FF” then waiting 2 ms and then sending the same instructions.

Any ideas? :neutral_face: :frowning:

Jejejeje forget it, it was a programming mistake, now its working :smiley:

God i love this project. :slight_smile: