Friday, April 25, 2014

The tractor

Finally got it all together:


The goal was to use a phone or tablet to control the RC car/tuck/tractor via a web browser using touch events via WIFI.    This way, only one app is needed, no need to learn IOS, Android, or worse NOOK API.

So, to do this, the phone/tablet would need to be a hot spot or the RC "tractor" needs to be a hot spot.  iPhone/iTouch don't support being a hot spot, plus being a hot spot does drain the battery life.  So, the RC tractor needs to be a WIFI hot spot/access point.  Most newer USB WIFI dongles support SoftAP mode in the hardware.  Linux also provides support for this via hostapd.  More about this later..

Parts list
- Chassis
- Motor controller
- SBC (Linux single board computer)
- Battery pack
- USB Hub
- USB Wifi stick (Belkin) supports softAP

Controller
- Web Server
- daemon task to process  httpXMLRequests (There is a way to resolve the CORS issue)

Update:
- Changed the Wifi to a bluetooth USB.  This makes it easier to control outside in the sun.

Here us a very basic wiring diagram:   Changed the web client app to use the cwiid interface and use a basic wiiremote with classic controller.