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.
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?
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!
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?
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
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).
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.