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

Don't get frustrated, but I have more questions.

Hitec robotics including ROBONOVA humanoid, HSR-8498HB servos, MR C-3024 Controllers and RoboBasic
14 postsPage 1 of 1
14 postsPage 1 of 1

Don't get frustrated, but I have more questions.

Post by kevdemed » Wed May 16, 2007 7:36 am

Post by kevdemed
Wed May 16, 2007 7:36 am

Simple question.
What are the steps for making a custom program?
what steps do I take to make my own move, and put it into the basic program file with it actually working?
What steps do I take for using ROBOREMOCON, Servo motor realtime control,
Roboscrypt, and the one were you pose your nova by hand?
And finally, the biggest quetion of all.
How do I understand the programming language and how do I know were to place certain words, and how do I know what it's going to do?
Example, DIR G6A 1'0'1'1'0.....
Im having a real hard time figuring this out.
Please dumb it down to the extreme!

Thank's

KEVDEMED

P.S. What web site can I order PH/T 2X4mm screws?
I cannot find any!
Simple question.
What are the steps for making a custom program?
what steps do I take to make my own move, and put it into the basic program file with it actually working?
What steps do I take for using ROBOREMOCON, Servo motor realtime control,
Roboscrypt, and the one were you pose your nova by hand?
And finally, the biggest quetion of all.
How do I understand the programming language and how do I know were to place certain words, and how do I know what it's going to do?
Example, DIR G6A 1'0'1'1'0.....
Im having a real hard time figuring this out.
Please dumb it down to the extreme!

Thank's

KEVDEMED

P.S. What web site can I order PH/T 2X4mm screws?
I cannot find any!
kevdemed
Savvy Roboteer
Savvy Roboteer
Posts: 63
Joined: Sat Apr 21, 2007 3:00 am
Location: california

Post by Humanoido » Wed May 16, 2007 11:55 am

Post by Humanoido
Wed May 16, 2007 11:55 am

Check out my free code for beginners at
http://robosavvy.com/forum/viewtopic.php?t=1336

In it, I've stripped away all the unnecessary code so what you can make is one move, and get some idea what's happening to accomplish that. I always use lots of comments with my code, so it will be helpful. You'll know what the code is doing. Plus, I put in page number references to the manual so you can gather more understanding.

For using the remocon, there's good information in the RN manual. All I did was load in the template and start using the remocon. Then I modified the main template and started making my own.

There's a posting by dirty roboto that tells you how to pose the robot and capture the motion. Or you can just follow the manual. It's very simple.

To understand the language, study the RoboBASIC manual. You could also have a beginners manual for BASIC if you are just starting out. There's lots of information here on the robosavvy forums. Plus you can study other posted programs and learn how they work. Hitec has also posted the single moves at their web site.

You can use the catch and play features to keep any programming to a minimum.

And then read all the posts for beginners, and do forum searches on the topics that interest you. That should get you started.

humanoido
Check out my free code for beginners at
http://robosavvy.com/forum/viewtopic.php?t=1336

In it, I've stripped away all the unnecessary code so what you can make is one move, and get some idea what's happening to accomplish that. I always use lots of comments with my code, so it will be helpful. You'll know what the code is doing. Plus, I put in page number references to the manual so you can gather more understanding.

For using the remocon, there's good information in the RN manual. All I did was load in the template and start using the remocon. Then I modified the main template and started making my own.

There's a posting by dirty roboto that tells you how to pose the robot and capture the motion. Or you can just follow the manual. It's very simple.

To understand the language, study the RoboBASIC manual. You could also have a beginners manual for BASIC if you are just starting out. There's lots of information here on the robosavvy forums. Plus you can study other posted programs and learn how they work. Hitec has also posted the single moves at their web site.

You can use the catch and play features to keep any programming to a minimum.

And then read all the posts for beginners, and do forum searches on the topics that interest you. That should get you started.

humanoido
Humanoido
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 574
Joined: Tue Dec 05, 2006 1:00 am
Location: Deep in the Heart of Asia

Post by Humanoido » Wed May 16, 2007 12:04 pm

Post by Humanoido
Wed May 16, 2007 12:04 pm

kevdemed Wrote
P.S. What web site can I order PH/T 2X4mm screws?
I cannot find any!

You can check my posting. Topic is Tiny Screws.
As reported, there are two sources for the screws and bolts:

J & M Fasteners
181-B Mayhew Way
Walnut Creek, CA 94597
Ph#800-727-8698
Fax#(925)932-8444

and

L & E Fasteners

Be sure and contact first to check availability.
I hope this is helpful.

humanoido
kevdemed Wrote
P.S. What web site can I order PH/T 2X4mm screws?
I cannot find any!

You can check my posting. Topic is Tiny Screws.
As reported, there are two sources for the screws and bolts:

J & M Fasteners
181-B Mayhew Way
Walnut Creek, CA 94597
Ph#800-727-8698
Fax#(925)932-8444

and

L & E Fasteners

Be sure and contact first to check availability.
I hope this is helpful.

humanoido
Humanoido
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 574
Joined: Tue Dec 05, 2006 1:00 am
Location: Deep in the Heart of Asia

Post by DirtyRoboto » Wed May 16, 2007 5:08 pm

Post by DirtyRoboto
Wed May 16, 2007 5:08 pm

Sorry KEVDEMED, but I did not see your age on your profile. So, how old are you?

A good place too start learning robobasic is to put the CD in and look at the Robobasic.PDF file.
This describes all of the commands and the correct syntax, giving examples throughout.

Marcus
Sorry KEVDEMED, but I did not see your age on your profile. So, how old are you?

A good place too start learning robobasic is to put the CD in and look at the Robobasic.PDF file.
This describes all of the commands and the correct syntax, giving examples throughout.

Marcus
In servo's we trust!
DirtyRoboto
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 412
Joined: Tue Sep 19, 2006 1:00 am
Location: London

Post by zapod » Wed May 16, 2007 8:48 pm

Post by zapod
Wed May 16, 2007 8:48 pm

The trick is to be patient. Do as others have suggested and look at program examples found on the robosavvy site.

If you have never programmed before, you must start by thinking logically. The computer/robot will only do what you tell it. In the sample programs, closely look at each line of code and try to figure out what it's doing there. Refer to the RN manual for guidance on what an instruction does.

Try to follow the flow of the program - lines of code are executed from the top - GOTO and GOSUB instructions redirect the flow to other parts of the program. FOR and NEXT are used as a way of controlling repetitive loops, something computers are very good at.

I have a blank template program I use as a base for new moves. I'll dig it out (need to transfer it to the Mac for posting) and explain how to implement it if it helps.
The trick is to be patient. Do as others have suggested and look at program examples found on the robosavvy site.

If you have never programmed before, you must start by thinking logically. The computer/robot will only do what you tell it. In the sample programs, closely look at each line of code and try to figure out what it's doing there. Refer to the RN manual for guidance on what an instruction does.

Try to follow the flow of the program - lines of code are executed from the top - GOTO and GOSUB instructions redirect the flow to other parts of the program. FOR and NEXT are used as a way of controlling repetitive loops, something computers are very good at.

I have a blank template program I use as a base for new moves. I'll dig it out (need to transfer it to the Mac for posting) and explain how to implement it if it helps.
zapod
Robot Builder
Robot Builder
User avatar
Posts: 9
Joined: Sat Dec 09, 2006 1:00 am

Post by kevdemed » Thu May 17, 2007 7:28 am

Post by kevdemed
Thu May 17, 2007 7:28 am

WOW!
You guy's are good!
And I am 21.
Thank you all for the help!
Hopefully, I will eventually start helping other people, instead of them helping me!
By the way, does anyone here own more than one robot?
Just curious!

KEVDEMED
WOW!
You guy's are good!
And I am 21.
Thank you all for the help!
Hopefully, I will eventually start helping other people, instead of them helping me!
By the way, does anyone here own more than one robot?
Just curious!

KEVDEMED
kevdemed
Savvy Roboteer
Savvy Roboteer
Posts: 63
Joined: Sat Apr 21, 2007 3:00 am
Location: california

Post by Pev » Thu May 17, 2007 8:08 am

Post by Pev
Thu May 17, 2007 8:08 am

HI,

Well I have a RN-1 and a Bioloid made as a humanoid, but they compliment a family that include a couple of hexapods, a tracked robot, a couple of BEAM robots and an Aibo. PLus lots of bits and pieces like processors, sensors etc.

You've been warned, once you get this bug it bites (mind you that little lot has been accumulated over a good 10 years)

Pev
HI,

Well I have a RN-1 and a Bioloid made as a humanoid, but they compliment a family that include a couple of hexapods, a tracked robot, a couple of BEAM robots and an Aibo. PLus lots of bits and pieces like processors, sensors etc.

You've been warned, once you get this bug it bites (mind you that little lot has been accumulated over a good 10 years)

Pev
Carl
-------------------------
www.alt-view.co.uk
Pev
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 547
Joined: Sun Feb 26, 2006 1:00 am
Location: UK

Post by zapod » Thu May 17, 2007 6:14 pm

Post by zapod
Thu May 17, 2007 6:14 pm

Not sure if an iCybie (http://www.i-cybie.com/) counts as a robot or a toy - he's not programmable as such but is reasonably autonomous and can ignore your voice commands just like a real dog!
Not sure if an iCybie (http://www.i-cybie.com/) counts as a robot or a toy - he's not programmable as such but is reasonably autonomous and can ignore your voice commands just like a real dog!
zapod
Robot Builder
Robot Builder
User avatar
Posts: 9
Joined: Sat Dec 09, 2006 1:00 am

Post by zapod » Thu May 17, 2007 8:13 pm

Post by zapod
Thu May 17, 2007 8:13 pm

Here is the code I promised earlier. It's very simple. I cut down the supplied template code, removed the voltage check loop (because I don't have that circuit installed in the RN), then added a simple arm wave motion with captured moves.

I kept the standard_pose code because it's useful to have RN stand upright again after a move goes horribly wrong, without switching him off and on.

So, the program basically loops around Main and Main1, checking for a keypress on the remote. Variables A and RR carry the remote code. A value of zero means no key pressed - so repeat the loop.

Press 1 on the remote, the program jumps to K1, which plays a note then jumps again to the wave routine. After the wave routine, the program returns to the next instruction in K1, GOTO main_exit, which (after resetting the RR variable to 0) returns the program to looping round checking the input from the remote.

To do your own move, remove the code between wave_right_arm and RETURN, go into capture mode in Robobasic, move a limb or two, then click 'insert move'.

Compile and send your move to the RN, press 1 on the remote and see RN do what he's told!

From here you can build ever more complex routines.

Have fun!

Example code:

GOTO AUTO
FILL 255,10000

DIM RR AS BYTE
DIM A AS BYTE
DIM A16 AS BYTE
DIM A26 AS BYTE
DIM n AS INTEGER

CONST ID = 0 ' 1:0, 2:32, 3:64, 4:96,

'== Action command check (50 - 82)
'IF RR > 50 AND RR < 83 THEN GOTO action_proc

RR = 0

PTP SETON
PTP ALLON

'== motor diretion setting ======================
DIR G6A,1,0,0,1,0,0
DIR G6B,1,1,1,1,1,1
DIR G6C,0,0,0,0,0,0
DIR G6D,0,1,1,0,1,0


'== motor start position read ===================
TEMPO 230
MUSIC "CDE"
GETMOTORSET G24,1,1,1,1,1,0,1,1,1,0,0,0,1,1,1,0,0,0,1,1,1,1,1,0
'== motor power on =============================
SPEED 5
MOTOR G24
GOSUB standard_pose
'================================================
MAIN:
'-----------------------------
IF RR = 0 THEN GOTO MAIN1

ON RR GOTO MAIN,K1,K2
GOTO main_exit
'-----------------------------
MAIN1:
A = REMOCON(1)
A = A - ID
ON A GOTO MAIN,K1,K2
GOTO MAIN
main_exit:
RR = 0
GOTO MAIN
standard_pose:
SPEED 5
MOVE G6A, 100, 76, 145, 93, 100, 100
MOVE G6D, 100, 76, 145, 93, 100, 100
MOVE G6B, 100, 30, 80, 100, 100, 100
MOVE G6C, 100, 30, 80, 100, 100, 100
WAIT
RETURN
'================================================
k1:
TEMPO 230
MUSIC "D"
GOSUB wave_right_arm
GOTO main_exit
k2:
TEMPO 230
MUSIC "D"
GOSUB standard_pose
GOTO main_exit
wave_right_arm:
SPEED 5
MOVE G6C,102, 125, 130, 100, 100, 100
SPEED 7
FOR n = 1 TO 5
MOVE G6C,103, 126, 169, 100, 100, 100
MOVE G6C,103, 126, 130, 100, 100, 100
NEXT n
RETURN
Here is the code I promised earlier. It's very simple. I cut down the supplied template code, removed the voltage check loop (because I don't have that circuit installed in the RN), then added a simple arm wave motion with captured moves.

I kept the standard_pose code because it's useful to have RN stand upright again after a move goes horribly wrong, without switching him off and on.

So, the program basically loops around Main and Main1, checking for a keypress on the remote. Variables A and RR carry the remote code. A value of zero means no key pressed - so repeat the loop.

Press 1 on the remote, the program jumps to K1, which plays a note then jumps again to the wave routine. After the wave routine, the program returns to the next instruction in K1, GOTO main_exit, which (after resetting the RR variable to 0) returns the program to looping round checking the input from the remote.

To do your own move, remove the code between wave_right_arm and RETURN, go into capture mode in Robobasic, move a limb or two, then click 'insert move'.

Compile and send your move to the RN, press 1 on the remote and see RN do what he's told!

From here you can build ever more complex routines.

Have fun!

Example code:

GOTO AUTO
FILL 255,10000

DIM RR AS BYTE
DIM A AS BYTE
DIM A16 AS BYTE
DIM A26 AS BYTE
DIM n AS INTEGER

CONST ID = 0 ' 1:0, 2:32, 3:64, 4:96,

'== Action command check (50 - 82)
'IF RR > 50 AND RR < 83 THEN GOTO action_proc

RR = 0

PTP SETON
PTP ALLON

'== motor diretion setting ======================
DIR G6A,1,0,0,1,0,0
DIR G6B,1,1,1,1,1,1
DIR G6C,0,0,0,0,0,0
DIR G6D,0,1,1,0,1,0


'== motor start position read ===================
TEMPO 230
MUSIC "CDE"
GETMOTORSET G24,1,1,1,1,1,0,1,1,1,0,0,0,1,1,1,0,0,0,1,1,1,1,1,0
'== motor power on =============================
SPEED 5
MOTOR G24
GOSUB standard_pose
'================================================
MAIN:
'-----------------------------
IF RR = 0 THEN GOTO MAIN1

ON RR GOTO MAIN,K1,K2
GOTO main_exit
'-----------------------------
MAIN1:
A = REMOCON(1)
A = A - ID
ON A GOTO MAIN,K1,K2
GOTO MAIN
main_exit:
RR = 0
GOTO MAIN
standard_pose:
SPEED 5
MOVE G6A, 100, 76, 145, 93, 100, 100
MOVE G6D, 100, 76, 145, 93, 100, 100
MOVE G6B, 100, 30, 80, 100, 100, 100
MOVE G6C, 100, 30, 80, 100, 100, 100
WAIT
RETURN
'================================================
k1:
TEMPO 230
MUSIC "D"
GOSUB wave_right_arm
GOTO main_exit
k2:
TEMPO 230
MUSIC "D"
GOSUB standard_pose
GOTO main_exit
wave_right_arm:
SPEED 5
MOVE G6C,102, 125, 130, 100, 100, 100
SPEED 7
FOR n = 1 TO 5
MOVE G6C,103, 126, 169, 100, 100, 100
MOVE G6C,103, 126, 130, 100, 100, 100
NEXT n
RETURN
zapod
Robot Builder
Robot Builder
User avatar
Posts: 9
Joined: Sat Dec 09, 2006 1:00 am

Post by kevdemed » Sun May 20, 2007 10:09 am

Post by kevdemed
Sun May 20, 2007 10:09 am

Thank's for the code Zapod.
Pev....10 years?!
How did you learn about robotics?
Thank's for the code Zapod.
Pev....10 years?!
How did you learn about robotics?
kevdemed
Savvy Roboteer
Savvy Roboteer
Posts: 63
Joined: Sat Apr 21, 2007 3:00 am
Location: california

Post by kevdemed » Sun May 20, 2007 10:16 am

Post by kevdemed
Sun May 20, 2007 10:16 am

Thank's for the screw info Humanoido.
Unfortunately I do not know what you did on your video.
GREAT EDITING THOUGH!
Can you enlighten me on what you did in the video?


KEVDEMED
Thank's for the screw info Humanoido.
Unfortunately I do not know what you did on your video.
GREAT EDITING THOUGH!
Can you enlighten me on what you did in the video?


KEVDEMED
kevdemed
Savvy Roboteer
Savvy Roboteer
Posts: 63
Joined: Sat Apr 21, 2007 3:00 am
Location: california

Post by Pev » Sun May 20, 2007 2:17 pm

Post by Pev
Sun May 20, 2007 2:17 pm

kevdemed wrote:Thank's for the code Zapod.
Pev....10 years?!
How did you learn about robotics?


Got interested when I was about 17 (am in my 40's now). Built a box to switch relays on an Atari 400 computer - wouldn't call it robotics. Then built a maplins interface card for a PC about 7 or 8 years later - was ISA bus and programmed I/O with 32 switchable lines and no sensor input - again hardly robotics.

Then in my late 20's early 30's started to see kits like the basic stampbug hexapod and the Basic Stamp 1 controller. That was it I was hooked, StampBug, Hexapod from Linksmotion, Aibo you name it.

Tried to build a Biped without any knowledge about 4 years ago and failed completely . Still a lot of what I thought seems to have been right as my leg design wasn't far off a RN-1, servos I had were way too weak and materials way to heavy.

So be warned - once you're bitten by the bug it can get costly :lol:

Couple of pics of the older robots

Image
Image

Sorry about the quality they are off my phone

Pev
kevdemed wrote:Thank's for the code Zapod.
Pev....10 years?!
How did you learn about robotics?


Got interested when I was about 17 (am in my 40's now). Built a box to switch relays on an Atari 400 computer - wouldn't call it robotics. Then built a maplins interface card for a PC about 7 or 8 years later - was ISA bus and programmed I/O with 32 switchable lines and no sensor input - again hardly robotics.

Then in my late 20's early 30's started to see kits like the basic stampbug hexapod and the Basic Stamp 1 controller. That was it I was hooked, StampBug, Hexapod from Linksmotion, Aibo you name it.

Tried to build a Biped without any knowledge about 4 years ago and failed completely . Still a lot of what I thought seems to have been right as my leg design wasn't far off a RN-1, servos I had were way too weak and materials way to heavy.

So be warned - once you're bitten by the bug it can get costly :lol:

Couple of pics of the older robots

Image
Image

Sorry about the quality they are off my phone

Pev
Carl
-------------------------
www.alt-view.co.uk
Pev
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 547
Joined: Sun Feb 26, 2006 1:00 am
Location: UK

Post by Dewey » Sun May 20, 2007 4:04 pm

Post by Dewey
Sun May 20, 2007 4:04 pm

Pev

Like you I have a number of robot critters.

More carefull than you, not one of my bugs has bite me!

:)
Pev

Like you I have a number of robot critters.

More carefull than you, not one of my bugs has bite me!

:)
Dewey
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 78
Joined: Sat May 12, 2007 1:17 pm
Location: Worcester UK

Post by Pev » Sun May 20, 2007 6:42 pm

Post by Pev
Sun May 20, 2007 6:42 pm

Dewey wrote:Pev

Like you I have a number of robot critters.

More carefull than you, not one of my bugs has bite me!

:)


:lol: nice one
Dewey wrote:Pev

Like you I have a number of robot critters.

More carefull than you, not one of my bugs has bite me!

:)


:lol: nice one
Carl
-------------------------
www.alt-view.co.uk
Pev
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 547
Joined: Sun Feb 26, 2006 1:00 am
Location: UK


14 postsPage 1 of 1
14 postsPage 1 of 1