Dabble App- Remote Control

IOS App- Dabble
https://apps.apple.com/us/app/dabble-bluetooth-controller/id1472734455?ls=1


Arduino Dabble Library
https://docs.arduino.cc/libraries/dabble/

Updated Dabble library with Internet module for Arduino.


Dabble app communicate with hardware like evive and Arduino boards like Uno, Mega and Nano using bluetooth modules like HC-05,HM-10. App consists of modules that explore different functionalities of smartphone like sensors,camera etc and also consists of certain user interfaces.Hardware communicates with app using Dabble library over bluetooth and access these app features. This helps hardware in accessing certain features of smartphone and also provides hardware control with smartphone

/*

  Gamepad module provides three different mode namely Digital, JoyStick and Accerleometer.

  You can reduce the size of library compiled by enabling only those modules that you want to

  use. For this first define CUSTOM_SETTINGS followed by defining INCLUDE_modulename.

  Explore more on: https://thestempedia.com/docs/dabble/game-pad-module/

*/

#define CUSTOM_SETTINGS

#define INCLUDE_GAMEPAD_MODULE

#include <Dabble.h>

void setup() {

 // put your setup code here, to run once:

 Serial.begin(250000);      // make sure your Serial Monitor is also set at this baud rate.

 Dabble.begin(9600);      //Enter baudrate of your bluetooth.Connect bluetooth on Bluetooth port present on evive.

}


void loop() {

 Dabble.processInput();             //this function is used to refresh data obtained from smartphone.Hence calling this function is mandatory in order to get data properly from your mobile.

 Serial.print("KeyPressed: ");

 if (GamePad.isUpPressed())

 {

   Serial.print("UP");

 }


 if (GamePad.isDownPressed())

 {

   Serial.print("DOWN");

 }


 if (GamePad.isLeftPressed())

 {

   Serial.print("Left");

 }


 if (GamePad.isRightPressed())

 {

   Serial.print("Right");

 }


 if (GamePad.isSquarePressed())

 {

   Serial.print("Square");

 }


 if (GamePad.isCirclePressed())

 {

   Serial.print("Circle");

 }


 if (GamePad.isCrossPressed())

 {

   Serial.print("Cross");

 }


 if (GamePad.isTrianglePressed())

 {

   Serial.print("Triangle");

 }


 if (GamePad.isStartPressed())

 {

   Serial.print("Start");

 }


 if (GamePad.isSelectPressed())

 {

   Serial.print("Select");

 }

 Serial.print('\t');


 int a = GamePad.getAngle();

 Serial.print("Angle: ");

 Serial.print(a);

 Serial.print('\t');

 int b = GamePad.getRadius();

 Serial.print("Radius: ");

 Serial.print(b);

 Serial.print('\t');

 float c = GamePad.getXaxisData();

 Serial.print("x_axis: ");

 Serial.print(c);

 Serial.print('\t');

 float d = GamePad.getYaxisData();

 Serial.print("y_axis: ");

 Serial.println(d);

 Serial.println();

}