Block/microcontroller

From OpenComputers: Rebooted
Revision as of 08:08, 24 August 2026 by imported>OCDoc Import (Imported from legacy OpenComputers documentation at ocdoc.cil.li)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Microcontroller

Microcontrollers are more restrictive versions of Computers. The key limitation is that they do not contain a slot for a Hard disk drive, and rely solely on a programmed EEPROM for specific functionality. They can not interact with external components!

Microcontrollers can be built by placing a Microcontroller case in an Assembler. Higher tier Microcontroller cases can take more components and upgrades (as well as higher tier components and upgrades). Microcontrollers take a limited subset of upgrades, and do not contain Upgrade or Card container slots. Graphics cards cannot be placed into the expansion slots either.

MCUs do not automatically forward network messages. They do not distribute power. Network messages arriving on all sides will always be forwarded to the MCU. Which sides are used for sending can be controlled via the `microcontroller` component. A computer can access its external component if it is directly adjacent to the microcontroller.

The following code snippet illustrates one particular usage of Microcontrollers. The program detects redstone signals (requires a redstone card), and uses a piston upgrade to push a block. ```lua local r,p = component.proxy(component.list("redstone")()), component.proxy(component.list("piston")())

while true do

  computer.pullSignal(0.5)
  if r.getInput(2) > 0 then
      p.push()
  end

end ```

Contents

Blocks Category Documentation
Blocks Computers Computer Case - Server Rack - Microcontrollers
Display Hologram Projector - Keyboard - Screen
Power and Networking Access Point - Capacitor - Net Splitter - Power Converter - Power Distributor - Relay
Extensions Adapter - Cable - Disassembler - Disk Drive - Geolyzer - Motion Sensor - Redstone I/O - Transposer - 3D Printer
Robotics Assembler - Charger - Drone - Robot - Waypoint