ASCII command with the USB port to control a pump

Topics about the Software of Revolution Pi
Post Reply
Theo
Posts: 8
Joined: 19 Feb 2020, 17:27

ASCII command with the USB port to control a pump

Post 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 :)
User avatar
dirk
KUNBUS
Posts: 2174
Joined: 15 Dec 2016, 13:19

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

Post 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.
Theo
Posts: 8
Joined: 19 Feb 2020, 17:27

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

Post 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 ?
Post Reply