Error al subir sketch en Arduino UNO


buenos días!
estoy usando una placa arduino uno para programar mi micro atm328.
mi proyecto consiste en ingresar un determinado número por teclado y luego poder enviarlo través de un emisor rf. obviamente, hay un lcd como interfaz.
mientras probaba el proyecto en la plaqueta de arduino uno, me funcionó siempre correctamente.
luego hice mi propia plaqueta y ya no me anduvo la primera.

y cuando quiero programar el micro me sale el error
avrdude: verification error, first mismatch @ byte 0x01c5
         0xd1 != 0xc1


tengo otro micro, con el cual pude programar sin problemas y usarlo correctamente en mi plaqueta, por lo cual creo que el problema no es eléctrico ni mucho menos. ¿alguno se puede dar una idea del problema?
¡muchas gracias!

pd: aquí el código

code: [select]
#include <keypad.h>
#include <wire.h>                 
#include <liquidcrystal_i2c.h>
#include <rcswitch.h> 

liquidcrystal_i2c lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, positive);  //lcd adress
rcswitch myswitch = rcswitch();

unsigned long n=0;
const byte rows = 4; //four rows
const byte cols = 3; //three columns
char keys[rows][cols] = {
  {1,2,3},
  {4,5,6},
  {7,8,9},
  {'*',0,'#'}
};
byte rowpins[rows] = {11, 10, 9, 8};   //connect row pinouts of keypad
byte colpins[cols] = {7, 6, 5};         //connect column pinouts of keypad

keypad keypad = keypad( makekeymap(keys), rowpins, colpins, rows, cols );


void setup(){
   
  myswitch.enabletransmit(1);           //transmitter connected arduino pin #1
  myswitch.setpulselength(365);         //optional set pulse length.
  myswitch.setprotocol(1);              //set protocol (default 1, work outlets)
  lcd.begin(16,2);                      //display initialization
 
}

void loop(){
 
  lcd.setcursor(0,0);                   //locate cursor
  lcd.write("ingresar numero");
 
  char key=keypad.getkey();             //get keypad number
  lcd.setcursor(0,1);
  if(key){                              //if key pressed, write number on display
    if(key!='#'&&key!='*'){             //write numbers
      n=10*n+(key);
      lcd.print(n);
    }
   
  }
  if(key=='#'){                         //key # data reset.
    n=0;
    lcd.setcursor(0,1);                 //relocate cursor
    lcd.clear();                        //clear display
  }

  if(key=='*'){                         //send data through rf tx
    lcd.clear();
    lcd.setcursor(4,0);
    lcd.write("enviando");
    myswitch.send(n, bin);              //it sent few times reassure it'll received
    delay(25);
    myswitch.send(n, bin);
    delay(25);   
    myswitch.send(n, bin);
    delay(25);   
    myswitch.send(n, bin);
    delay(25);
    myswitch.send(n, bin);
    delay(25);
    delay(500);                         //this delay user see message
    lcd.setcursor(0,1);
    lcd.print(n);
  }

}
 

pudiste resolverlo? 
cerramos el hilo?


Arduino Forum > International > Español > Software (Moderators: surbyte, Hector_A) > Error al subir sketch en Arduino UNO


arduino

Comments

Popular posts from this blog

DHT11 Time out error using v0.4.1library

Sketch upload fails with Java error (___REMOVE___/bin/avrdude)!

Arduino Uno + KTY81/210 temperature sensor