← Back

This preview is the content that will print. Choose “Save as PDF” in your browser’s print dialog to make a PDF.

Metatransformer report

Digital levels and wired interfaces

Practice · 70 minutes · Treat logic as voltage ranges plus timing and shared references so a sensor connection survives mismatched levels and missing pull resistors.

Text report: images and diagrams are omitted, and links to project files are inactive. Keep the exported project alongside this PDF for wiring diagrams, models, and linked files.

Learning outcomes

  • Trace a basic push-pull or open-drain digital connection, select a pull-up, and identify voltage-level or ground-reference incompatibility before wiring.

Prerequisites

  • voltage-current-resistance

Concepts

Digital signals are physical voltages interpreted as states. A receiver usually defines a low range, a high range, and an undefined region between them. “3.3 V logic” does not guarantee compatibility with every 5 V device: compare the sender's guaranteed output levels, receiver thresholds, and absolute maximum ratings. Grounds usually need a shared reference so both devices mean the same voltage, unless an intentionally isolated interface is used.

A push-pull output actively drives both high and low. An open-drain output actively pulls low but relies on a pull-up resistor to create high. The pull-up and bus capacitance form an RC rise, so a smaller resistance rises faster but draws more current when low. At 3.3 V with 4.7 kΩ, low-state pull-up current is about 0.70 mA. This is why interfaces such as I²C can share a line without multiple outputs fighting high against low—provided devices follow the protocol and levels are compatible.

Timing gives bits meaning. A clocked interface coordinates sampling with a clock; an asynchronous interface such as UART relies on an agreed bit rate and frame. A logic analyzer can show transitions, but voltage compatibility must be established before connection. For a camera or environmental sensor, the build decision may be to pull an open-drain bus to 3.3 V rather than 5 V because the controller input is not 5 V tolerant.

A common misconception is that a logic high always equals exactly the supply voltage. It is a valid range under specified load. Another is adding pull-ups blindly when a breakout already includes them, making the effective resistance lower. Missing common ground often produces erratic data that resembles software failure. Before debugging code, document signal direction, idle state, reference ground, pull resistors, voltage limits, connector pinout, and timing.

Worked example

Problem

An open-drain line uses a 3.3 V pull-up and has estimated bus capacitance 100 pF. Compare 10 kΩ and 2.2 kΩ pull-ups using τ = RC and low-state current V/R.

Steps

  1. For 10 kΩ, τ = 10,000 Ω × 100 pF = 1.0 µs; low current is 3.3 V / 10 kΩ = 0.33 mA.
  2. For 2.2 kΩ, τ = 2,200 Ω × 100 pF = 0.22 µs; low current is 3.3 V / 2.2 kΩ = 1.5 mA.
  3. The smaller resistor improves ideal rise time by about 4.5× but draws about 4.5× more low-state current.

Result

2.2 kΩ is faster but costs more sink current; selection must satisfy both timing and device current limits.

Sanity check

Because both τ and 1/current scale with resistance here, lowering resistance must shorten τ while increasing current.

Check your understanding

A 3.3 V controller receives an open-drain sensor signal. The sensor tolerates 3.3 V. Where should the pull-up normally connect?

A. To the compatible 3.3 V rail B. To 5 V because digital means either voltage is safe C. To ground D. In series between the two ground pins

Your answer: ______________________________

Reasoning:



Answer key

ANSWER KEY — check only after attempting the question.

A. To the compatible 3.3 V rail

The pull-up establishes the high level, so connecting it to a mutually compatible 3.3 V rail protects the controller input. A 5 V pull-up can violate input limits. Ground would hold the line low, and placing a resistor between grounds does not create the required high state.

Hands-on lab

Goal

Observe how a pull-up turns an open-switch node into a defined digital input and diagnose a floating line.

Equipment

  • 3×AA battery holder
  • 10 kΩ resistor
  • momentary pushbutton
  • breadboard
  • multimeter
  • jumper wires

Procedure

  1. Build a node pulled to battery positive through 10 kΩ, with the button connecting the node to ground; predict released and pressed voltages.
  2. Power the circuit and record actual node voltage in both states plus current predicted through the pull-up when pressed.
  3. Remove power, deliberately disconnect the pull-up, repower, and measure the released node several times while moving your hand nearby without touching conductors.
  4. Diagnose unstable or arbitrary readings as a floating-input condition rather than a valid high.
  5. Restore the pull-up and verify repeatable states; calculate whether the low-state current is within the resistor power limit.

What to observe

  • Expected: released voltage is near the supply and pressed voltage near ground; actual values and meter resolution should be recorded.
  • Expected fault clue: with no pull-up and an open button, the node lacks a defined DC path and may not settle reproducibly.

Transfer challenge

Audit a hypothetical 5 V sensor-to-3.3 V controller link by listing thresholds and absolute limits needed before choosing a divider, level shifter, or direct wire.

Cautions

  • Use only the battery holder and confirm its voltage is within the components' ratings.
  • Power down before moving jumpers; never assume a named protocol guarantees electrical compatibility.

Evidence record

Learner: ____________________ Date: ____________________

Evidence artifact or file: ____________________________________________

ItemRecord
Prediction or expected result
Actual observation or measurement
Conditions and tools used
Difference from expectation
Next decision or follow-up

Notes:




Sources and references

  1. MIT OpenCourseWare: Circuits and Electronics (opens in a new tab)
  2. MicroPython RP2 Quick Reference (opens in a new tab)