I have an Arduino Mega 2560 R2 that will be used to control an R/C truck (Rock Crawler). I purchased an external Bluetooth module (DF-BluetoothV3) that I believe is expecting serial communications at a baud rate of 115200. It works perfectly fine for receiving serial data from a sketch running on the Mega, but I am unable to use it to upload sketches.
Based on the research I've done so far, I believe there are a few reasons for this:
- When I attempt to upload the sketch, I don't believe the BT module initiates a reset of the Arduino
- The default baud rate in the Bootloader doesn't match the expected baud rate of the BT module
- The delay in the bootloader isn't long enough to allow the BT module to begin sending the new sketch
There's a fair bit of speculation on my part here, but I'm hoping that there's a way around these problems. One of the options that came to mind was to install the ArduinoBT's bootloader on the Mega, but I'm not sure if the BT module on the ArduinoBT is connected differently.
Failing the ability to upload sketches through BT, I will try to connect the BT module to Serial 1 or Serial 2, leaving Serial 0 always open for uploading sketches.
Any advice would be appreciated.