Go Down

Topic: Compiler can't find library files (Read 563 times) previous topic - next topic

spycatcher2k

Quote
#define TRIG_PIN 2
#define ECHO_PIN 4
Ultrasonic pins go to the pins above. Looks like you have them on pins 11 and 12(or possibly 13).
Mrs Drew
-=-
http://www.uk-pcb.co.uk - UK PCB Fab Company
I will design & code for you, but I will also charge you (PM me)
If you don't like my answers, realize : I'm not being cheeky, I'm Just trying to prompt you to use your own brain/google etc.

Buerger

Now, for some reason Lesson 11 is no longer uploading.  Error statement:



Arduino: 1.8.10 (Windows 7), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

Sketch uses 3696 bytes (1%) of program storage space. Maximum is 253952 bytes.
Global variables use 333 bytes (4%) of dynamic memory, leaving 7859 bytes for local variables. Maximum is 8192 bytes.
An error occurred while uploading the sketch
avrdude: ser_open(): can't open device "\\.\COM7": The system cannot find the file specified.


avrdude: ser_drain(): read error: The handle is invalid.


avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.


avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.


avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.


avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.


avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.


avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.


avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
Invalid library found in C:\Users\Brantley Buerger\Documents\Arduino\libraries\HCSR04_Example: no headers files (.h) found in C:\Users\Brantley Buerger\Documents\Arduino\libraries\HCSR04_Example
Invalid library found in C:\Users\Brantley Buerger\Documents\Arduino\libraries\My_Blink: no headers files (.h) found in C:\Users\Brantley Buerger\Documents\Arduino\libraries\My_Blink
Invalid library found in C:\Users\Brantley Buerger\Documents\Arduino\libraries\HCSR04_Example: no headers files (.h) found in C:\Users\Brantley Buerger\Documents\Arduino\libraries\HCSR04_Example
Invalid library found in C:\Users\Brantley Buerger\Documents\Arduino\libraries\My_Blink: no headers files (.h) found in C:\Users\Brantley Buerger\Documents\Arduino\libraries\My_Blink

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Buerger

Now, Lesson 10 is no longer uploading.

Error statement:

Arduino: 1.8.10 (Windows 7), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

Sketch uses 3414 bytes (1%) of program storage space. Maximum is 253952 bytes.
Global variables use 207 bytes (2%) of dynamic memory, leaving 7985 bytes for local variables. Maximum is 8192 bytes.
An error occurred while uploading the sketch
avrdude: ser_open(): can't open device "\\.\COM7": The system cannot find the file specified.


avrdude: ser_drain(): read error: The handle is invalid.


avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.


avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.


avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.


avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.


avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.


avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.


avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
Invalid library found in C:\Users\Brantley Buerger\Documents\Arduino\libraries\HCSR04_Example: no headers files (.h) found in C:\Users\Brantley Buerger\Documents\Arduino\libraries\HCSR04_Example
Invalid library found in C:\Users\Brantley Buerger\Documents\Arduino\libraries\My_Blink: no headers files (.h) found in C:\Users\Brantley Buerger\Documents\Arduino\libraries\My_Blink
Invalid library found in C:\Users\Brantley Buerger\Documents\Arduino\libraries\HCSR04_Example: no headers files (.h) found in C:\Users\Brantley Buerger\Documents\Arduino\libraries\HCSR04_Example
Invalid library found in C:\Users\Brantley Buerger\Documents\Arduino\libraries\My_Blink: no headers files (.h) found in C:\Users\Brantley Buerger\Documents\Arduino\libraries\My_Blink

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Buerger

#18
Nov 14, 2019, 07:34 pm Last Edit: Nov 14, 2019, 08:17 pm by Buerger
Thanks to spycatcher for noting that the tutorial pictures did not match the code in Lesson 10.

I was using the wrong pins for the following:

#define TRIG_PIN 2
#define ECHO_PIN 4 12 and

Now everything works.  Thanks.

(I'm more than a little upset that the tutorial didn't match the code!!!!!)

Buerger

OK, not sure why, but Lesson 11 is uploading correctly, but still no output to the serial monitor from the keypad.

Wondering if I have another pin error, but the pin locations are evidently in the keypad.h file which I am unable to open.  How can I check this?  Or is there something else wrong?

spycatcher2k

Quote
byte rowPins[ROWS] = {12,14,27,26}; //connect to the row pinouts of the keypad
byte colPins[COLS] = {25,23,32,35}; //connect to the column pinouts of the keypad
This shows you the pins.
Mrs Drew
-=-
http://www.uk-pcb.co.uk - UK PCB Fab Company
I will design & code for you, but I will also charge you (PM me)
If you don't like my answers, realize : I'm not being cheeky, I'm Just trying to prompt you to use your own brain/google etc.

Buerger


Are you saying that these are the pin locations on the board?

The tutorial (which I can't seem to copy an image from), clearly shows the 8 output wires from the keypad landing on pins D2 to D9, both in the wiring schematic and a photograph of the set up.



spycatcher2k

You are correct, the code does indeed show the pins expected. Can you post a link to the tutorial & I'll have a look at it.
Mrs Drew
-=-
http://www.uk-pcb.co.uk - UK PCB Fab Company
I will design & code for you, but I will also charge you (PM me)
If you don't like my answers, realize : I'm not being cheeky, I'm Just trying to prompt you to use your own brain/google etc.

Buerger

Tried to post a link with no success (this is not my wheelhouse).  Try to google ELEGOO Lesson 11.  Sorry I don't have the skills to facilitate this.

Buerger

Lots of posts! 

Just to clear things up (thanks to all for the help) I now have Lesson 10 (ultrasonic distance measurement) and Lesson 11 (Keypad) working.  Problem was that the pin locations in the tutorials did not match up with the code.  Definitely frustrating!! but a learning experience nonetheless.

Still working on Lesson 9 (Servo).  I'll start by checking pin locations, but would welcome any and all advice.

Thanks again (particularly spycatcher2k).

Buerger

Lesson 9 (servo) had another pin location error.  When I landed the pin per the code, it worked.

Am I the only user having these issues?

ballscrewbob

#26
Nov 15, 2019, 03:37 pm Last Edit: Nov 15, 2019, 03:38 pm by ballscrewbob
These are not the OFFICIAL lessons but a third party set from Elegoo.

You would be much better off in thier forum with these issues.
You may find an odd person here with the experience of that kit but you chances are much better with the official elegoo site.

Bob.

It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

sayHovis

Am I the only user having these issues?
That's probably something you should take up with Elgoo


Buerger

Aha! 

Thanks.  Off to ELEGOO land.

Buerger

Went to the ELEGOO forum and it barely exists.  No help.  I sent an email to them about the pin errors.

This forum (Arduino) is much more robust.

Go Up