Two Methods of Remote Control

Here are two tested methods of remote control of hardware. Both methods use Internet Protocol (IP) over Wi FI to control the same motor-driven model cart. For the user's interface, the first method deploys an Android app. and the second method deploys an HTTP page for any device running a standard Web browser.

SAFETY NOTICE. Do not attempt to deploy the whole or any part of this software to control any toy or vehicle which is large enough, heavy enough or fast enough to damage property or to injure children, adults or pets. If in doubt consult an appropriate qualified engineer and software designer.

The controlled hardware

For drawings, circuitry, video and history of the model follow this link.

The model's on-board software is composed of the Transmission Control Protocol (TCP) interface and the processing of motor-control commands. For the complete tested code follow this link.

Method 1 software - Smart device Android Java

Ths is an app. conisting of a user's interface and a TCP interface connecting directly with the model's TCP interface. For the tested code follow this link.

Method 2 software - Web page Javascript and node.js bridge

This involves much less code than Method 1 but it requires additional hardware, supplied here in the form of a Rapberry Pi 3B. The Pi may be situated anywhere on the same local Wi Fi network as the cart and the user's controlling device. The pi hosts the bridge node.js code which links the HTTP of the users Web Page to the TCP interface of the cart. It also supplies a 'keep-alive' pulse without which the cart will shut down for safety reasons. For the complete code follow the links below.

User's interface

node.js bridge

Return to home page