TransWikia.com

Using python to send automated commands through a serial-usb-cable adapter

Engineering Asked by LCDub on February 28, 2021

I have an old peristaltic pump with a 9 pin male sub-d socket labeled Gilson Serial Input Output Channel (GSIOC) that connects a master device to devices with RS422A specifications, or RS485 specifications. The GSIOC implements RS422A/RS485 transmitters and receivers.

enter image description here

Could any computer serve as a master device by simply connecting the pump and computer directly through a serial to USB converter with proper specifications?

Building from here could serial commands be written on and sent directly from the computer to the pump in order to control speed/rotor direction…etc? Or am I missing important conceptual understanding on how to remotely control the pump?

One Answer

Yes that will be feasible.

It appears from the image that the green 6pin connector is for external manual controls. One of the signals is an analog voltage, presumably to control the motor speed.

In the RS232/485 signal there should be a digital PWM (pulse width modulated) value to control the motor speed through a power driver (FET/transistor/SCR/etc).

The other signals serve as on-off commands to manage the motor enable and direction.

So you will need to find which DB9 pin serves as the speed control signal - (Analog V+) and feed a variable PWM source to that pin. Now RS232/485 devices are not high current devices, so you will need to figure out how the power is provided to drive the motor.

Other than that the computer/MCU will be able to set each pin on the DB9 to a LOW (0v) or HIGH (5V or 3.3v) voltage which is then passed through the RS232 "converter" to shift the signals to the correct levels (+/- 5V) to control the device.

Once the wiring and power are known this is an easy job.

Answered by Donald Gibson on February 28, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP