Need help working with Robotic Studio and Basic Stamp
Jason Prischak
Posts: 4
I am new to robotics and could use some help. I have completed all of the tutorials in the Basic Stamp book and began to work with the robotic studio stuff. I have completed all of the tutorials in the pdf from parallax.
I am now trying to write my own program that works with these basics. Does anybody know of any other·tutorials that would explain the code on the basic stamp side.
I am tring to understand how when you use a motor contract on the csharp side it knows that it is connected to pin12 or when you use the bumpers it knows that it is pin6 and so on. I have looked throught the code and read the comments in the boebotcontrolformsrs.bs2 but am still have trouble.
·
I am now trying to write my own program that works with these basics. Does anybody know of any other·tutorials that would explain the code on the basic stamp side.
I am tring to understand how when you use a motor contract on the csharp side it knows that it is connected to pin12 or when you use the bumpers it knows that it is pin6 and so on. I have looked throught the code and read the comments in the boebotcontrolformsrs.bs2 but am still have trouble.
·
Comments
The problem that i am having is that in the C# code· to go forward you call motor.Left and then give it a speed and then motor.right and give it a speed. I am tring to figure out where the conversion from motor.right is given to pin12.
I hope that i am explaining this well enough for you.
Thanks
I'm not sure I understand your question 100% and I know nothing about C# coding, but still I suspect I have the answer for you. Said (perhaps) differently, here is the question I'm going to answer:
Where is the logical connection made between the right-hand servo and Stamp Pin Port 12?
I suspect you feel it's probably in the C# program, which it is not. The logical connection between the right-hand servo and Stamp Pin Port 12 is HARD CODED in the supplied PBASIC Stamp program, as you will note in the two PULSOUT commands from the beginning of that PBASIC Stamp program below:
DO
Resume: ' If Message not rcvd, try again
IF IN5 = 0 THEN Reset ' EB500 disconnected?
PULSOUT 13, tLeft ' Servo control pulses
PULSOUT 12, tRight
SERIN 0, 84, 5, Resume, ' Get next command
[noparse][[/noparse]WAITSTR buffer \ 2, buffer2,
buffer3, buffer4]
Regards,
Bruce Bates
However, if you attach the code samples, I (or others) can take a look at it.