0
I need to send a bit (pulse) to specific pins of a parallel port to control some stepper motors...
With the php_serial.class.php class I know how to send a string, but how to send only one bit and specifically to a port? Would it be possible?
$serial->deviceSet("COM6");
$serial->confBaudRate(9600);
$serial->confStopBits(1);
$serial->confCharacterLength(8);
$serial->deviceOpen();
$serial->sendMessage("\xFF\x01\x01");
$serial->deviceClose();
Douglas for what I understand you are integrating with Arduino or Raspberry Pi, correct? I have worked with Arduino and I know that it is necessary to integrate commands that arrive by serial (text or even numbers) and then direct the signal to the specific port through the Arduino.
– Bruno Bermann
in fact, I’m not going to send to any of the 2, I want to send to this model controller: "Hy-jk02-m 5-Axis interface", but I don’t think she has an interpreter just like the Arduin, she only gets pulses identified by the pins of the serial port...
– Douglas Lopes
Douglas, I’m sorry... I don’t have specific knowledge of this controller to help you. Perhaps a search in the documentation of this controller (if any) will help you. Good luck!
– Bruno Bermann