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.