I am controlling an ST-M5040 stepper motor driver with an Arduino Pro Mini. Mostly working ok, stepping fine, but having a bit of a prob controlling the Direction pin on the driver box. I have pin 11 (PORTBP3) set as an input (default, no PinMode). The diargram with the controller shows the control pins on it are going to an opto-isolator. The DIR pin is at around 3.8 volt and will cause the motor to reverse if I short it to ground.
When DIR- (DIR+ is VCC - 5V) on the contoller is tied to the Arduino, I can't get it to pull ground/LOW. With the controller wire disconnected, my button presses show pin 11 going from HIGH (4.9v), to LOW (0v) as coded. When I re-connect the controller to pin 11 (Via connector blocks), it will go to 4.9v, but when Arduino goes LOW, the pin shows the 3.8 volts on the contoller! AFAIK all my grounds and voltages are common, and have checked for other wiring errors.
I suspect I'm missing something in the setup of the Arduiono pins or a major ground/voltage setup This shouldn't be that hard to do!
Any clues as to where I've gone wrong would be of great help. NOT a coding issue - more of a config issue I'm gussing.
=Alan R.