Dual Mode Bluetooth
The Bluetooth module is a standard transparent transmission module, which sends serial port data to devices connected to Bluetooth.
You can wirelessly upload firmware or control the motion of the robot through a Bluetooth connection. You can even control the robot using our smartphone app Petoi. We have included our official Bluetooth module in the standard robot kit. As shown below:
The connection between the Bluetooth module and the NyBoard is shown in the figure below, you need to plug the Bluetooth module into the 6-pin socket on the NyBoard. Note the pin order of the Bluetooth module. Once the battery is connected to the NyBoard, press and hold the button on the battery to power the robot. A blinking LED on the Bluetooth module indicates waiting for a connection.
You need to connect the dongle within the Petoi App, rather than your phone's system Bluetooth settings. On some phones, you need to grant Bluetooth and location services permissions to the app.
In your system's Bluetooth settings, search for a Bluetooth device name started with Petoi or Bittle, and connect. The default PIN for pairing is “0000“ or “1234”. After the pairing is successful, the system will assign a serial port name.
On Mac, go to System Preference -> Bluetooth, find a device name started with Petoi or Bittle, and connect.
On Windows, add the Bluetooth device in the system settings.
For Win10 users, the system will assign the "incoming" COM port and the "outgoing" COM port to Bluetooth. Please use the "outgoing" COM port. For details, please check in the "More Bluetooth options" of Win10 as below:
You can then select it under Tools->Port in the Arduino IDE, using the same method as the USB uploader. After opening the serial monitor, please select: No line ending, and the baud rate is set to 115200.
The Bluetooth connection with the computer may occasionally drop. Keeping the serial monitor open can make it more stable. But note it will also occupy the port and block other applications that want to connect.
If you want to configure the Bluetooth module, please refer to "JDY-23 AT Command List". Plug the Bluetooth module into the USB adapter debugging interface. As shown below:
The commonly used commands are listed below:
Check BT module version
（BT module version infomation）
Check BT broadcast name
Change BT broadcast name
Check serial baud rate
>+BAUD=8 （8 = 115200， 7=57600）
Change serial baud rate
>+OK （Set serial monitor to 57600）
When you use the serial terminal like "Arduino serial monitor" to set JDY-23 with AT commands, you must set "NL and CR", and the baud rate is set to 115200, or the JDY-23 module will not identify any AT command you send.
If you are a developer, you can use Lightblue or other tools to connect the dongle's BLE service.