non carica sketch su Arduino se è collegato a qualsiasi utilizzatore

Ciao a tutti,
Non riesco a risolvere un problema, sto impazzendo, spero riusciate ad aiutarmi, premetto che è la prima volta che mi capita.
Dato che ho intenzione di creare un piccolo prototipo che utilizza la connessione bt, ho buttato giu un piccolo sketch per provare ad utilizzare l' HC-05, putroppo però, quando tento di caricare il codice, mi appare il seguente errore:

avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x0
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x0
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x0
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x0
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x0
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x0
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x0
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x0
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x0
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x0

di conseguenza il codice non carica sulla scheda.
La cosa strana è che se stacco tutti i fili che da arduino vanno alla breadboard e provo a caricare il codice tutto funziona.

Spero riusciate ad aiutarmi
grazie

Non è che il tuo HC-05, o qualche altra cosa, lo hai collegato ai pin 0 ed 1? Perché i pin 0 ed 1 sono quelli collegati al convertitore seriale <--> USB e quindi NON possono avere nulla collegato poiché disturberebbe la programmazione.

Guglielmo

Si ! grazie, me ne ero completamente dimenticato. Poi mi sono ricordato che l'UNO avendo solo una seriale può comunicare o con il pc o con l'HC-o5, per risolvere sono stato costretto a scollegare tx ed rx caricare e riattaccare i cavi

Io ti consiglio di NON usare la vera seriale e di lasciarla libera per il "debug" (oltretutto, più volte, gli HC-05 hanno dato problemi con essa) .... usa piuttosto una seriale "virtuale" creata con la SoftwareSerial :wink:

Guglielmo

Lo terrò a mente, grazie mille