IMPORTANT: Install the following sketch on your Arduino to use AutoArduino: https://github.com/joaomgcd/AutoArduino-Sketch/blob/master/pins.ino
STEP 1 - CONNECT LED TO ARDUINO
- Connect LED to breadboard
- Connect negative (shorter) end of the LED to GND on the Arduino
- Connect positive (longer) end of the LED to Pin 3 on the Arduino
STEP 2 - ADD YOUR ARDUINO TO AUTOARDUINO
To use a USB connection you'll need an USB OTG cable and make sure that your Android device supports USB OTG.
- Open the main AutoArduino app
- Touch Your Arduinos
- Touch the + sign on the top right
- Select the device type you want to use depending on what type of connection your Arduino supports
- Enter the required info depending on what type of connection you're using
To use a Bluetooth connection you need a Bluetooth module. AutoArduino was developed with a HC-05 module
To use an Ethernet connection you need an Ethernet shield for your Arduino. AutoArduino was developed with a Shield Ethernet W5100 module
STEP 3 - CREATE TASK AND CONNECT AUTOARDUINO TO YOUR ARDUINO
- Create a Task in Tasker and call it Led
- Add an AutoArduino Connect action and make sure Connect is checked
- Select your Arduino from the device list
STEP 4 - TOGGLE LED
- Add an AutoArduino Write Pins action
- Select Digital and then select to toggle Pin 3
- Accept this action and return to Tasker
STEP 5 - DISCONNECT
You don't need to disconnect every time you write pins with AutoArduino, but it is good practice if you don't intend to use AutoArduino again in the near future. Leaving a connection open will create a process for AutoArduino in the background and will make actions faster
- Add an AutoArduino Connect action and make sure Connect is NOT checked
- Return to Tasker
STEP 6 - TEST
If you now run the task you should see the LED turn on and off each time you run it.