Hi, I'd like to connect my nRF2740 to my MCU Arduino Micro and test it with the sample codes found in your GIT repo. How can I do this? Best regards, Alessandro
Hi, I'd like to connect my nRF2740 to my MCU Arduino Micro and test it with the sample codes found in your GIT repo. How can I do this? Best regards, Alessandro
Hi,
Please take a look at the readme file for the Arduino SDK. You should open one of the projects to see which pins are configured by default. I suggest starting with the hello world project.
The HW layout of the nRF8001 module can be found here.
Notice the following in the main readme file: “When using the nRF2740/nRF2741 modules directly wired to the Arduino:
When the Arduino uses a 5v microcontroller, you may have to use level converters or a resistive divider to get the voltage to 3.3v for the lines that are output from Arduino to the nRF8001. The Arduino(3.3v-1.9v) or the Arduino DUE can be wired directly to the nRF8001 without any level converters or resistive dividers.”
Best regards, Runar
Thank you very much for the explanation. I just have one problem. If I use the following pin configuration (described in the hello world example), the nRF8001 is not working and I can't discover it using my Master Control Panel:
aci_state.aci_pins.board_name = REDBEARLAB_SHIELD_V1_1; //See board.h for details REDBEARLAB_SHIELD_V1_1 or BOARD_DEFAULT
aci_state.aci_pins.reqn_pin = 9; //SS for Nordic board, 9 for REDBEARLAB_SHIELD_V1_1
aci_state.aci_pins.rdyn_pin = 8; //3 for Nordic board, 8 for REDBEARLAB_SHIELD_V1_1
aci_state.aci_pins.mosi_pin = MOSI;
aci_state.aci_pins.miso_pin = MISO;
aci_state.aci_pins.sck_pin = SCK;
aci_state.aci_pins.spi_clock_divider = SPI_CLOCK_DIV8;
aci_state.aci_pins.reset_pin = 4; //4 for Nordic board, UNUSED for REDBEARLAB_SHIELD_V1_1
aci_state.aci_pins.active_pin = UNUSED;
aci_state.aci_pins.optional_chip_sel_pin = UNUSED;
You have to change the board_name to BOARD_DEFAULT
I tried that but it's still not working.
I tried any type of combinations of the pins and all the examples, but I never managed to make it visible from the iPhone or the Master Control Panel. I really don't know how to do. Can you please help me?