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

Any possibility for a clock? #98

Closed
SpeedGP opened this issue Oct 30, 2020 · 2 comments
Closed

Any possibility for a clock? #98

SpeedGP opened this issue Oct 30, 2020 · 2 comments
Labels

Comments

@SpeedGP
Copy link

SpeedGP commented Oct 30, 2020

I absolutely love your project!

I was curious if there could ever be a 4 segment stand-alone clock variant. I don't know much about coding, but might give it a shot if someone wanted to point me in the right direction.

Thanks!!

@scottbez1
Copy link
Owner

Hi @SpeedGP !

Great question. It should be doable without too much work. The code right now gets input over Serial from a computer and calls GoToFlapIndex for each module, after mapping the character (A-Z, 0-9, etc) to the positional index on the spool (0-39).

int8_t index = FindFlapIndex(recv_buffer[i]);
if (index != -1) {
if (FORCE_FULL_ROTATION || index != modules[i]->GetTargetFlapIndex()) {
modules[i]->GoToFlapIndex(index);
}
}

You would just need to replace this code (and the rest of the surrounding code that reads from Serial) with code to check the current time and call GoToFlapIndex with the correct index for each digit in the time if it's changed.

I'd also recommend using an external Real Time Clock (RTC) module which will keep the time better than just checking millis() (which will slowly drift over time) and allow the clock to keep the correct time even if it's unplugged for a while (since RTC modules have their own battery).

The other thing to consider is whether you'd want the clock to still have the A-Z flaps available (and flip through them every time a digit wraps around from 9 to 0) or just numbers. Making the display only have numbers is a bit challenging, because the radius of the flap spool decreases by 4x when the number of flaps goes from 40 to 10 which is difficult to make work mechanically using laser-cut parts. That issue is discussed further in #16 and would require some modifications to the 3d model to make it work, but even then you end up with pretty large gaps between the upper and lower flap -- see #16 (comment)

If you have additional questions, I'd encourage you to join the split-flap Slack group, which I find easier to have discussions and see what others have been building: https://join.slack.com/t/splitflap/shared_invite/zt-dpvol87b-3zUaxXrUd8WauPXr1uBj5Q Other people there may also have additional tips to offer.

@scottbez1
Copy link
Owner

Closing out some old Issues

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

No branches or pull requests

2 participants