Troubleshooting Guide for Dabble App

Dabble app featured
Description
Solve your issues with the Dabble app by following this troubleshooting guide. Learn how to connect the app to the Bluetooth module, update your resources, solve communication errors, and more. Get help from our experts if you need further assistance.

Introduction

While using Dabble with your hardware board, you may face some problems. These problems may be related to the connection between the app and hardware, improper data transfer, or errors in the Dabble code of the hardware board. But no worries! this documentation will guide you in solving your issues with the Dabble app. But before moving ahead you should have all Dabble-related utilities updated. Make sure you have all the following resources updated:

  1. If you are using Arduino IDE for uploading code in hardware, then use the latest library for the following boards:
    1. Dabble library for evive, Arduino Uno, Mega, and Nano
    2. Dabble library for ESP32
  2. If you are using PictoBlox for uploading code in hardware, then make sure you have the latest PictoBlox version. You can check it out here.
  3.  Update your smartphone app from below:
    1. Android: https://play.google.com/store/apps/details?id=io.dabbleapp
    2. iOS: https://apps.apple.com/us/app/dabble-bluetooth-controller/id1472734455

Potential Problems You Can Face

The solution to the following most frequently faced problems that have been discussed in this troubleshooting guide (Click on the problem to jump onto it):

  1. Dabble is not connecting to the Bluetooth
  2. Communication error: Sometimes it may happen that your code is not working properly or not working at all. This mainly happens because of improper data transfer between the app and the hardware.
  3. Dabble code compilation error in Arduino IDE
  4. Other: Error in working with specific Bluetooth modules and hardware.

Dabble is not connecting to the Bluetooth Module

  1. Your Bluetooth module is not visible in the Dabble app when you see the list of all the Bluetooth devices available. This problem can occur due to the following reasons:
    Note:  If your smartphone has  Android 10.0, there are chances that the Bluetooth module will not be visible. In order to make modules visible it will be mandatory for you to turn on GPS location and grant location permission to the app.
    1. If the Bluetooth module you wish to connect is already connected to some other device then that Bluetooth module will not be visible in the Bluetooth list of your smartphone. To solve this problem disconnect the Bluetooth module connection from the other device or turn OFF and turn ON the Bluetooth module again.
    2. It is possible that your smartphone only allows Bluetooth connection with paired devices. In this case, first, go to the Bluetooth device settings of your smartphone and pair your Bluetooth module with it.
      Note:  Sometimes while pairing Bluetooth you will be asked to enter the PIN. Enter the PIN for your HM-10 or HC-05 module if you have set any PIN through AT commands. Or if you don’t know the PIN then you can try some default PINs for these modules. For HC-05 try 0000 or 1234 and for HM-10 try 000000 or 123456. However, for ESP32 the BLE is configured from Dabble code and hence does not require any PIN to pair.
    3. Many times it happens that your smartphone takes time in finding the nearby Bluetooth devices. In such cases, though the Bluetooth of your hardware is present in the list you cannot identify it because the name is not visible. In this case, wait for a little while longer until the name of the module does not appear on the list. Or if you know the address of your Bluetooth module then connect to that address.
  2. You are not able to connect to the selected Bluetooth module.
    1. Sometimes even if the module is available in the list there is still a connection failure. This happens if you try to connect to a device that is not supported by the Dabble app. The Dabble app can connect with the classic Bluetooth (BT 2.0) HC-05 and BLE HM-10 or ESP32.

Communication Error

Sometimes it may happen that your code is not working properly or not working at all. This mainly happens because of improper data transfer between the app and the hardware. You can check if there is any data transfer issue by checking the board name that appears as a notification as soon as your hardware connects to the Dabble app. You can check the same thing by going to the settings by clicking on the settings button in the app.

If the board name is appearing correct then there is no issue in communication between the hardware and Dabble app. This is because whenever any of the hardware connects to the Dabble app there is a handshake signal between Dabble and the hardware wherein the app requests for the identity of the board and the board sends its identity to the app.

The major reasons possible for this are mentioned ahead:

  1. Error while making the Arduino IDE or PictoBlox code: For getting data from the app it is mandatory to call the function “Dabble.processInput()” in the void loop() as this function checks the availability of data and also processes the received data. So maybe it is possible that you are not receiving correct data because you have not called this function in the loop. Or maybe there are some other statements in the code that are preventing calls for this function like some while() statements. Well, this can get a little complicated in explanation so, try to run any example code to check if the problem was related to your code that was preventing the communication.
  2. Wrong Hardware connection:
    1. In the case of evive and ESP32 chances of a wrong connection are negligible. This is because ESP32 has in-built Bluetooth and evive has a dedicated Bluetooth slot and so you are free from wire clutches here.
    2. While using boards like Mega, Uno, and Nano make sure that the RX and TX pins of the module are correctly connected to  TX and RX pins of your board respectively. With Dabble library and Dabble blocks follow the connections as stated below:
      HM-10, HC-05 AND HC-06 PINS EVIVE ARDUINO MEGA ARDUINO UNO ARDUINO NANO
      TX Pin Plug Module in Bluetooth Slot Pin 15(RX3) Pin 2 Pin 2
      RX Pin Plug Module in Bluetooth Slot Pin 14(TX3) Pin 3 Pin 3
  3. Wrong Baud Rate: If you are not getting the board name correctly then it is quite possible that the baud rate of your Bluetooth is not correct. Because of this improper data transfer will occur between your hardware device and smartphone.
    1. You will not have a Baud rate issue in the case of ESP32 as here the communication process works differently because it has an in-built Bluetooth.
    2. To check and change the baud rate of the HC-05 module you can follow the example code for changing the baud rate given in Dabble library examples. Navigate to “Files>>Examples>>Dabble>>Bluetooth Baud Settings”.
    3. The process of changing the baud rate of HM-10 is a bit tedious. Follow the tutorial for the HM-10 module for learning how to change the baud rate of the HM-10 module.

Dabble Code Compilation Error in Arduino IDE

Let’s try to understand this case with the help of a situation in that you want to make a mobile robot using the Gamepad module in Dabble and want to control the speed of the robot with the help of knobs in the Input module in this case code goes like

You can see the error picture above that states “undefined reference to ‘Inputs’” because the above code does not include the “#define” macro for the Dabble Inputs module.

As guided in the documentation of various modules basic steps of writing code includes defining keywords related to the module. In the above code #define INCLUDE_GAMEPAD_MODULE is mentioned but a similar #define statement for the Inputs module is not mentioned hence the problem of the undefined word took place. The keywords included in the code should be in the following manner.

#define CUSTOM_SETTINGS

#define INCLUDE_GAMEPAD_MODULE

#define INCLUDE_DABBLEINPUTS_MODULE

Other Issues

  1. Error in working with specific Bluetooth modules and hardware: There can be errors in data streaming that affect the performance of the modules. These errors may be missing data or slow data streaming. Due to this kind of error modules like Phone Sensor or Pin State Monitor may underperform as there is a very fast data streaming in these modules. The probable reasons for these problems are listed below:
    1. Board Type used: Arduino boards like UNO and NANO use software serial for communicating with the HC-05 or HM-10 Bluetooth module. And software serial allows only one-way serial communication at a time as that is a virtual serial. Hence you should connect the Bluetooth to the hardware serial on the board while using modules like the phone sensor or pin state monitor. To know how to write code for using Hardware serial you can refer to the example of a phone sensor or pin state monitor available in Dabble library.
    2. Bluetooth Type used: The Bluetooth type used with the hardware board also plays a crucial role in deciding module performance. As you know that Dabble supports Bluetooth Classic and BLE. The speed and protocol of data streaming are very different in both Bluetooth types. Classic Bluetooth supports fast data streaming to a certain extent but for BLE there is a limitation. Due to speed limitations in BLE, there will always be data lag if fast data streaming is taking place.
  2. Error in downloading the Dabble App on your Smartphone: While trying to download Dabble either on an Android device or an iOS device, there is a possibility that you may face an issue downloading it. The issue you may notice can be due to version incompatibility. The minimum requirement for Android users is 5.0 and up and for iOS it is 12.2 and above. If you aren’t able to download Dabble, check the Android version or iOS version first, and if not, do update your Android or iOS versions.
Note:  If you are having the ‘black screen’ issue with Dabble version 1.0.5 where soon after you launch/open the app, it is getting stuck at the black screen, then you need to download the previous version 1.0.4 attached HERE and you will be good to go.

Contact Us for Further Assistance

If you have tried everything mentioned above and the problem is not solved, then you can contact us at support@thestempedia.com.

Table of Contents