AND
Y = A · B| A | B | Y |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
High only when both inputs are high.
These are things I’m learning and building, set out so you can play with them. You don’t need to be an engineer: every exhibit says what it is and why I think it’s interesting. Most of them connect to one of my research projects.
everything here actually works — go ahead and click
Computers only have on and off. Here’s how that becomes every number. Flip bits and watch the value change.
what you’re looking atEight switches that make one number: tap a bit to flip it and watch the decimal value change.
Decimal42
Hex0x2A
Binary0010 1010
Signed42 as an 8-bit two’s-complement byte
Place values: click a bit to flip it
Sum65 = 0b100 0001
Seven logic gates, then how a few of them add two bits, then how four adders add four-bit numbers. This is the bottom of every processor.
what you’re looking atLogic gates wired into adders: tap the inputs and follow the 1s and 0s through the circuit.
Tap an input to toggle it. The current row of each truth table is highlighted.
| A | B | Y |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
High only when both inputs are high.
| A | B | Y |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
High when at least one input is high.
| A | B | Y |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
High when the inputs differ: one-bit addition without the carry.
| A | Y |
|---|---|
| 0 | 1 |
| 1 | 0 |
Inverts a single input.
| A | B | Y |
|---|---|---|
| 0 | 0 | 1 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
Universal: every other gate can be built from NANDs alone.
| A | B | Y |
|---|---|---|
| 0 | 0 | 1 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 0 |
Also universal. The Apollo Guidance Computer was built from NOR gates.
| A | B | Y |
|---|---|---|
| 0 | 0 | 1 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
High when the inputs are equal: a one-bit comparator.
Adds two bits. XOR gives the sum bit; AND gives the carry.
1 + 1 = 102 = 2
Two half adders and an OR. This exact structure, chained eight times, is RISC8’s adder.
1 + 1 + 0 = 102 = 2
✓ matches RISC8’s fullAdder()
Σ = 010002 = 8
Try A = 1111, B = 0001: the carry has to travel through every stage before the answer is valid. That worst-case path is why fast adders use carry-lookahead instead.
Flip three switches until the lamp lights. The third puzzle is secretly the carry-out of a full adder.
what you’re looking atA lamp wired to a hidden logic rule: flip the three switches until it lights.
Puzzle 1 of 4 · Warm-up
lamp = ((A AND B) AND C)
The arithmetic unit from my RISC8 processor, running its real gate-level code. The full processor →
what you’re looking atThe arithmetic unit from my processor: pick an operation, flip bits in A and B, and read the result and flags.
Eight full adders in a row. Click bits to watch the carries change.
Write assembly, step the clock, watch the datapath light up. It lives with the research it belongs to.
Three joints, a camera and a force sensor: a software sketch of my robotics research. The research →
what you’re looking atA simulated three-joint arm: drag the object, then tap Grasp and Lift to see if the grip holds.
Ready. Drag the object along the table, then try Reach, Grasp and Lift.
An illustration of the research idea, not its method or results. Drag the object, then Grasp and Lift.
Sample a wave too slowly and it lies to you. The same reason wheels look like they spin backwards on video, and the reason my phased-array project samples carefully.
what you’re looking atA fast wave sampled too slowly: drag the sample rate down and watch a fake, slower wave appear.
Sampling at more than twice the signal frequency (Nyquist), so the dots trace the real 3 Hz wave.
The same maths that splits a sound into frequencies can redraw any shape with spinning circles. It’s the idea under the FFT in my phased-array project.
what you’re looking atSpinning circles stacked tip to tail can draw any closed shape: add harmonics to build a square wave and watch the 9% overshoot that never goes away, or draw a loop and watch the circles learn to redraw it.
f(x) ≈ 4/π · (sin x + sin 3x/3 + sin 5x/5 + ⋯ + sin 13x/13)
Square wave from 7 odd harmonics (up to 13×); overshoot ≈ 9.0% at every edge.
Finished projects hide the wrong turns and the tempting shortcuts. Here are three ideas I set aside, what showed me they wouldn’t work, and what replaced them. Each is documented elsewhere on this site.
idea 01 · retired
My first research question (October 2026) asked how computer vision could make a robot arm more accurate. One of the readings showed that a robot doesn’t always know exactly where its own arm is, and a camera can’t tell you how hard the gripper is squeezing. A grasp can look right and still fail.
instead → Add a force sensor, and ask the arm to predict, and learn from, its own failed grasps.
how the question changed →idea 02 · retired
A pipeline is faster, but hazards and forwarding make every bug harder to see, and there was no way yet to prove even the simple version was right.
instead → A multi-cycle core, four readable clock states per instruction, checked byte-for-byte against a golden trace. Pipelining comes next, against those same traces.
the decision →idea 03 · retired
It sounds obvious. The contrast model says otherwise: colour that lands on the whole strip, not just the line, darkens the background too, so the line can get darker while the test gets worse.
instead → Judge every enhancement by contrast between line and background, and test that cheaply with food dye on paper before any chemistry.
try the model →Smaller projects, each a study of one layer of the stack. All open source.