Beberapa error message di adruino

Beberapa Error Message di Arduino IDE dan Solusinya

Error Message 1 :

Sketch uses 928 bytes (2%) of program storage space. Maximum is 32,256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2,039 bytes for local variables. Maximum is 2,048 bytes.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x78
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x30
Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
Solusi : biasanya error di atas muncul karena pin 0 dan 1 Arduino Uno ada jumperan kabel ke sistem Anda yang lain. Coba copot dulu kabel tersebut

Error message 2 :

Arduino: 1.6.12 (Windows 7), Board: “Arduino/Genuino Uno”
\arduino 1.0.5\DHT11\DHT11.ino:1:17: fatal error: dht.h: No such file or directory
 #include <dht.h>
                 ^
compilation terminated.
exit status 1
Error compiling for board Arduino/Genuino Uno.
This report would have more information with
“Show verbose output during compilation”
option enabled in File -> Preferences.
Solusi : error di atas terjadi karena library dht.h tidak dapat dicari oleh compiler Arduino IDE. Coba download library yang error tersebut dan  copy-kan ke folder C:/Program Files/Arduino/libraries (berlaku juga untuk library yang lain)

Error Message 3 :

Arduino: 1.6.5 (Windows 7), Board: “Arduino Mega ADK”
Build options changed, rebuilding allc:/program files/arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.8.1/../../../../avr/lib/avr6\libc.a(isspace.o): In function isspace':
(.text.avr-libc+0x2): relocation truncated to fit: R_AVR_13_PCREL against symbol __ctype_isfalse’ defined in .text.avr-libc section in c:/program files/arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.8.1/../../../../avr/lib/avr6\libc.a(cty_isfalse.o)
collect2.exe: error: ld returned 1 exit status
Error compiling.
  This report would have more information with
  “Show verbose output during compilation”
  enabled in File > Preferences.
Solusi : error di atas terjadi saat saya menggunakan perintah String.toFloat() di Arduino Mega. 

Error Message 4 :

C:\Program Files\Arduino\libraries\TimeAlarms/TimeAlarms.h:72:31: error: ‘timeDayOfWeek_t’ does not name a type
   AlarmID_t alarmRepeat(const timeDayOfWeek_t DOW, const int H,  const int M,  const int S, OnTick_t onTickHandler); // as above, with day of week
                               ^
C:\Program Files\Arduino\libraries\TimeAlarms/TimeAlarms.h:76:29: error: ‘timeDayOfWeek_t’ does not name a type
   AlarmID_t alarmOnce(const timeDayOfWeek_t DOW, const int H,  const int M,  const int S, OnTick_t onTickHandler); // as above, with day of week
                            ^
exit status 1
Error compiling for board Arduino Mega ADK.
Solusi : Update library TimeAlarms.h yang terbaru

Error Message 5

Sebenarnya ini bukan error ya, hanya warning aja, bahwa dynamic memori Anda (SRAM) sudah terpakai lebih dari 75% yang dapat menyebabkan program berjalan tidak stabil
Sketch uses 12,628 bytes (39%) of program storage space. Maximum is 32,256 bytes.
Global variables use 1,573 bytes (76%) of dynamic memory, leaving 475 bytes for local variables. Maximum is 2,048 bytes.
Low memory available, stability problems may occur.
Solusi : kurangi pemakaian script yang menggunakan dynamic memory/SRAM seperti penggunaan variabel ‘String’, kurangi menge-print karakter di Serial Monitor (Serial.println), atau ganti board arduino Anda menjadi Arduino Mega (solusi terakhir). Untuk lebih detail cara menghemat dynamic memory Arduino 

Error Message 6

Problem: ‘setSyncProvider’ was not declared in this scope
Solusi : Instal library Time.h. Copy ke folder libraries (C:/Program Files/Arduino/Libraries) atau satu folder dengan sketch Arduino Anda

Error Message 7

Problem : SimpleTimer.h:37:22: fatal error: functional: No such file or directory. Biasanya karena Anda habis instal IDE Arduino terbaru
Solusi : buang library SimpleTimer yang lama, ganti dengan yang ini https://github.com/jfturcot/SimpleTimer

Comments

Popular posts from this blog

Termometer digital dengan adruino

sensor cahaya dengan adruino