How about an affordable 6 servo biped!

well, im back, and i started to modify the Hex code, and im stumped, heres a section of the code that i modified

[code]-----------Init SSC-32 with pulse offsets
serout p15,i38400,"#",LA,LA2,“po-67 #”,LK,LK2,“po-34 #”,LH,LH2,“po-40 #”, |
RA,RA2,“po34 #”,RK,RK2, “po-67 #”,RH,RH2,“po-79 #”, 13]

;SSC-32 -> H3 engine
gosub H3Init
LegUpShift = (LegUpShiftMin + LegUpShiftMax) / 2

;--------------------------------------------------------------------
;-------------Main loop
main
;DS2
gosub Ps2Query

if (DualShock(2).bit4 = 0) and LastButton(1).bit4 then	;Triangle Button test
	FlagOff = FlagOff ^ 1
	if FlagOff then
		Gosub InitPos
		Nap 3
		serout p15,i38400,"#",LA,LA2,"po-67 #",LK,LK2,"po-34 #",LH,LH2,"po-40 #", |
			RA,RA2,"po34 #",RK,RK2, "po-67 #",RH,RH2,"po-79 #", 13]
	else
		gosub H3Init
	endif
endif

if FlagOff then
	pause 165
	goto OffEnd
endif

if (DualShock(2).bit5 = 0) and LastButton(1).bit5 and (MovesDelai = 0) then	;Circle Button test
	gosub All1500
endif

if (DualShock(2).bit6 = 0) and LastButton(1).bit6 and (MovesDelai = 0) then	;Cross Button test
	gosub All1500
	gosub Ps2Query ;Ask PS2 pad to keep wireless communication on
	;Attack posture
	serout p15,i38400,"#",MRHH,MRHH2,"P1800#",MRHV,MRHV2,"P1700#",MRK,MRK2,"P1700#",MLHH,MLHH2,"P1200#", |
		MLHV,MLHV2,"P1300#",MLK,MLK2,"P1300T288",13]
	nap 4
	serout p15,i38400,"#",MRHV,MRHV2,"P1500#",MRK,MRK2,"P1500#",MLHV,MLHV2,"P1500#",MLK,MLK2,"P1500T288",13]
	nap 4
	gosub Ps2Query ;Ask PS2 pad to keep wireless communication on
	serout p15,i38400,"#",RRHV,RRHV2,"P1800#",RRK,RRK2,"P1800#",MRHV,MRHV2,"P1400#",MRK,MRK2,"P1400#", |
		FRHH,FRHH2,"P1800#",FRHV,FRHV2,"P2100#",RLHV,RLHV2,"P1200#",RLK,RLK2,"P1200#", |
		MLHV,MLHV2,"P1600#",MLK,MLK2,"P1600#",FLHH,FLHH2,"P1200#",FLHV,FLHV2,"P900T288",13]
	nap 4
	for Index = 1 to 10
		serout p15,i38400,"#",FRHH,FRHH2,"P1700#",FRHV,FRHV2,"P2000#",FRK,FRK2,"P1600#", |
			FLHH,FLHH2,"P1300#",FLHV,FLHV2,"P900#",FLK,FLK2,"P1600T144",13]
		nap 3
		serout p15,i38400,"#",FRHH,FRHH2,"P1800#",FRHV,FRHV2,"P2100#",FRK,FRK2,"P1400#", |
			FLHH,FLHH2,"P1200#",FLHV,FLHV2,"P1000#",FLK,FLK2,"P1400T144",13]
		nap 3
		gosub Ps2Query ;Ask PS2 pad to keep wireless communication on
	next
	serout p15,i38400,"#",FRHH,FRHH2,"P1500#",FRHV,FRHV2,"P2100#",FRK,FRK2,"P1500#", |
		FLHH,FLHH2,"P1500#",FLHV,FLHV2,"P900#",FLK,FLK2,"P1500T288",13]
	nap 4
	serout p15,i38400,"#",RRHV,RRHV2,"P1500#",RRK,RRK2,"P1500#",MRHV,MRHV2,"P1500#",MRK,MRK2,"P1500#",FRHV,FRHV2,"P1500#", |
		MLHV,MLHV2,"P1500#",MLK,MLK2,"P1500#",FLHV,FLHV2,"P1500#",RLHV,RLHV2,"P1500#",RLK,RLK2,"P1500T576",13]
	nap 5
	gosub Ps2Query ;Ask PS2 pad to keep wireless communication on
	serout p15,i38400,"#",MRHH,MRHH2,"P1500#",MRHV,MRHV2,"P1700#",MRK,MRK2,"P1700#", |
		MLHH,MLHH2,"P1500#",MLHV,MLHV2,"P1300#",MLK,MLK2,"P1300T288",13]
	nap 4
	serout p15,i38400,"#",MRHV,MRHV2,"P1500#",MRK,MRK2,"P1500#",MLHV,MLHV2,"P1500#",MLK,MLK2,"P1500T288",13]
	nap 4
	gosub Ps2Query ;Ask PS2 pad to keep wireless communication on
endif[/code]

now i changed the variables and constants to accomadate the BRAT instead of the hex, but i dont understand some of it, like in the “crossbutton test” like you’ll see in the in the above code, how do i get the servos into that postion? is it like a “throw in a number and see wat it looks like and it if doesn’t meet what you are doing then change the number and see wat it looks like then, if it doesn’t” ect, ect, or is it reverse kinetics?

i know, im being vauge, but im not seeing wat most of this code means :blush:, i get the normal jist of it, idk, maybe ill just try to make my own simpler code, tackling a button on the PS2 controller at a time :laughing:

itd help with my programming skills too

That looks good. Are u modifyin it BTW??

yes im modifying it, if you look under the “Trinangle Test” you will see this:

serout p15,i38400,"#",LA,LA2,"po-67 #",LK,LK2,"po-34 #",LH,LH2,"po-40 #", | RA,RA2,"po34 #",RK,RK2, "po-67 #",RH,RH2,"po-79 #", 13]

there i took the servo pins and stuff for the hex and i made it so it would work with the BRAT, the LA stand for Left Ankle, LK for Left Knee and so on and so on

OoO, thats neat. post the final product when your done, i think some biped guys would be interested in it.

o yea, if i get done, im waiting consult from some of the higher up dudes in the forum, need help with the code :confused:, i basically get it, but not too well, need to learn how the servos get their position, whether its reverse kinetics or just sending different pulses to the servo, o yea, also i cant get the Basic Atom to connect to the PC it wont let me, can anyone help me with that?

any suggestions welcome

yay i managed to get my BRAT to do its first step (forgot to get my camera…), the next thing you know hel be in colege :laughing: (cant wait)

but i can I create a prject, because all the little plus sings in the bottom (for the project, sequence and steps) when I click on them they say it cannot perform the operation cause its on a closed data set, what does that mean and how do i get it to work?

Sam, thanks

cool after uyninstaling it rebooting and reinstaling two time it works! but i have to go recahrge by batteries :frowning:

but now I do sequences and steps to a program wich means I dont have tyoà à o make one servo advance at a time 8)

For anyone else interested in what the upgrade kit is, I got an official reply from Beth via email. Beth, sorry if I am not allowed to post the contents of an email. Feel free to edit and remove.

Me: What is the Upgrade Pack exactly?
Beth: It is a set of 6 servos. When you purchase the upgrade pack, we remove the servos that normally ship with the kit and replace them with the stronger servos for the upgrade pack.
The upgrade pack only costs the difference between the 422 servos that come with the BRAT kit and the stronger servos that come in the upgrade packs.

Me: By “Requires the purchase of a BRAT kit.” it means that you MUST order a BRAT in order to buy the upgrade?
Beth: Correct.

Me: Is there a limit to the number of Upgrade kits to buy? Does the number of Upgrade kits bought have to equal the number of BRAT kits bought?
Beth: Well, you can’t order more upgrade packs than BRAT kits. This is because the upgrade packs replace the servos in the BRAT kits.

In other words, they just ship the better servos instead of the servos it comes with.

ok, thats waht I thought, thanks for us who are to lasy to ask :laughing:

Sam

too lazy to ask??? haha sounds like robodude666, becuase originally he wanted me to ask!! :laughing:

well when I bought my BRAT these upgrade kits were not availble, so it dosent realy bodder me not to know, but useful to know.

Sam

Yup, you can buy a new brat with the upgrade kit and have 6 pretty nice servos and save some good $.

Oh and, I sent out the email to Beth thursday morning and I asked you incase you knew thursday night so :stuck_out_tongue:

-robodude666

Sorry for double post.

I am thinking of now just getting a BRAT and 5645 servos… Then I will need to buy 6 less servos later on when I start work on my humanoid.

I got a question though. Says here on the site that these 5645 servos are 90 degrees and you need a fancy $155 programmer to make them 180 degrees. So my question is this: Do I need the servos to be 180 degrees to use them in a biped/humanoid? I don’t want to spend $155 on a programmer I will use only once or twice.

Thanks,
robodude666

They’re fine just the way they come from the factory. I’ve been playing around with servo speeds and deadband but only because a friend loaned me his programmer.

I’m glad you’ve finally seen the light! :wink:

Cheers, Harry

Um… 5645 servos right out of the box will only do +/- 45° rotation. Here is a tutorial on changing the range to +/- 90°…

lynxmotion.com/images/html/build100.htm

I know. I saw it. I am saying that, do I need to have them to be 180 degrees to use? Because I don’t want to buy a $155 programmer and use it only once or twice.

Cant the ssc-32 program software do that???

It’s totally up to you. If you only want the robot to walk then you can probably get away with only 90° range. If you want the robot to get up from laying down, probably not. I don’t think the legs will have enough range to make the movements required to get up.

Um… no…

I just did a factory default reset on my 5645s with the programmer and the servos all move the full range of motion required by BRAT. They are definitely moving more than 90 degrees.