Scrap Mechanic

Scrap Mechanic

Not enough ratings
4 Bit Decimal To Binary Converter w/ demo
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
71.113 KB
9 Aug, 2022 @ 12:21pm
1 Change Note ( view )

Subscribe to download
4 Bit Decimal To Binary Converter w/ demo

Description
4 bit (=<15) decimal to binary converter.

How to use:
-Remove the demo
-Logic gates surrounded by white concrete - Input
-Logic gates surrounded by black concrete - Output
-Input:
*Gray - 1
*Yellow - 2
*Lime - 3
*Green - 4
*Cyan - 5
*Blue - 6
*Purple - 7
*Pink - 8
*Red - 9
*Orange - 0
*Dark Red - Reset
-Output:
*Black - Binary Output in order from left to right
*Red - Invalid input indicator (>15)
-Order in which you press buttons does not matter (51 = 15)
-"11" Is a bit different: to input it - press "1" twice but not for too short and not for too long ~100ms
-You can safely remove all the concrete and glass
-The Lights are only for debug - you can remove them too


How does it work? (nerdshit)
The button input gets converted into a switch and a delay is added to normalize it with the "1" input delay in the green section. Debug light of corresponding color lights up. Converted input travels to the red section. The red section interprets the signal - disables incorrect gates and turns on the correct one. If none are correct then the invalid input indicator is powered. the final darker, top XOR gates convert the received number to binary.

-Black and dark gray gates - (Usually) Button to Switch conversion
-Green gates - (Usually) Inputs to modules
-Red gates - (Usually) Reset and Error
-Colorful gates on top of the green module - Reset circuit
-AND gates on the bottom of the red section - 10-15 number detectors
-OR gates on the bottom of the red section - Disabling the circuit when a different number is detected
-XOR gates on top of the red section - Final gates: converting the decimal numbers into 4 bit binary

If you would like to use this converter in your build, please credit me as "DeX" and add these links
YT:
https://www.youtube.com/c/JustDeX5
Steam:
https://steamproxy.net/id/cringe-expert/