This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

finding pin assignment for unknown beacon.

Hi,

I bought an nrf51822 beacon from ebay, it has an LED and a button. I am trying to figure out what pins the LED and the button are connected to, without much success. For a start, I was hoping the code below would blink the led, but it doesn't. The beacon works fine, I can run other code on it, and the LED did work with the original firmware. Any other ideas?

for (int pin_number = 1; pin_number <= 31; pin_number++) {
	nrf_gpio_cfg_output(pin_number);    //config pin as output
}

while (true) {
	for (int pin_number = 1; pin_number <= 31; pin_number++) {
		nrf_gpio_pin_toggle(pin_number);
		nrf_delay_ms(500);
	}
}

Thanks!

Parents
  • Thanks to everyone that replied. The mistery deepens...

    The program that blinks all the leds from 0 to 30 works fine other boards (core51822/BLE400)

    The manufacturer got back to me, the led is on pin 29. To exclude the possibility that I burnt the LED when I soldered the wires, I did the following:

    • took a fresh beacon, soldered wires, hooked it up to programmer. The led blinks on boot, with the original firmware -> the led is not broken
    • flash the blinky program, adjusted for led 29, the led is not blinking
    • try to blink all the leds, the led is not blinking.
    • flash some other applications that do not involves leds (just radio) they work fine.

    :(

    Thanks

Reply
  • Thanks to everyone that replied. The mistery deepens...

    The program that blinks all the leds from 0 to 30 works fine other boards (core51822/BLE400)

    The manufacturer got back to me, the led is on pin 29. To exclude the possibility that I burnt the LED when I soldered the wires, I did the following:

    • took a fresh beacon, soldered wires, hooked it up to programmer. The led blinks on boot, with the original firmware -> the led is not broken
    • flash the blinky program, adjusted for led 29, the led is not blinking
    • try to blink all the leds, the led is not blinking.
    • flash some other applications that do not involves leds (just radio) they work fine.

    :(

    Thanks

Children
No Data
Related