Arduino connects to a cardboard-circuit
One could create experimental circuits like this simple input/output interface using floating wiring and a breadboard.
If the circuit is not too complex a printed circuit board is not necessary. The process described in this post is just fine and results in a nice cardboard-circuit.
The above cardboard-circuit any many more are possible on cardboard and they can get easily connected to e. g. an arduino board.
Arduino controls a cardboard-circuit
When using an arduino board to connect to a cardboard-circuit simple input/output interface there are many ways of actually implementing the control program of the system.
Some (amongst others) are:
- C (Arduino IDE)
...
if (digitalRead(I0_1)!=0)
{
digitalWrite(O0_0, HIGH);
digitalWrite(O0_1, HIGH);
}
else
{
digitalWrite(O0_0, LOW);
digitalWrite(O0_1, LOW);
}
...
- LDmicro (Ladder Logic) creating C

- Arduino with plcLib
...
in(I0_1);
out(O0_0);
out(O0_1);
in(I0_2);
out(O0_2);
out(O0_3);
in(I0_3);
out(O0_4);
out(O0_5);
in(I0_4);
out(O0_6);
out(O0_7);
...
1-bit ICU controls a cardboard-circuit
Using the WDR-1-bit-computer simulator it is possible to simulate a cardboard-circuit simple input/output interface and its 1-bit ICU control program.

... LDC I0_1 STO O0_0 STO O0_1 LDC I0_2 STO O0_2 STO O0_3 LDC I0_3 STO O0_4 STO O0_5 LDC I0_4 STO O0_6 STO O0_7 ...
A hardware based emulation running on an arduino connected to the cardboard-circuit can also be used to run the 1-bit ICU control program.
...
ext_ram[3] = 0x21; // LDC 1
ext_ram[4] = 0x80; // STO 0
ext_ram[5] = 0x81; // STO 1
ext_ram[6] = 0x22; // LDC 2
ext_ram[7] = 0x82; // STO 2
ext_ram[8] = 0x83; // STO 3
ext_ram[9] = 0x23; // LDC 3
ext_ram[10] = 0x84; // STO 4
ext_ram[11] = 0x85; // STO 5
ext_ram[12] = 0x24; // LDC 4
ext_ram[13] = 0x86; // STO 6
ext_ram[14] = 0x87; // STO 7
...
And of course a real WDR-1-bit-computer is able to perform the task. Just connect the cardboard-circuit and run the native 1-bit ICU control program.

... LDC 1 STO 0 STO 1 LDC 2 STO 2 STO 3 LDC 3 STO 4 STO 4 LDC 4 STO 6 STO 7 ...
Looking for more? Become a patron at https://www.patreon.com/ludwiglabs and help me to create more content.