Hi.
I have spent some time with led strips and Arduino Uno. Have now moved on to Arduino pro mini 328 as a smaller physical format.
Trying to get a reliable bluetooth connection.
I am now using IDE 1.0.3
Arduino pro mini 328.
Sparkfun FTDI basic serial interface for wired connection and programming of bluetooth module.
All configured at 115200baud.
Hobbytronics Bluetooth-M interface.
Bluetooth module is EGBT-046S
Paired this device to laptop pc.
BT module supports a serial interface connection/protocol (but not HID).
Setup using FTDI USB wired interface.
Loaded a basic sketch, which just outputs some text/time values to the serial port every few seconds.
It will also print the ascii value of a character typed on the keyboard, over same serial port.
OK.
Swapped the FTDI for the Bluetooth interface.
Can establish connection with the BT module using windows (XP) quick connect facility.
Opening Arduino IDE seems to drop the BT connection. Then, using Tools, Serial Monitor, seems to re-establish it. ![]()
The afformentioned output to the screen is seen and again, typing a character on the keyboard prints the ascii code. so the BT link is working. In a 'short' test this has been run for over ten minutes and continues without problem.
However. I can't get a sketch to Upload via BT.
Clicking on the Upload arrow in the IDE, drops the BT connection (if it was on during abve test). The Uploading progress bar in the IDE moves to almost the end but then just stops. (Looks as if the compile has finished but the upload is stuck). No error message.
I've tried selecting other boards (eg with Arduino BT w/ ATmega 328) to no avail.
Anyone achieved upload? Is the HID protocol/connection of relevance?
Sketch here.
++++++
int SerialInVal;
void setup()
{
Serial.begin(115200);
Serial.println("BT_test01 (115200baud)");// print name of sketch running...
}
void loop()
{
Serial.print("millis = ");
Serial.println(millis());
if (Serial.available())
{
SerialInVal = Serial.read();
Serial.print ("Character = ");
Serial.println(SerialInVal);
}//endof if Serial.available()
delay(2000);
}// endof Void Loop()
++++++