What a nuisance. Damn, I'm having a problem with Arduino Nano to load a code I created for a project. The code compiles it perfectly but it gives me an error:
avrdude: ser_open (): can't open device "
I tried everything !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
I restarted the computer, changed the port, tried to do with the Mega but with the same problem.
My only hope is you guys.
Sorry if I didn't greet you at first.
Code:
#include <SPI.h>
#include "RF24.h"
const int buz=7;
RF24 radio(13,12);
const uint64_t pipe=0xE8E8F0F0E1LL;
void setup()
{
Serial.begin(9600);
pinMode(buz, OUTPUT);
radio.begin();
radio.openReadingPipe(1, pipe);
radio.startListening();
}
void loop() {
int a;
if(radio.available()){
radio.read(&a, sizeof(a));
if(a==1){
digitalWrite(buz, HIGH);
delay(250);
digitalWrite(buz, LOW);
delay(250);
}else{
digitalWrite(buz, LOW);
}
}
}
Now it gives me another problem:
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x33
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x33
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x33
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x33
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x33
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x33
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x33
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x33
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x33
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x33
Problema di caricamento sulla scheda. Guarda http://www.arduino.cc/en/Guide/Troubleshooting#upload per suggerimenti
WHY??????????????????????????
Hello - you give a lot of information - but the most important are missing.
- Windows can show in the Device Manager, if an Arduino is present (or not).
- Did you select a not working programmer in the IDE menu?
- Did you select the "Old Bootloader" for a older Nano?
- The link in the last line of your error messages may help too.
Thank you very much but I solved it.
I changed the cable because the one I used was an old one with a "choke" but now I used the cable suitable for Arduino and it works.