← Smart Energy Monitoring Project 01 / Evidence hub

Every artefact,
with its status.

Everything this project has produced, grouped by kind. Each entry says what the file is, why it matters, whether it has been verified, and how to open it. Nothing here is a rendering of the work: these are the files.

Artefacts31
Verified22
Drafted9
Physical prototypenot built

Software

The model, its tests and the data it produces

6 items

Simulation model

Verified

A dependency-free model of a low-voltage DC energy monitor: source and load solved together, a configurable sensing chain, sampled power and trapezoidal energy on real timestamps.

This is the reference implementation. The browser instrument and the firmware test vectors are both checked against it.

Open

Reference test suite

Verified

Seven worked cases (A–G) with hand-derived expected values and stated tolerances, printed as a table.

Shows the arithmetic is right where the mathematics is exact, and quantifies where it is not: a step straddling one interval costs 0.0093 %.

Open

Independent verification

Verified

594 checks that compare the model against a second construction: a switching-cycle simulation, a closed-form integral, Ohm and Kirchhoff balance, additivity, quantisation bounds and noise statistics.

A model error that is consistent with itself survives the reference suite and fails this one.

Open

Energy duration cases

Verified

The 1 s / 9 s / 1 hour / irregular / invalid-sample cases, with expectations derived by hand.

Written after a published description confused the sample interval with the duration. It now cannot happen again silently.

Open

Reference datasets

Verified

Six CSV files with metadata headers, regenerated from the model and checked against hand values.

Lets a reviewer open the data in a spreadsheet without running any code.

Open

Interactive instrument

Verified

The model running in the browser with controls, four live charts, five guided experiments and CSV export.

The fastest way to see what the model does. Nothing it shows is a hardware measurement.

Open

Hardware

The electrical design, its checks and its parts

8 items

KiCad schematic

Verified

A native KiCad 9 project built from official library symbols: the INA226 as the bare IC, its address straps, the shunt, the protection and the microcontroller interface.

Editable and ERC-checked. This is the authoritative electrical description, not a picture of one.

Open

ERC report

Verified

The output of kicad-cli sch erc: 0 errors, 0 warnings.

The evidence behind the claim that the schematic is electrically legal. It does not prove the circuit works.

Open

KiCad netlist

Verified

The netlist exported by kicad-cli, compared pin by pin with the design file.

42 pins and 8 nets agree between the schematic and the design intent. Any disagreement fails the build.

Open

Schematic drawings

Drafted

Two vector drawings generated from the design file: the power path, and the supply and I²C wiring.

Easier to read than the KiCad export on a small screen. Generated from the same data, so they cannot drift.

Open

Design source

Verified

One JSON file holding every component, pin, net and rating, with the rationale for each part.

The single source from which the drawings, the netlist, the BOM and the KiCad project are generated.

Open

Bill of materials

Drafted

Parts with manufacturer, ratings, function, rationale and a datasheet reference each. No prices are quoted.

What to buy, and why that part. Nothing has been purchased.

Open

Design rule checks

Verified

Twenty-five rules written for this circuit — sensor ranges, shunt dissipation, clamp voltage, connector ratings, logic compatibility, ground continuity — each printing its margin.

Reproducible, and not a substitute for ERC. Both exist because they check different things.

Open

Prototype review checklist

Drafted

The physical steps to take before buying or energising anything, including stop conditions.

The handover document for the part of the project that needs hands.

Open

Firmware

What runs on the board, and how it was tested

6 items

Application layer

Verified

I²C initialisation, sensor self-test, calibration, CSV reporting and the scheduling loop for the ESP32.

Cross-compiles for the target. Has never been flashed.

Open

Sensor driver

Verified

Device logic independent of Arduino: configuration, identity check, register reads, saturation and over-voltage handling.

The same code the host tests exercise, through a transport interface.

Open

Energy integrator

Verified

Trapezoidal accumulation on wrap-safe millisecond timestamps, with an explicit missing-data policy.

Where the difference between "no data" and "zero power" is decided.

Open

Firmware tests

Verified

69 checks over eight vector sets: constant, step, irregular, gap, invalid, rollover, zero current, calibrated.

Desktop arithmetic, not hardware.

Open

Mock-bus sensor tests

Verified

29 checks driving the driver through a simulated I²C bus: absent device, NACK, wrong identity, saturation, recovery.

Proves the error handling. Says nothing about a real INA226.

Open

Build evidence

Verified

Toolchain versions, the exact build command, flash and RAM use, and the two compile errors the first attempt produced.

A successful compile is not a working device, and this file says so.

Open

Verification

The checks that tie the three layers together

5 items

Configuration manifest

Verified

The address, shunt, GPIOs, timing and measurement nodes that the schematic, the firmware and the site must all agree on.

Drift between hardware and firmware is the defect that survives every unit test and fails on the bench.

Open

Consistency test

Verified

Thirty checks that read the manifest and compare it with the C++ sources, the design file and the published pages.

Fails the build if the schematic and the firmware stop agreeing.

Open

Package coherence test

Verified

Checks that every referenced artefact exists, that prices are not invented, and that no page claims more than the artefacts support.

A claim of ERC is only allowed if the report exists and says 0/0.

Open

Vectors vs model

Verified

The firmware test vectors replayed through the verified JavaScript model.

Two implementations of one written rule, compared where they should agree and where they deliberately differ.

Open

Known limitations

Drafted

What the project does not establish, written down before anyone asks.

The most useful document for a reviewer deciding how much to trust the rest.

Open

Documentation

For a reader who wants the whole story

6 items

Technical dossier (PDF)

Verified

A ten-page engineering report generated from the Markdown source: abstract, objectives, requirements, architecture, model, hardware, firmware, verification, results, limitations and attribution.

Written for a supervisor or admissions reviewer who will not browse a website.

Open

Dossier source

Drafted

The maintainable Markdown the PDF and the print page are generated from.

One source, three outputs — nothing is authored twice.

Open

Requirements

Drafted

S1–S13 and E1–E12 with acceptance criteria, each marked verified or proposed.

Shows which requirements are met by evidence and which are still intentions.

Open

Model documentation

Drafted

Equations, units, integration method, error model, data types and test coverage.

Everything needed to reproduce a published number without the dashboard.

Open

Design review

Drafted

What was verified, how, what was not, and the questions only the physical parts can answer.

Includes the finding that VBUS was missing from the previous revision.

Open

Reproduction instructions

Drafted

The exact commands and the output to expect.

Node, g++ and Python 3 are enough for the software side.

Open

What the labels mean

Verified
Checked by a test, a tool or a comparison that can be re-run. The check exists in this repository.
Drafted
Written and reviewed but not machine-checked, or a design artefact that no tool can validate without the physical parts.
Untested
Depends on hardware that does not exist. No entry currently carries this label, because untested hardware results are not published at all.