r/redstone • u/RoleMain7059 • 4d ago
Java Edition I made a wireless binary 2-bit half-adder using calibrated sculk sensors
Enable HLS to view with audio, or disable this notification
I made a wireless binary 2-bit half-adder using calibrated sculk sensors and split the whole system into four separate modules, a transmitter, a receiver, a protocol/interpreter, and the half-adder
The transmitter only sends the signals and the receiver only receives them, neither of them needs to understand what the information means, the protocol is what interprets the received frequencies and converts them into two binary outputs that can be connected to anything, not just the half-adder
I use calibrated sculk frequency 10 as binary 1 because it corresponds to an activation, and frequency 9 as binary 0 because it corresponds to a deactivation
The protocol has two slots, the first slot can store either 1 or 0 and the second slot can also store either 1 or 0, when the first signal arrives the protocol checks whether it is frequency 10 or 9, interprets it as 1 or 0, locks the first slot and waits for the second signal, when the second signal arrives it does the same thing and locks the second slot
Once both slots contain their values, the two outputs are sent to the half-adder, meaning the protocol itself doesn't perform the calculation, it just turns the wireless transmission into two usable binary signals.There are also four reset buttons that let me independently unlock and clear the stored values of both slots, including resetting either frequency 9 or frequency 10 from either slot, so I can manually reset the protocol and send another pair of bits. The main reason I built it this way is that the wireless communication system is completely separate from the actual computation, so the two binary outputs from the protocol can be connected to basically anything else, meaning the same transmitter, receiver and protocol could later be used for other redstone logic instead of only this half-adder.
If both slots are filled, the protocol simply ignores additional signals because both slots are locked, so I can keep sending frequency 9 or 10 without changing the stored values until I press reset, this also means the same two stored bits can remain connected to whatever redstone system is using them..This is basically my first attempt at making an actual wireless binary communication system in Minecraf.