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

nRF51822 nano seconds

Hello all is there a way to have the nRF51822 report back UTC in nano seconds, my though on this is the basic RSSI does not really tell the distance correctly I would like to add the time stamp on the standard packet and then the receiver would be able tell the distance by measuring the time it takes to get to the receiver. Or if the RSSI could be a double as apposed to an integer that might help also, I have the location down to about 1.5 meters and I can triangulate them but there are times when the RSSI it totally off base.

  • There's not a way to have the nrf51822 (or nrf52832) report UTC time at all. The chip has no peripheral which deals with real time. The clocks on the chip are just timers, they'll count and give you time differences between things, but that's it.

    And nano seconds? The device runs at 16MHz so 1/16,000,000 is your limit of resolution, 62.5ns, (which is about 20m distance for electromagnetic radiation) and that's using the HF Clock powered TIMER, not the slower 32.768kHz timer. And you have bluetooth running too so anything you do is subject to delays imposed by the softdevice.

    So I think you may have some issues trying to do what you're trying to do.

Related