Tutorial for controlling Arduino or other IoT devices from Android phones using Johnny-Five and Node-RED.
The connection to the board can be local (USB OTG) or remote (TCP).
This script allows Johnny-Five to run from a Termux terminal communicating with other Android apps or external devices by using the TCP protocol without root, without bluetooth and without the WiFi shield. The reason for the TCP protocol is that Termux still does not implement USB-OTG to Serial drivers and the vanilla Johnny-Five would hang right out the box because of this limitation.