Closed DHayler closed 9 years ago
Hmm - everything looks about right. I haven’t tried using AdaFruit’s board yet though. Try clearing the EEPROM by adding this into setup for one run: EEPROM.write(0, 0xFF); notif.ccp in the library uses the values defined for MISO and MOSI. It could be that those aren’t equal to what you are using? Maybe hard code them in, instead?
On Jan 2, 2015, at 5:13 PM, DHayler notifications@github.com wrote:
EEPROM.write(0, 0xFF);
Hey thanks for the quick response. I've tried clearing the EEPROM as you suggested but it doesn't seem to have fixed the issue. I have also coded in the MISO and MOSI pins in the notif.ccp:
//Tell the ACI library, the MCU to nRF8001 pin connections
aci_state.aci_pins.board_name = BOARD_DEFAULT; //See board.h for details
aci_state.aci_pins.reqn_pin = 10; //The REQN and RDYN jumpers are settable, make sure this is the same
aci_state.aci_pins.rdyn_pin = 2;
aci_state.aci_pins.mosi_pin = 11;
aci_state.aci_pins.miso_pin = 12;
aci_state.aci_pins.sck_pin = 13;
aci_state.aci_pins.spi_clock_divider = SPI_CLOCK_DIV8;//SPI_CLOCK_DIV8 = 2MHz SPI speed
//SPI_CLOCK_DIV16 = 1MHz SPI speed
aci_state.aci_pins.reset_pin = 9; //4 for Nordic board, UNUSED for REDBEARLABS
aci_state.aci_pins.active_pin = UNUSED;
aci_state.aci_pins.optional_chip_sel_pin = UNUSED;
aci_state.aci_pins.interface_is_interrupt = true;
aci_state.aci_pins.interrupt_number = 2;
//We reset the nRF8001 here by toggling the RESET line connected to the nRF8001
//and initialize the data structures required to setup the nRF8001
//The second parameter is for turning debug printing on for the ACI Commands and Events so they be printed on the Serial
lib_aci_init(&aci_state, false);
aci_state.bonded = ACI_BOND_STATUS_FAILED;
... but this didn't seem to change anything either.
If there's anything else you suggest I try, that would be much appreciated.
Closing this issue as it has been resolved. After following the advice given here and the Nordic Developer site, I found that inserting this code:
pinMode(6, INPUT); //Pin #6 on Arduino -> PAIRING CLEAR pin: Connect to 3.3v to clear the pairing
if (0x01 == digitalRead(6))
{
//Clear the pairing
Serial.println(F("Pairing/Bonding info cleared from EEPROM."));
Serial.println(F("Remove the wire on Pin 6 and reset the board for normal operation."));
//Address. Value
EEPROM.write(0, 0);
while(1) {};
... connecting the pin to 3.3v, then resetting the board worked for me
Hi, I am trying to get this library working with an Arduino Uno, Adafruit Bluefruit LE and a 2x16 LCD. I have followed the steps in the readme file but the device doesn't advertise and as a result cannot be found by my iPhone however I do see the disconnected symbol on the LCD in the corner.
I have looked at some solutions and have tried putting the pins in on the notif.cpp file but nothing has made a difference. I have tried this on iPhone 4s (iOS7) and iPhone 5 (iOS8).
The pinouts: Bluefruit LE: SCK: 13 MISO: 12 MOSI: 11 REQ: 10 RST: 9 RDY: 2
LCD: lcd(8, 4, 5, 6, 7, 3)
I'm kind of lost for what to do now so any guidance would be greatly appreciated. Thanks
Here's the code I'm using: