Is a reference to the extension saved in my AI2 companion which might explain why the app worked on one phone and not the other because each companion had a reference to a different extension.Īnyway, hopefully I can now move forward. So what you really need is the new Adafruit Bluefruit LE Micro - it's an Atmega32u4 chip (same as used as in the Adafruit Flora or Arduino Leonardo) plus our SPI Bluefruit LE Friend in one. So I am not sure what is going on, I assumed that because I had downloaded and installed the latest BluetoothLE extension at the beginning of my developments that it was always applied in any future or past app I developed but when I start a new app I have to go through the process of installing the BluetoothLE extension again. Heck yeah With BLE now included in modern smart phones and tablets, its fun to add wireless connectivity. Bluefruit LE SPI Friend Adafruit Motor/Stepper/Servo Shield for Arduino v2 Kit Adafruit 16-Channel 12-bit PWM/Servo Shield - I2C interface I had bought these pieces (and more) for the Bluetooth Controlled Motorized Camera Slider (blog) tutorial, that was a lot of fun to do Ive gone through the code and, well. From this point everything has been working ok. ![]() This obviously didn’t work so I deleted and reinstalled the app again but this time I selected import extension and then it showed updating. I then deleted the BluefruitLEDcontroller.aia app I had been working on and re-installed it but I noticed that the BluetoothLE extension was version 2 so I deleted the extension (without heeding the consequences of the message about all block references being removed) and installed the latest extension. This library is compatible with all architectures so you should be able to use it on all the Arduino boards. I cant remember all the stages but at some point the BluefruitLEDcontroller.aia app on my phone froze and the only way out was to uninstall then reinstall the MIT companion, is this where things went wrong? Arduino library for nRF51822-based Adafruit Bluefruit LE modules Author: Adafruit. At this stage I switched to a second phone and both apps work on that. I then went back to my first app and that had now stopped functioning as well. All went well for about a day and half then this app stopped finding BLE devices. The next app I developed by downloading the BluefruitLEDcontroller.aia file and then modifying it. ![]() My first MIT app I built following the online instructions which included downloading and installing the latest BluetoothLE extension. The SPI bus means that this breakout and library will work on any Arduino as long as you're using the hardware SPI pins. Create the bluefruit object, either software serial.I think my problems are associated with updating the BluetoothLE extension but I don’t understand why.Īn explanation of what I did may be of interest: utility AdafruitATParser.cpp AdafruitATParser.h AdafruitBLE.cpp AdafruitBLE.h AdafruitBLEBattery.cpp AdafruitBLEBattery.h AdafruitBLEEddystone.cpp AdafruitBLEEddystone.h AdafruitBLEGatt.cpp AdafruitBLEGatt.h AdafruitBLEMIDI.cpp AdafruitBLEMIDI.h AdafruitBluefruitLESPI.cpp AdafruitBluefruitLESPI.h AdafruitBluefruitLEUART. The nRF8001 breakout has full level shifting to make it safe to use with 5V logic, and uses a custom SPI-type bus to talk to the Arduino. If you try to make use of a reserved pin number an ERROR response will be generated. ![]() ![]() Please help and let me know where I am going wrong, looking forward for your reply #include Some pins are reserved for specific functions on Bluefruit modules and can not be used as GPIO. I am attaching my program for your reference. I have correspondingly changed the pin configurations in the bluetooth file. I am doing a data logging kind of a project using bluetooth, I have written the code and I find it strange that the bluetooth is not working properly especially the bluetooth.isconnected() function is not detecting whether already connected or not if I initialize Sd module before the ble.isConnected() the other way round things seem fine (checking for ble and then SD), I don't know whats going wrong even though my code seems normal, I spent weeks looking into it but don't know whats wrong. Software Subscribe In order to try out our demos, you'll need to download the Adafruit BLE library for the nRF51 based modules such as this one (a.k.a.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |