Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serial test #386

Merged
merged 22 commits into from
Nov 14, 2022
Merged

Serial test #386

merged 22 commits into from
Nov 14, 2022

Conversation

doudar
Copy link
Owner

@doudar doudar commented Oct 19, 2022

Added Peloton serial data to the sensor factory.

Not tested on an actual bike. Not ready to be merged. WIP

EDIT: Initial testing completed. Waiting on secondary testers and then we will finally have Peloton hardware support :)

@doudar doudar requested a review from eMadman October 19, 2022 02:29
@doudar
Copy link
Owner Author

doudar commented Oct 21, 2022

Initial testing is going great. Will do a full ride tonight.

@doudar
Copy link
Owner Author

doudar commented Oct 25, 2022

Latest Binary:
firmware.zip

@doudar
Copy link
Owner Author

doudar commented Nov 5, 2022

Passing along testing to @eMadman . Once that's completed, merging to develop!

@eMadman
Copy link
Collaborator

eMadman commented Nov 5, 2022

Awesome! Going to get my cable made for testing this weekend

@eMadman
Copy link
Collaborator

eMadman commented Nov 9, 2022

I've done two test rides so far - both relatively flat. One sim, another with Erg.

Results are extremely promising so far. I'd like to get in one more with bigger, steeper hills or bigger jumps in power zones.

@chaloney
Copy link
Contributor

chaloney commented Nov 9, 2022 via email

@doudar
Copy link
Owner Author

doudar commented Nov 10, 2022

Isthe cable needed for this the same as the one used for the gymnasticon?ptx2/gymnasticon: Make obsolete and/or proprietary exercise bikes work with popular cycling training apps like Zwift, TrainerRoad, Rouvy and more.github.comSent from my iPhoneOn

@chaloney :
Yes, basically the same cable. The intent is for this to work with our new board (that requires no/minimal soldering) which is in the final testing phases and can be ordered either via JLCPCB or from one of us (whoever wants to pay the setup fee and keep the boards stocked). We're not quite certain what the price point will be on the boards yet but I'd like to keep it reasonable. This isn't a money making venture for any of us but we do need to cover our development costs lest we incur the wrath of our SO's.

Because it requires a level converting UART->Serial driver, we don't have a complete DIY solution yet (without the integrated PCB) but it would be 100% doable. If anyone wants to take up the challenge of putting together a DIY guide, I'd gladly work with them on providing the required information. The PCB development was accomplished with the help of Purdue University Senior Design Class!

If you're interested in being an early adopter, I'll be sending some boards to @eMadman very soon for more testing and potentially a couple kit customers. He is also sourcing some pre-made cables to go along with the boards making the whole thing a print-plug-play setup.

Here's a photo of our latest test batch!

image

image

image

@chaloney
Copy link
Contributor

Thanks for the detailed response. I have a gymnasticon that I currently use with trainer Road on my phone. I have been hoping to use It with a smart spin 2k to make my peloton into a stand-alove swart bike but have been having trouble getting the 3d printed gears to mesh properly ( version 1 case and non-pic). Would I be able to use the cable from the gymnastion & my current ss2k with the firmware from this pull-request (assuming I can figure out the other problems I’m having)? Obviously I’d have to make an entry point in the case for the cable to get to the esp-32 dev board.

@doudar
Copy link
Owner Author

doudar commented Nov 10, 2022

You could breadboard it according to the rev_2 pinout in the current settings.h in the include directory. You'll also then need to apply 3.3v to gpio 34 so that the firmware recognizes the setup as "revision 2".

Then I'd recommend wiring the txd and rxd according to the diagram DFC has https://github.com/intelligenate/dfc/blob/main/img/arduino-circuit.png

The tip can be left disconnected if you're using the head unit in peloton mode. If you're screencasting Zwift or another program to the peloton like we do, you can unplug the headunit and connect txd on the SS2K. SS2K will then request the bike to send power and cadence without having to be in a workout on the peloton.

Both the Peloton TXD (tip) and SS2K TXD cannot be connected at the same time because they interfere with each other.

Copy link
Collaborator

@eMadman eMadman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on multiple rides between sim mode and erg mode. Flashed on a previous gen PCB to confirm functionality there.

Can't think of much other way to break it so it looks good!

@doudar doudar merged commit af30aac into develop Nov 14, 2022
@doudar doudar deleted the serial_test branch December 16, 2022 18:21
@chaloney
Copy link
Contributor

chaloney commented Jan 11, 2023 via email

@eMadman
Copy link
Collaborator

eMadman commented Jan 11, 2023

@chaloney email me at emadmanmakes@gmail.com and we can talk about options there. I can send you a fully assembled one or the PCB and breakout cable for you to DIY the case. I've got some b stock parts that might actually be suitable for you since you're not using the screen.

Here it is in action on my bike:
https://youtu.be/S3yOk56pnr4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants