Theo
Topic Author
Posts: 6
Joined: 19 Feb 2020, 17:27

ASCII command with the USB port to control a pump

31 Jul 2020, 09:56

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: 1022
Joined: 15 Dec 2016, 13:19
Location: Ostfildern
Contact:

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

31 Jul 2020, 11:25

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
Topic Author
Posts: 6
Joined: 19 Feb 2020, 17:27

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

31 Jul 2020, 11:45

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 ?

Who is online

Users browsing this forum: No registered users and 0 guests