This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Using a nRF52 DK to Hack a Treadmill

I have purchased a nRF52 DK and want to use it by emulating an ANT+ Stride Based Speed and Distance (foot pod) and pair that with my Garmin FR235 running watch in order to get more accurate pace information to my watch while running on the treadmill. I have a Garmin ANT+ Foot Pod but it's accuracy is so poor, I want to do something better based on a real hard input vs the accelerometers in the foot pod.

The treadmill already has a wheel with a magnet built in that I can use to pickup each revolution and calculate a speed and or distance variable from.

I have already ran several of the simple examples from the V13 SDK. I have already managed to get the S212 soft device downloaded to the DK. I even went as far as downloading the ANT+ Stride Based Speed and Distance Transmitter example to the DK. My ANTUSB-M I just ordered won't arrive until tomorrow so I won't be able to test the TX example until it gets here.

I tried to use my Garmin FR235 running watch to pair to the DK running the TX example but it would not find the device. After doing some reading here I think my problem may be the fact that the examples use the public network key by default and I must change that to the ANT+ network key before real world devices will connect to my DK? Is this correct and if so, where is the location I need to modify the key? I already have the key from thisisant.com.

I am very new to this style of programming. I have done tons of work with the arduino IDE a bit of VB, VB.net and some really simple C#/C++ visual studio stuff. Also have some Raspbian/Raspberry Pi experience. Definitely very much a noobie on embedded ARM Cortex processors. Looks like I am going to try to use the free version of Keil as my IDE unless there is a better option I am not aware of for hobby use.

That being said, I need some pointers on where to go for examples of how to access one of the general purpose IO pins as an input for my speed/ sensor. The electronic/hookup side of things I have within my abilities. Just need examples of how to code that part.

I also see that the profile has cadence as an option. I would like to turn that off and hope that the watch will use its own sensor for cadence. Since my plan to use the wheel magnet will result in an incorrect cadence value. I have no idea how the watch will respond if the cadence value is not present but the speed and distance are. If I get that far with this hack, I will be happy.

Related