Interacting with the real world
Our first real-world prototype should be an Android application that we can use to control a simple electronic component. We have to choose something that is not too trivial, so we can experiment with it, but also that it is not too complex, so we can dive into all main concepts without too many implementation details. A good starting point is the creation of a controller that we can use to turn on and off a real Light Emitting Diode (LED) component.
However, before we proceed, we have to understand how to create a communication between the Android application and the sketch. During the deployment process, we used to enable the external OTG port to communicate with the i.MX6 processor from our computer. If we disable this option, an internal switch activates a bidirectional communication between the i.MX6 and the SAM3X processors. This is possible because Arduino Due has full support for USB OTG connection and we are using this connection to let Android and...