Please Help Me!!!!
Archiver
Posts: 46,084
Again.....Group,
This is the third time I have asked this, and I would have
gave up if I did not know that SOMEONE could help me out here! All I am
trying to do is hook up 4 bump switches to A BSX with two Futaba 148 servos.
I can not seem to get the code right for it. I have got it to do any BUT go
left or right when my robot hits a wall!! If any body knows ANY THING PLEASE
send it my way.... I will for ever appreciate it if some one could clue me
in on this!!?? Thanks (IF some one replys), in advance (again). -Alex Burke
ajb_robotics@h...
AJB Robotics
WF Illinois
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
This is the third time I have asked this, and I would have
gave up if I did not know that SOMEONE could help me out here! All I am
trying to do is hook up 4 bump switches to A BSX with two Futaba 148 servos.
I can not seem to get the code right for it. I have got it to do any BUT go
left or right when my robot hits a wall!! If any body knows ANY THING PLEASE
send it my way.... I will for ever appreciate it if some one could clue me
in on this!!?? Thanks (IF some one replys), in advance (again). -Alex Burke
ajb_robotics@h...
AJB Robotics
WF Illinois
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
Comments
I'd suggest you look at the robotics code posted on the
www.stampsinclass.com site. They use IR sensors to do the same thing. Your
code should be very similar since the IR sensors they use have digital
outputs.
When faced with a problem, the best thing to do is divide it into pieces:
1) Can you spin the servos?
2) Are you detecting the switches (use DEBUG to see)
3) Put it all together.
If you'd post your code, my guess is someone could spot your problem. You
may also have a hardware problem. Remember:
If the servos are back to back, you spin them in opposite directions to get
forward or backward motion. Spinning them the same direction gets a turn.
Make sure you are not resetting the Stamp when you turn the Servo on. If you
have an LED hooked up to an output pin (say P15) try:
TOGGLE 15
PAUSE 1000
TOGGLE 15
at the top of your code. Then if that light blinks, you know you did a
reset.
Regards,
Al Williams
AWC
* NEW: 8 channels of pulse output for servo control, PWM, or any pulse
application:
http://www.al-williams.com/awce/pak8.htm
>
Original Message
> From: Alex Burke [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=ETRFNH26rvMzI6-WKMLTOkfWWSDq-O-RlL8BDII2Ddb6XNFouUVn77po3fQL0sn1j5rUSWezyVhEq6RM0KQ]ajb_robotics@h...[/url
> Sent: Thursday, May 25, 2000 2:40 PM
> To: basicstamps@egroups.com
> Subject: [noparse][[/noparse]basicstamps]Please Help Me!!!!
>
>
> Again.....Group,
>
> This is the third time I have asked this, and I
> would have
> gave up if I did not know that SOMEONE could help me out here! All I am
> trying to do is hook up 4 bump switches to A BSX with two Futaba
> 148 servos.
> I can not seem to get the code right for it. I have got it to do
> any BUT go
> left or right when my robot hits a wall!! If any body knows ANY
> THING PLEASE
> send it my way.... I will for ever appreciate it if some one
> could clue me
> in on this!!?? Thanks (IF some one replys), in advance (again).
> -Alex Burke
>
> ajb_robotics@h...
> AJB Robotics
> WF Illinois
>
>
>
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
>
>