-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Resets during ERG training with power changes #612
Comments
I ride ERG a lot and haven't been seeing any reboots. I looked at your log, there's a reboot. Looking at this, It's having a hard time creating anything much for the power table. That still shouldn't cause a reboot, but it might be what's exacerbating it. My guess is what's actually causing a reboot is an insane number being returned from one of the lookup functions. I'll look into adding more protections there. In the meantime, I'd recommend you (Clear active powertable using the app first) give homing a try on your bike. Select the calibrate button on any training app, start pedaling and let the knob go to it's limits. Once it starts moving, you can stop pedaling and let it do it's thing. Once you enable homing, then on every power cycle, the SmartSpin2k will seek to the lowest resistance position on your bike as soon as you start pedaling. Pressing a shifter before or during pedaling will abort the procedure. You can deactivate homing by doing "clear active powertable" using the app. Edit: Also, I just remembered that you have a bit of a custom bike setup that requires very small movements to change power. That's why the power table is having a hard time in your case, because the numbers are similar. You use very low shift steps, correct? Try increasing the number here (to 8 or maybe even 16) and let me know if it helps. Line 559 in 705b7d2
|
Hi Anthony, Thank you for suggesting increasing the Steps to 16. I've tested this configuration and attached two logs for your review: Calibration log: ERG test log: Thank you for your help and support! Attachments: Calibration log |
Hi Anthony, Following up on the issue with homing that I mentioned earlier, I noticed in the documentation that the SS2K version 2 uses a TMC2225 driver, while version 3 seems to include a TMC2209 or a similar driver. Could this difference be the reason why the homing function isn’t available on the v2? Thanks for your help and for the great work on this project. Best regards, |
Okay, yes the 2225 doesn't support sensorless homing. I didn't realize you were using a version 2. In addition to using a 2209, You would also need to look at boards.h and settings.h and add the version resistor and make all of your connections the same as version 3, as some of the pins changed. |
Hi Anthony, I followed your suggestion and increased the step change value to 32. Additionally, I had to raise the "Sim Mode Incline Multiplier" and "Erg Sensitivity" values, which I had previously set to the minimum. Now, during ERG training, I notice that the PowerTable builds more consistently, and overall performance has improved (although it was already working well apart from the occasional resets). Regarding the TMC2209, I understand it's possible to integrate it, but it would require a significant amount of learning in circuit design, which feels like a stretch for me right now—it’d be akin to creating a v2.5 version. Besides enabling homing, would there be any additional advantages to making this upgrade? If there were a considerable benefit, I’d consider buying the v3 board from eMadmanMakes or PCBWay and adapting it to my setup. What’s your take—do you think the update is worth it? Thanks! |
It would enable homing, otherwise, there's no change. I'm not sure how homing would work on your bike either because of the constant pull - it might false trigger the high limit prematurely, but you might be able to increase homing force enough to compensate for that. I'm glad that you were able to get this going! |
I've noticed an issue where I experience resets during ERG mode training sessions. This usually happens when there’s a significant power change, for example, going from 115W to 245W.
In a 1-hour session, this can occur between 0 to 3 times. Today, I was finally able to capture a log of the issue since it happened while my computer was on.
The reset occurred around line 12000 in the attached log.
Additionally, I noticed that the PowerTable was emptied at line 11278, which might be related.
This issue has been happening for weeks, but I hadn’t been able to capture it until now.
Attachments:
Log file with the reset moment. (version 24.12.8)
Thank you in advance for your time and help in investigating this issue.
Custom UDP Receiver (Port 10000).csv
The text was updated successfully, but these errors were encountered: