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

Treadmill gpio #627

Merged
merged 5 commits into from
Jan 27, 2022
Merged

Conversation

december-soul
Copy link

@december-soul december-soul commented Jan 27, 2022

Here is my version that I have now tested a few workouts.

I am not yet completely satisfied because a set the speed can take quite a bit longer.
So from 6 km/h to 12 km/h are with me, in 0.1 steps, 60 keystrokes a 400 ms. So over 24 seconds.
Although the treadmill accelerates anyway not soo fast but the time seems to me still very long. But maybe that is not wrong.
I have already thought about how I can do it differently.

Then it turned out that my treadmill doesn't like it when two buttons are pressed at the same time. Therefore, I have now protected the critical section with a semaphore. But it does not make it faster.

Unfortunately I had to reassign the pin numbers because the previous pins do not exist on my system (RasPi B2). The new GPIO pins are available on all boards.

#525

@cagnulein
Copy link
Owner

Great! I like it. Don't you have other preset buttons for the speed on the treadmill? @december-soul

@cagnulein cagnulein merged commit 6aacfe3 into cagnulein:treadmill-gpio Jan 27, 2022
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.

None yet

2 participants