Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Technical Discussion (http://www.chiefdelphi.com/forums/forumdisplay.php?f=22)
-   -   Robot Digital Input (http://www.chiefdelphi.com/forums/showthread.php?t=16591)

Mike Norton 16-01-2003 13:02

Robot Digital Input
 
I set up four linits switches

The problem I am having is stopping the forward motion of the motors. I wired up pin 4,5,18,and 19 all to ground which were 3,6,17,and 20

I am reading 4.92 volts at the switches but when the switches close the motor still works in the forward or backward direction.


I have two motors that I wanted to stop. two limit switches per motor.

am I reading the reference guide right.

I am using the joystick in port 3 and joy stick in port 4 on the operator Interface


Any help would be great this is the first year we are using limits switches ( 8 years without )

rbayer 16-01-2003 13:30

Electrically, I think you are doing the right thing in terms of pins. However, you shouldn't be reading +5 anywhere. Are you sure you wired this stuff into the digital inputs port on the RC and not the analog? It looks like that may be the problem as pins 3,6,17,and 20 all carry +5V on the analog port. If you move your connector to the digital input port, it should work.

crazycliffy 16-01-2003 13:40

I also believe it is software...

so make sure the software variables in the PBASIC
code gets changed. Because below means that
the default PBASIC code will do the following:

the Full-Size RC Reference Guide says:
for
Pin 4 "PWM 3 won't go forward if rc_sw5 is ON"
Pin 5 "PWM 3 won't go forward if rc_sw6 is ON"
Pin 18 "PWM 4 won't go forward if rc_sw7 is ON"
Pin 19 "PWM 4 won't go forward if rc_sw8 is ON"

Dave Flowerday 16-01-2003 14:03

Quote:

Originally posted by rbayer
However, you shouldn't be reading +5 anywhere.
If he was reading the voltage at an unconnected (or switch open) digital input pin he would read +5V due to the internal pullup resistor.

Mike Norton 16-01-2003 14:04

It is on the digital side and I am only going off the default.


Plus the light will not go on. pin 8 on the relay should turn the light on.

I can put the light on pin 1 of the relay and pull the trigger on the joy stick and the light will go on.

Mike Norton 16-01-2003 14:31

the problem was in the robot controller

I replaced with last year controller and it works great


All times are GMT -5. The time now is 17:32.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi