Read inputs and outputs on a USB interface?

Let me explain
I want to read IO inputs from a USB interface on my Mac and later on my PC.
What type of interface do I need? a ready-made one with classes to access it and read the data?
A DIY USB interface?
Also, is it technically possible to do this with XOJO?
Do you have any ideas?
Thanks in advance.

it will be easier to do it with wifi/ethernet on an esp8266 or esp32
for usb you need plugins (or may be only declares I don’t know)
for wifi/ethernet, everything is built in with tcpsocket class in xojo.

1 Like

Simplest way is with a joystick.
Next is using MBS and phidgets.
After that you can buy usb io boards and the hid classes.
Or roll your own with a microcontroller.

How many I/O do you need?

you not wrote what IO, analog, digital, you will measuring data?
Arduino Uno R4 Wifi is a nice device. it can also used as mouse/keyboard HID.
it can create a access point or open a web server for http requests.

1 Like

In fact, I’d have 2 or even 4 buzzers connected to my local Wifi network (via a simple wifi router) with a maximum range of 40 meters.
And then detect when the buzzers are pressed, a simple ON/OFF contact.
Arduino ? esp8266 ? other ?

Start here: Communicating with serial devices — Xojo documentation
And continue here: Monkeybread Xojo plugin - The plugin MBS USB Plugin

:slight_smile:

1 Like

Thanks, I think I’ll go Wifi.

Arduino® UNO R4 WiFi — Arduino Official Store.
https://docs.arduino.cc/hardware/uno-r4-wifi/?queryID=undefined

from pc/xojo you can connect via tcp.