So my boss wants me to get an Arduino board up and running and doesnt know anything about it because the guy who made it and wrote the code didnt leave any documentation. I am currently trying to get a test script for testing the motor running but I keep running into this error. Can someone please explain to me what is the issue.
The motor worked for a little bit when I started the upload but then this message came back. I dont know why my folder is invalid and what header file I would need.
Arduino: 1.8.9 (Windows Store 1.8.21.0) (Windows 10), Board: "Arduino/Genuino Uno"
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x4a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x4a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x4a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x4a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x4a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x4a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x4a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x4a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x4a
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x4a
Invalid library found in C:\Users\jwt13\Documents\Arduino\libraries\sketch_dec13a-test: no headers files (.h) found in C:\Users\jwt13\Documents\Arduino\libraries\sketch_dec13a-test
Invalid library found in C:\Users\jwt13\Documents\Arduino\libraries\sketch_dec13a-test: no headers files (.h) found in C:\Users\jwt13\Documents\Arduino\libraries\sketch_dec13a-test
This is my code
void setup() {
pinMode(8,OUTPUT);
pinMode(9,OUTPUT);
digitalWrite(8,LOW);
digitalWrite(9,LOW);
}
Oh im so sorry, I saw that error before posting and changed it but I guess I forgot to change it in the post. I am still having the header file missing issue and that is what I am not understanding. Sorry about the confusion.
Invalid library found in C:\Users\jwt13\Documents\Arduino\libraries\sketch_dec13a_test: no headers files (.h) found in C:\Users\jwt13\Documents\Arduino\libraries\sketch_dec13a_test
Invalid library found in C:\Users\jwt13\Documents\Arduino\libraries\sketch_dec13a_test: no headers files (.h) found in C:\Users\jwt13\Documents\Arduino\libraries\sketch_dec13a_test
Sketch uses 1544 bytes (0%) of program storage space. Maximum is 253952 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 8183 bytes for local variables. Maximum is 8192 bytes.
Invalid library found in C:\Users\jwt13\Documents\Arduino\libraries\sketch_dec13a_test: no headers files (.h) found in C:\Users\jwt13\Documents\Arduino\libraries\sketch_dec13a_test
Invalid library found in C:\Users\jwt13\Documents\Arduino\libraries\sketch_dec13a_test: no headers files (.h) found in C:\Users\jwt13\Documents\Arduino\libraries\sketch_dec13a_test
Invalid library found in C:\Users\jwt13\Documents\Arduino\libraries\sketch_dec13a_test: no headers files (.h) found in C:\Users\jwt13\Documents\Arduino\libraries\sketch_dec13a_test
When I upload it spends one second and then ends the upload followed by the bit about the invalid library and doesnt actually move my motor. I guess I am trying to figure out why the library is invalid and what kind of header file it wants.
and I got a new error message the 2nd time I ran it
Arduino: 1.8.9 (Windows Store 1.8.21.0) (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
sketch_dec13a_test:4:1: error: expected initializer before 'Serial'
Serial.begin(9600);
^
sketch_dec13a_test:6:1: error: expected unqualified-id before '{' token
{
^
exit status 1
expected initializer before 'Serial'
Invalid library found in C:\Users\jwt13\Documents\Arduino\libraries\sketch_dec13a_test: no headers files (.h) found in C:\Users\jwt13\Documents\Arduino\libraries\sketch_dec13a_test
Invalid library found in C:\Users\jwt13\Documents\Arduino\libraries\sketch_dec13a_test: no headers files (.h) found in C:\Users\jwt13\Documents\Arduino\libraries\sketch_dec13a_test
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Sketch uses 2872 bytes (1%) of program storage space. Maximum is 253952 bytes.
Global variables use 184 bytes (2%) of dynamic memory, leaving 8008 bytes for local variables. Maximum is 8192 bytes.
Invalid library found in C:\Users\jwt13\Documents\Arduino\libraries\sketch_dec13a_test: no headers files (.h) found in C:\Users\jwt13\Documents\Arduino\libraries\sketch_dec13a_test
Invalid library found in C:\Users\jwt13\Documents\Arduino\libraries\sketch_dec13a_test: no headers files (.h) found in C:\Users\jwt13\Documents\Arduino\libraries\sketch_dec13a_test