Hello,
I am trying to work through this project from MAKE (http://makezine.com/projects/controllin ... etooth-le/) but it is failing to compile/upload. I suspect I may be structuring my directory's incorrectly or launching the sketches from wrong location/using the wrong ide.
I have not been able to locate any support info for the error I receive leading me to believe I am the first person this has ever happened to...
Thanks
jj
skill level: newb
version: Arduino 1.6.11
error message:
R:\Wxx\1xxx xxxX 2xxx\QUxxx\ALLxxx_Ixxx_Dxxx\PROxxx\BluetoothLock-master\BluetoothLock-master\arduino\BluetoothLock\BluetoothLock.ino:9:31: fatal error: Adafruit_BLE_UART.h: No such file or directory
#include "Adafruit_BLE_UART.h"
^
compilation terminated.
exit status 1
Error compiling for board Arduino/Genuino Uno.
/controlling-a-lock-with-an-arudino-and-bluetooth-le HELP
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- jjseeker
- Posts: 29
- Joined: Fri Jul 29, 2016 4:57 pm
- adafruit_support_bill
- Posts: 88151
- Joined: Sat Feb 07, 2009 10:11 am
Re: /controlling-a-lock-with-an-arudino-and-bluetooth-le HEL
Clearly the compiler is not finding the library file in the expected location. Make sure that it is installed as described in this guide:Adafruit_BLE_UART.h: No such file or directory
http://learn.adafruit.com/adafruit-all- ... nstall-use
- jjseeker
- Posts: 29
- Joined: Fri Jul 29, 2016 4:57 pm
Re: /controlling-a-lock-with-an-arudino-and-bluetooth-le HEL
Thanks Bill,
Clearly I have a lot to learn!
jj
Clearly I have a lot to learn!
jj
- jjseeker
- Posts: 29
- Joined: Fri Jul 29, 2016 4:57 pm
Re: /controlling-a-lock-with-an-arudino-and-bluetooth-le HEL
Ok,
I have schooled myself on libraries and have still not been able to resolve this issue...because the zip file from github does not contain a valid library!
"Specified folder/zip file does not contain a valid library"
I'll take this inquiry to github if no one has any experience with this error.
Thanks again.
I have schooled myself on libraries and have still not been able to resolve this issue...because the zip file from github does not contain a valid library!
"Specified folder/zip file does not contain a valid library"
I'll take this inquiry to github if no one has any experience with this error.
Thanks again.
- adafruit_support_bill
- Posts: 88151
- Joined: Sat Feb 07, 2009 10:11 am
Re: /controlling-a-lock-with-an-arudino-and-bluetooth-le HEL
Where is that error message coming from?"Specified folder/zip file does not contain a valid library"
If you just unzip the folder and copy it to your sketchbook libraries folder it should work for you.
http://learn.adafruit.com/adafruit-all- ... nstall-use
- jjseeker
- Posts: 29
- Joined: Fri Jul 29, 2016 4:57 pm
Re: /controlling-a-lock-with-an-arudino-and-bluetooth-le HEL
The error message is coming from the Arduino ide. When I try to add it from the zip folder.
Specified folder/zip file does not contain a valid library
Invalid library found in C:\Users\Lx\Documents\Arduino\libraries\BluetoothLock_master: C:\Users\Lx\Documents\Arduino\libraries\BluetoothLock_master
I have tried this on multiple machines now, and have used BluetoothLock-master and BluetoothLock_master with the same results.
Could the issue be stemming from the fact that I dont have Git installed and I am just trying to download the files from GitHub?
Thanks for keeping this alive Bill.
jj
Specified folder/zip file does not contain a valid library
Invalid library found in C:\Users\Lx\Documents\Arduino\libraries\BluetoothLock_master: C:\Users\Lx\Documents\Arduino\libraries\BluetoothLock_master
I have tried this on multiple machines now, and have used BluetoothLock-master and BluetoothLock_master with the same results.
Could the issue be stemming from the fact that I dont have Git installed and I am just trying to download the files from GitHub?
Thanks for keeping this alive Bill.
jj
- adafruit_support_bill
- Posts: 88151
- Joined: Sat Feb 07, 2009 10:11 am
Re: /controlling-a-lock-with-an-arudino-and-bluetooth-le HEL
BlueToothLock_master is not a library. That is the main sketch and should not be installed in your Libraries folder.
The error you were getting is this one:
https://github.com/adafruit/Adafruit_BluefruitLE_nRF51
The error you were getting is this one:
The library you are missing is the Adafruit_BLE_UART library. I don't see any direct mention of it in the Make tutorial, but I think this is the one they are using.Adafruit_BLE_UART.h: No such file or directory
https://github.com/adafruit/Adafruit_BluefruitLE_nRF51
- jjseeker
- Posts: 29
- Joined: Fri Jul 29, 2016 4:57 pm
Re: /controlling-a-lock-with-an-arudino-and-bluetooth-le HEL
Hey Bill,
I've tried it in the sketch folder several times at that point I was trying up, down, left right. I'll try the Adafruit_BLE_UART library you pointed me to. I could not find that on my own.
Thanks again.
jj
I've tried it in the sketch folder several times at that point I was trying up, down, left right. I'll try the Adafruit_BLE_UART library you pointed me to. I could not find that on my own.
Thanks again.
jj
- jjseeker
- Posts: 29
- Joined: Fri Jul 29, 2016 4:57 pm
Re: /controlling-a-lock-with-an-arudino-and-bluetooth-le HEL
Ok. I finally got it to compile w/out any error messages. I am going to blame the issues I had on 1.) an over simplification by MAKE. 2.) Syntax issues, & 3.) My own ignorance.
If you have found this thread seeking guidance for similar issues please run through this vid...it was very helpful for me...
https://www.youtube.com/watch?v=Zdxz3YUd1S8
I'll try to post pics of the correct process...once I have it down pat.
Thanks for your patience Bill.
jj
If you have found this thread seeking guidance for similar issues please run through this vid...it was very helpful for me...
https://www.youtube.com/watch?v=Zdxz3YUd1S8
I'll try to post pics of the correct process...once I have it down pat.
Thanks for your patience Bill.
jj
- adafruit_support_bill
- Posts: 88151
- Joined: Sat Feb 07, 2009 10:11 am
Re: /controlling-a-lock-with-an-arudino-and-bluetooth-le HEL
I read through the Make tutorial a couple of times, and it did seem to skip over a few essential points - like what library they were using and where to find it.
Good to hear that it is working for you now. Thanks for the follow-up.
Good to hear that it is working for you now. Thanks for the follow-up.
- jjseeker
- Posts: 29
- Joined: Fri Jul 29, 2016 4:57 pm
Re: /controlling-a-lock-with-an-arudino-and-bluetooth-le HEL
Bluetooth nRF8001 dropping connection to peripherals:
Hi Bill,
Within this same project I am having an interesting problem.
As stated above the BLE module will drop the connection, but only once the unlock function runs successfully & only when using certain solenoids. The https://www.adafruit.com/products/1512 works fine along with another 12V solenoid.
However the https://www.adafruit.com/products/413 (24V) causes the connection to fail and a reconnect requires me to unplug/re-plug the power supply, BUT if I use a 12V electromagnet it disconnects but does not require me to cycle the power to reconnect.
It is the same scenario for the Bluefruit app and the nRF UART app.
naturally I am eyeing the increased voltage as the primary culprit but it seems odd that other 12V items also causes the issue.
I use the correct power supplies for the individual items.
I have looked for code that may indicate a required voltage but have found none.
I have just received an additional nrf8001 so I will swap it out to see if there are any issues there.
Any thoughts on this would be appreciated!
Thanks again,
jj
Hi Bill,
Within this same project I am having an interesting problem.
As stated above the BLE module will drop the connection, but only once the unlock function runs successfully & only when using certain solenoids. The https://www.adafruit.com/products/1512 works fine along with another 12V solenoid.
However the https://www.adafruit.com/products/413 (24V) causes the connection to fail and a reconnect requires me to unplug/re-plug the power supply, BUT if I use a 12V electromagnet it disconnects but does not require me to cycle the power to reconnect.
It is the same scenario for the Bluefruit app and the nRF UART app.
naturally I am eyeing the increased voltage as the primary culprit but it seems odd that other 12V items also causes the issue.
I use the correct power supplies for the individual items.
I have looked for code that may indicate a required voltage but have found none.
I have just received an additional nrf8001 so I will swap it out to see if there are any issues there.
Any thoughts on this would be appreciated!
Thanks again,
jj
- adafruit_support_bill
- Posts: 88151
- Joined: Sat Feb 07, 2009 10:11 am
Re: /controlling-a-lock-with-an-arudino-and-bluetooth-le HEL
Do you have a diode in the circuit to protect against the reverse EMF that occurs when you de-energize the coil?
https://en.wikipedia.org/wiki/Flyback_diode
https://en.wikipedia.org/wiki/Flyback_diode
- jjseeker
- Posts: 29
- Joined: Fri Jul 29, 2016 4:57 pm
Re: /controlling-a-lock-with-an-arudino-and-bluetooth-le HEL
Bill,
Thanks for schooling me on kickback diodes.
I did not have one installed across the solenoid.
Once I installed the 1N4001 (https://www.adafruit.com/products/755) across the 413 solenoid and the electromagnet the strange behavior ceased.
It was a bit counter intuitive to create a "short" like that across the solenoid leads but I guess you can think of it as a shock absorber (?).
Thanks again,
jj
Thanks for schooling me on kickback diodes.
I did not have one installed across the solenoid.
Once I installed the 1N4001 (https://www.adafruit.com/products/755) across the 413 solenoid and the electromagnet the strange behavior ceased.
It was a bit counter intuitive to create a "short" like that across the solenoid leads but I guess you can think of it as a shock absorber (?).
Thanks again,
jj
- adafruit_support_bill
- Posts: 88151
- Joined: Sat Feb 07, 2009 10:11 am
Re: /controlling-a-lock-with-an-arudino-and-bluetooth-le HEL
A 'check valve' might be a better analogy. As long as the current is flowing in the right direction, it does nothing. But when the voltage reverses, it short circuits the coil so that the current doesn't flow backwards through the rest of your circuit.It was a bit counter intuitive to create a "short" like that across the solenoid leads but I guess you can think of it as a shock absorber (?).
Please be positive and constructive with your questions and comments.