Download and run the latest version of Alfredo Connect Desktop.
Download the Arduino Library for Alfredo Connect Reciever
In the Arduino IDE, Click Sketch
> Include Library
> Add .ZIP Library...
, and select the ZIP file you downloaded.
Download the Arduino Library for the motor shield
In the Arduino IDE, Click Sketch
> Include Library
> Add .ZIP Library...
, and select the ZIP file you downloaded.
In the Arduino IDE, go to File
> Examples
> AlfredoConnect-Receive-Master
> Uno
> Adafruit-Motor-Shield-v1
> ArcadeBotGamepadUno
This will pull up code for a two motor drive train.
First, you will need to declare your motor as a variable, an example of this is below.
The number in the parentheses is the motor port that your motor is connected to on the motor shield.
Next, we will program our motor to run when the A button on an Xbox remote is held down. AlfredoConnect makes this very simple with their library, an example of this is below.
MAKE SURE THIS IS DONE IN THE LOOP FUNCTION!