Hello,
I have a controller box that sends signals to a motorized axis platform. This "platform" moves up and down until it hits a mechanical limit switch and then stops moving in that direction. It has a 9 pin Dsub and I mapped out where the limits are, ground, and motor controller. I know that when the limit switch is hit, it stops the motor from moving and that pin is driven high, 5V.
I want to use my own limit switches and piggy back off the same connector. The purpose of this is that my enclosure won't be as wide as the whole range of the axis platform.
My idea was to make a switch so that when the motor moves and hits the limit switch it drives the pin high and stops the motor.
The drawing below is what I have come up with so far. I used a 2N2907 transistor. When the switch is pressed the collector will output 5V and drive the motor controller pin high and stop the motor. My biggest concern/issue is that I don't exactly know how much current I am able to sink into the pin on the connector to drive it high.
I have gone up to 25mA and my voltage drops severely down to less than 1V. (I have been using different size resistors for Rb to control the current.)
If I measure the current output from the pin of the connector once the internal limit switch is high, I can measure 5V at 0.5mA. (I may not be accurately measuring the current is my guess)
Why am I sinking so much current and dropping my voltage into that controller? Would there be a better way to drive this controller? (The output of my DC power supply is 5V and can go up to 2A)
Thank you.

I have a controller box that sends signals to a motorized axis platform. This "platform" moves up and down until it hits a mechanical limit switch and then stops moving in that direction. It has a 9 pin Dsub and I mapped out where the limits are, ground, and motor controller. I know that when the limit switch is hit, it stops the motor from moving and that pin is driven high, 5V.
I want to use my own limit switches and piggy back off the same connector. The purpose of this is that my enclosure won't be as wide as the whole range of the axis platform.
My idea was to make a switch so that when the motor moves and hits the limit switch it drives the pin high and stops the motor.
The drawing below is what I have come up with so far. I used a 2N2907 transistor. When the switch is pressed the collector will output 5V and drive the motor controller pin high and stop the motor. My biggest concern/issue is that I don't exactly know how much current I am able to sink into the pin on the connector to drive it high.
I have gone up to 25mA and my voltage drops severely down to less than 1V. (I have been using different size resistors for Rb to control the current.)
If I measure the current output from the pin of the connector once the internal limit switch is high, I can measure 5V at 0.5mA. (I may not be accurately measuring the current is my guess)
Why am I sinking so much current and dropping my voltage into that controller? Would there be a better way to drive this controller? (The output of my DC power supply is 5V and can go up to 2A)
Thank you.

