ajs123 / KBikeBLE

Arduino-based replacement computer for a Keiser M3 spin bike, with industry-standard Bluetooth services and simple display
19 stars 4 forks source link

Bluetooth Function only #6

Closed chanyork closed 2 years ago

chanyork commented 2 years ago

Hello,

I love your work, unfortunately seems a bit complicated for me.

  1. Is it possible to create a version for us that only add the bluetooth function to the Keiser M3, while keeping the original display please!!?
  2. Does the heart beat sensor work here?

Cheers, York

ajs123 commented 2 years ago

Hi,

The original M3 computer measures the magnet position (resistance) in a different way which precludes having both connected at the same time.

If you search online, you might be able to find an add-on box for the M3 that does just add bluetooth. The last time I checked (a couple of years ago), it was available only in Europe.

Hope that helps!

nealjane commented 2 years ago

This guy sells them in Uk and ships worldwide - but then it only makes it into a standrd M3i (needing converter for apps like zwift) - https://lhproducts.company.site/

chanyork commented 2 years ago

Hello,

Thank you for your email.

Yes, I just notice that it actually prevented me to connect both at the same time. Any adding of diode or resistor you think can help to achieve that?

Cheers, York Chan

On Wed, Mar 9, 2022 at 4:11 AM nealjane @.***> wrote:

This guy sells them in Uk and ships worldwide - but then it only makes it into a standrd M3i (needing converter for apps like zwift) - https://lhproducts.company.site/

— Reply to this email directly, view it on GitHub https://github.com/ajs123/KBikeBLE/issues/6#issuecomment-1062008432, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG37QOMHR52K2BVFVSA5BDLU66C3ZANCNFSM5PXQDWUA . You are receiving this because you authored the thread.Message ID: @.***>

chanyork commented 2 years ago

Hello,

I found out just disconnect the black color line to the original computer than you can have both computer running. and measuring the resistance.

Cheers, York

On Wed, Mar 9, 2022 at 3:02 PM York Chan @.***> wrote:

Hello,

Thank you for your email.

Yes, I just notice that it actually prevented me to connect both at the same time. Any adding of diode or resistor you think can help to achieve that?

Cheers, York Chan

On Wed, Mar 9, 2022 at 4:11 AM nealjane @.***> wrote:

This guy sells them in Uk and ships worldwide - but then it only makes it into a standrd M3i (needing converter for apps like zwift) - https://lhproducts.company.site/

— Reply to this email directly, view it on GitHub https://github.com/ajs123/KBikeBLE/issues/6#issuecomment-1062008432, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG37QOMHR52K2BVFVSA5BDLU66C3ZANCNFSM5PXQDWUA . You are receiving this because you authored the thread.Message ID: @.***>

ajs123 commented 2 years ago

That’s interesting. It confirms my suspicion that the Keiser computer is measuring the resistance intermittently.

If you disconnect the black wire from the Keiser computer, you are using 3.3V from the feather as power to the sensor. This is likely to affect the calibration on the Keiser computer.

chanyork commented 2 years ago

That is what I thought too. But it did not. Both Keiser and Kbikeble are pretty in sync. Hence it give me thinks that the Keiser is only measuring the resistance and as long as the voltage is not too high then will not burn the Keiser board.

By the way. Can we add this in please!!!

  1. ANT+ heart rate reading and send out via bluetooth as well
  2. Screen to have Active Time Counter
  3. Distance or Odometer I read that Keiser use 200 rap as 0.1 or 1 I can't remember.

On Wed, Mar 9, 2022 at 11:39 PM ajs123 @.***> wrote:

That’s interesting. It confirms my suspicion that the Keiser computer is measuring the resistance intermittently.

If you disconnect the black wire from the Keiser computer, you are using 3.3V from the feather as power to the sensor. This is likely to affect the calibration on the Keiser computer.

— Reply to this email directly, view it on GitHub https://github.com/ajs123/KBikeBLE/issues/6#issuecomment-1062880812, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG37QOJXDPGIF2UNA2CCJGLU7CLYVANCNFSM5PXQDWUA . You are receiving this because you authored the thread.Message ID: @.***>

ajs123 commented 2 years ago

Keiser and KBikeBLE agreeing when connected this way might be a matter of good luck!

Regarding the other possible features...

  1. ANT+ - It does appear that the nrf51 SoC supports ANT+ and BLE at the same time, so an interesting possibility.
  2. Time counter - Should also be possible, as an option. Would need to make space on the display!
  3. Distance/Odometer - It would be interesting if Keiser used something that simple. It's listed in the TODO as a future possibility. I was assuming that it would require a model, using power and cadence and maybe resistance...
nealjane commented 2 years ago

See this related to Keiser speed and distance - https://github.com/ptx2/gymnasticon/pull/89

ajs123 commented 2 years ago

Thanks, @nealjane! I’m a little surprised, but if Keiser and Peloton are meant to simulate bikes on flat ground maybe it makes sense to have a basic wind resistance model.

ajs123 commented 2 years ago

@nealjane the latest commit includes a speed calculation using these references. I divided the coefficients by 0.6 to provide Km/h instead of mph. The calculation is only done if FTMS services is enabled since that's the only place it's used right now, and it's untested!

Thanks again!