Space Engineers

Space Engineers

Not enough ratings
Counter - 2 digits
   
Award
Favorite
Favorited
Unfavorite
Type: Blueprint
File Size
Posted
548.388 KB
27 Jul, 2023 @ 6:28pm
1 Change Note ( view )

Subscribe to download
Counter - 2 digits

Description
This is a simple functional number counter with two 3x5 displays that will increase the shown number every time the grey buttons are pressed. After 99, it will cycle back to 0. The red button immediately resets the counter to 0.
________________________________________________

For those curious, the way it works is:

-First, the LCD panels are controlled by 20 timer blocks, 10 per digit, each one responsible for a number 0-9, turning on/off the relevant panels

-There are also 20 event controllers, 10 per digit, that tell each number-timer when to activate; the last one for digit 1 tells digit 2 to increment up (so 9 -> 10), and the last one for digit 2 resets the counter to cycle back to 0 (so 99 -> 0)

-These event controllers are reading the position of a pair of pistons at 10 increments, one for digit 1 and the other for digit 2, and when the piston position is greater or equal to the given %, it will trigger the relevant timer and turn the piston off to stop it from continuing to extend.

-The "+1" and "+10" buttons turn their respective pistons on and tell them to extend*, as well as starting a secondary timer (at 1 second) that turns the piston on again**

-The "Set to Zero" button activates the "0" number-timers and retracts both pistons all the way
________________________________________________

* If you press the increment buttons too fast, it will increase the number eventually, but only after 1 second. Make sure to space out the frequency of button pressing. If you accidentally do so, double clicking the button should put it back to normal

** the need for the second timer is because for some reason, after the piston extends and the event controller turns the piston off, pressing the button the next time will not extend the piston, but pressing the button again after that does extend the piston.
________________________________________________

This was a brain-teaser project of mine that is part of a much bigger project coming in the future: Engineer League (basically Rocket League but in SE) and this makes up a component of the scoreboard.