Skip to content

Microcontroller Frame

Need a recipe? Use JEI in game. Need a starting route? Start here

Microcontroller Frame

The frame runs small Volt programs on up to four programmed microcontrollers. It reads inputs, passes values from one chip to the next, and emits a control signal at the front. It can also run a hand-etched board from an older world.

Build: Machine Workshop. In the development build it takes no casing: 4 iron plates, 2 glass blocks, 2 Copper Contacts and 1 Blank Circuit Board (layout in JEI). The 0.6.0 download uses an older plate-and-wire recipe; see JEI.
Power: rear DC terminal; 12 J reserve; each running chip draws about 0.2 W, with a separate small signal-output budget.

Connections and slots

Position Purpose
Rear DC machine power
Left External control input 1/A
Front Low-current control output
Legacy board slot An old Etched Circuit Board
Four chip slots Programmed microcontrollers, in order

The front signal cannot supply machine power or directly operate vanilla redstone. Wire machine power separately. Left and right are relative to the machine's front.

First example: a programmed inverter

  1. Etch a 256 B microcontroller in the Small Electronics Lab.
  2. On a Terminal, create /home/not.volt in the Editor and save this program:
output(1, not input(1))
  1. Put the chip in a Terminal drive bay. In the shell, run burn /home/not.volt.
  2. Move the chip into the frame's first chip slot. Leave the legacy board slot empty.
  3. Supply rear power and turn Master Power on. Select the panel as input A's source.
  4. Set A LOW: the front output should be HIGH. Set A HIGH: the front output should be LOW.

Read the frame's input and output indicators before connecting it to anything else. The program runs automatically each tick; no loop is needed for this example.

How a chain works

The first programmed chip receives the frame's inputs. input(1) and input(2) read A and B as Boolean values. Each chip's output(n, value) supplies values to the next programmed chip. The last chip's output 1 controls the physical front output. Empty or blank chip slots are skipped.

Each chip runs its program once per tick, in slot order. Use mem for values you want to keep between ticks; chip changes or loss of usable power reset that working memory. print(...) records a short diagnostic line. Chips can also call devices touching the frame.

Chip Program capacity Instruction budget each tick
256 B 256 B 500
1K 1,024 B 1,000
4K 4,096 B 2,000

A chip cannot wait like a desktop program. An error, wait, or exhausted instruction budget produces a fault and retains its previous output values for that stage. Inspect the frame's status, then shorten or fix the program before depending on its output.

Panel and external input

Set A Source to Panel to test with the A switch. Set it to External to read the left terminal. B remains a panel input. Master Power OFF stops the running control and clears physical output while preserving stored charge.

Existing hand-etched boards

Put an old Etched Circuit Board in the legacy board slot to run it with rear power and Master Power on. A board in that slot takes precedence over the chip chain. Remove it to run programmed microcontrollers.

The old board's stored design remains usable; you do not need to rebuild it in the new lab. If you prefer to recover its electronic components, use the lab's Salvage slot. See Boards and old circuits.

If it does nothing

  • Check rear power, stored charge, and Master Power.
  • A blank chip has no program. Run burn on a Terminal to inspect the chips in its bays.
  • Remove a legacy board when using the chip chain.
  • Check whether A is using Panel or External.
  • Read chip faults: waiting and long-running loops do not fit the per-tick chip model.
↑↓ move↵ openesc close