Extension for USB OTG communication

531 views
Skip to first unread message

Jonathan Sosa

unread,
Sep 3, 2016, 4:16:26 PM9/3/16
to MIT App Inventor Forum
I'd like to attempt to create an extension for serial communication over a USB OTG cable to a connected Arduino board or other microcontroller. This would make controlling LEDs, motors and other sensors out in the real world easier/cheaper. I know many people use Bluetooth to do this, which I've done, but I'd prefer to use a cable. My Java skills are not that great however, I'd like to know how easy/difficult this would be for anyone who's built an extension already, it may be over my head ATM.

Taifun

unread,
Sep 3, 2016, 5:02:16 PM9/3/16
to MIT App Inventor Forum
the easiest way probably is to find a suitable library

this looks doable, however you will have to define a listener during runtime of the app instead of using the manifest as explained there to find out, if a device has been attached...

for further questions concerning working with the App Inventor sources please use the open source forum https://groups.google.com/forum/#!forum/app-inventor-open-source-dev

more information about how to create an extension see here https://groups.google.com/d/msg/mitappinventortest/Ip2AX036d0U/5NJlAEbFCgAJ

Taifun

Trying to push the limits of App Inventor! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun. 


Abraham Getzler

unread,
Sep 3, 2016, 10:27:56 PM9/3/16
to MIT App Inventor Forum
Reply all
Reply to author
Forward
0 new messages