Hi, I'm having trouble connecting the Arduino IDE to my Bittle on NyBord v1_1.
I am able to control the Bittle via the iPhone app with the bluetooth adapter so I know the hardware works. I am also able to upload sketches and communicate via the usb serial connection. I can connect to the bluetooth adapter via MacOS Bluetooth settings. I can even see the serial port in the Arduino IDE:
However, when I try to upload the sketch. I get this error:
Sketch uses 31290 bytes (97%) of program storage space. Maximum is 32256 bytes.
Global variables use 1102 bytes (53%) of dynamic memory, leaving 946 bytes for local variables. Maximum is 2048 bytes.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
...
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
Failed uploading: uploading error: exit status 1
How can I debug this. Am I missing a configuration somewhere?
Update - After many tries, I managed to get the Bluetooth connection connected long enough to get the Arduino serial monitor running. With the monitor connected, the Bluetooth connection stayed connected long enough for the sketch to upload correctly. Now the Ultrasonic sensor is working properly.
I'm still having problems maintaining a Bluetooth connection on the Mac. I have now tried using the Arduino app and I am having the same problems as the OP. The connection breaks before a sketch can be uploaded. I've tried altering the distance between Nybble and the Mac, but that seems to make no difference. It did work once and the Arduino serial monitor was receiving data, but the Ultrasonic sensor was not working properly - always showing 1 or 2 cm. Subsequent attempts to upload the sketch will not connect. Until I find a solution I will have to go back to the USB connection, which does work.
I have a similar problem on my MacBook - the bluetooth for my Nybble announces as BittleSPP-8775CF. Never Nybble - I'm not sure that matters, but it won't stay connected when I use the desktop app, and the only way I can use the app is through the USB serial link. My Android phone has no problem keeping connected.
Try to delete the Bittle bluetooth device from the Bluetooth settings, then add it back.