Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Real world interfaces #55

Open
Noitarud opened this issue May 13, 2023 · 1 comment
Open

Real world interfaces #55

Noitarud opened this issue May 13, 2023 · 1 comment

Comments

@Noitarud
Copy link

Noitarud commented May 13, 2023

There are teachers embracing robotics, I presume you m.i.g.h.t have an interest in this… I do not know if android is compatible with old school technology (see image) but the sensors of device could be used as triggers for operating motors or heaters, to make responses or corrections.

Image shows an OTG cable (useful with Android devices) with a USB-LPT(printer) adaptor and an experimentation board for Parallel port. I was sure the serial port had some I/O too.
IMG_20230513_213821

@Staacks
Copy link
Member

Staacks commented May 15, 2023

Without having tested it myself, I am quite sure that Android can handle data inputs via OTG cables (or just acting as a USB host in case of modern USB-C cables). However, there are two problems which prevented us from implementing this into phyphox so far:

  • As far as I can tell, this is not possible on Apple devices. This limits the number of student devices that can be used in teaching with this interface and makes it impossible to use it on most school-provided sets of devices, which are typically iPads (at least in Germany). This does not prevent the feature from being included in phyphox, but moves it from our todo list to our nice-to-have list.
  • There is no universal USB protocol for such devices. Most of them will probably use the USB CDC protocol to implement a serial communication over USB, which in turn means that we need to implement support for such devices in an extremely generic way, so that different serial protocols are supported. (For example streaming binary values, streaming individual ASCII encoded descimal numbers, streaming comma seperated numbers, extracting number from a string like "T = 20.7C", JSON-encoded data packets etc. - or even needing phyphox to request data with specific commands)
  • Most of these USB-sensors are DIY devices and use a serial interface. Usually, this means that it is not too difficult to attach them to an ESP32 and connect them to phyphox through our Arduino library. So, many of these DIY sensors have a good alternative to USB or are shifting to the Arduino (or MicroPython) ecosystem anyway.

In summary, this does not rule out that phyphox could support USB data sources eventually, but it is not a priority and will probably not be implemented by us in the foreseeable future. (Pull requests are always welcome, of course.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants