I also changed the microcontroller Arduino to Arduino mega.
and connect Rx pin of TTL side to Tx pin of Arduino Mega and Tx pin of TTL side to Rx pin of Arduino Mega.
The picture is attached below
i dont know why your device not answering. i have not hear about before.
you mentioned old topic here on the forum, there was device with settings 8N1, but in your python example it is 7O2, further more, there datasheet speaking about DT and OEM protocols, not even near to sending "run\r\n". i already said that python program is wrong. maybe it is so, to prevent user from not using the origin software.
try this
#define pumpSerial Serial1
void setup() {
Serial.begin(115200);
pumpSerial.begin (115200, SERIAL_8N2);
Serial.println("Arduino ready to communicate with syringe pump.");
pumpSerial.write('\r');
delay(1000);
pumpSerial.write('r');
pumpSerial.write('u');
pumpSerial.write('n');
delay(1000);
}
void loop() {
if (pumpSerial.available() > 0)Serial.write(pumpSerial.read());
if (Serial.available() > 0)pumpSerial.write(Serial.read());
delay(1000);
}
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.

