Page 1 of 1

ASCII command with the USB port to control a pump

Posted: 31 Jul 2020, 09:56
by Theo
Hi everyone,
I am using the RevPi Connect+ and the DIO module.

Is it possible to connect a pump on the USB port and to control it with ASCII command?
If yes, I would like to see examples please :)

Re: ASCII command with the USB port to control a pump

Posted: 31 Jul 2020, 11:25
by dirk
Hi Theo, so I think you'll need something like serial communication over USB and PiBridge DIO communication, right?
I would recommend you to give Python a try, so it is PySerial and RevPiModIO2 here are some example scripts.

Re: ASCII command with the USB port to control a pump

Posted: 31 Jul 2020, 11:45
by Theo
Thanks for the reply. Right, I need to configure the serial communication between the pump and the Connect with dev//tty... ?
After that, with my python code I can write ASCII command ?