NEED HELP with StampBug 2 kit (#5-953)
RYAN'S dISTRICT
Posts: 12
hello i just had StampBug 2 kit (#5-953) on my birthday
i built the bug i uploaded the software ( code) from my pc on it and it started walking
but please can you modify for me the default code ( or a new one) so that i make it do anything other than walking in that manner
it can be dancing making tricks and such stuff or a nice walking way
Please help me guys
i built the bug i uploaded the software ( code) from my pc on it and it started walking
but please can you modify for me the default code ( or a new one) so that i make it do anything other than walking in that manner
it can be dancing making tricks and such stuff or a nice walking way
Please help me guys
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
plz help me
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
1+1=10
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
(http://www.milinst.com )
It's a Hexapod-type(6-legged) robot with an OEM BS2 built into it, if I'm not mistaken.
While I doubt Parallax is supporting it, the PBasic manuals downloadable from Parallax and all their other freebies should still be valid for the StampBug.
So, I'll just congratulate you on taking the first step on the road to learning to program, then point you to these pages:
http://www.parallax.com/html_pages/downloads/basicstamps/documentation_basic_stamp.asp
Here you download the Basic Stamp Manual.
http://www.parallax.com/html_pages/downloads/software/software_basic_stamp.asp
Here you download the latest version of the Editor.
http://www.parallax.com/html_pages/downloads/sw/sw.asp
And the StampWorks documents will also teach you a lot.
And finally, you should hang out in the 'Robotics' part of the forum here.
For others interested in how it looks and the program listing,
http://www.robotwinkel.nl/pdf/Manuals/Lopende_Robots/bug2.pdf
That is the User manual.
Isn't Google fun?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't visit my new website...
Please can u tell me weather there is a style of moving that bug other than normal walking by useing the code with the floppy disk that i had with the bug or i can be creative in the bug moves
If there is premade codes ( other than walking) that will be great if u give me a link where i can find them
The commands needed to change how it walks should be in the program source.
Could you post it as an attachment here?
(but don't paste it into a post. It'll jsut end up garbled)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't visit my new website...
The trick here is the subroutines. Lets take a look at 'forward':
Here it orders it to move the middle servo, then calls a subrutine, 'finished', to wait for it to finish that movement.
And now it ordered the other two servos to move, then wait for it to finish.
Another set of servo movements.
If you want to see more clearly what they do, insert a PAUSE command in the places where I broke up the code.
If you want it to walk with a different gait you'll need to change the order and direction the servos move. (It probably moves in the optimal gait already, though)
Also, the 'finished' rutine checks the feelers to see if they are touching something, and if so decides whether or not to call one of the other rutines.
The easiest changes that can be done is to set the speed to something else, which can be done by setting the 'speed' variable either higher or lower(a max of 15).
Changes that can be done in the 'finished' rutine, f.example, is to add a photodiode to the system, then add a test in this rutine.
Then you could make it speed up in strong light, and slow down in low light/darkness?
But before you do that I suggest you read the documents I pointed you towards.
Just be careful not to use I/O-pins 0 to 7 when you experiment, as these are already taken by the servo controls.
And of course, 'make haste slowly'.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't visit my new website...
"
and where can i change the speed ?
To set another speed, see this piece of code in the first third of the source code:
Also, the 'feeler_flag' variable...
If it's set to '0' it will ignore the sensors and just barge on like a pint-sized ramrod...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't visit my new website...
i installed the default code now i use the softeware and click run and it will overwrite the data on the bug ?
It's just that you may not want it to suddenly jump across the table when you were trying to get a LED to blink...
Yes, using RUN on the PC will overwrite the data on the bug.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't visit my new website...
I told you which variable to change, and even posted the section of code where you should do it.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't visit my new website...