Friday 26 April 2019

arduino - Mega 2560 and LCD 1602 got error messages when upload


I am talking about Mega 2560 and LCD 1602


When I tried uploading the program, it just gave me these error messages:



avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_getsync(): timeout communicating with programmer


the arduino isn't lighting up or anything either.



Answer



This doesn't look like an error with the LCD or the sketch. The error message means that your Arduino IDE (or rather the underlying avrdude program) cannot connect to the Arduino board. So check you setting and your connections to the board. If this error persist, try to get more information about it, and then ask a more targeted question (which board do you have, how is it connected, can you program it at all, which IDE version do you use, and so on).


No comments:

Post a Comment

arduino - Can I use TI's cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...