The Matang station, part by part
Click any part of the 3D model, or a name in the list, to see what it is and what it does. Use X-ray to look inside the base, and Explode to pull the parts apart.
Read a fruit with two laser chips
Pick a fruit case, set the conditions and press Play. Like pressing the station's button, it runs one reading: both chips image the speckle, the ESP32 computes two numbers, and the classifier gives a verdict. All numbers come from our speckle simulator, running in your browser.
Table and room
Station hardware
Inside the chip
Tissue under the laser
What the chips report, frame by frame
Where each reading lands
Small marks: 180 simulated training readings with random shake and light. Shaded areas: where the classifier decides each case. Rings: your readings.
All cases under the same settings
Run all cases reads each fruit case once with the settings above and lists the result.
| Case | Assumed D | Living share | One chip | Activity Index | IQ drop | Verdict | Match |
|---|---|---|---|---|---|---|---|
| Not run yet. | |||||||
What the simulator verified before we build hardware
Experiments E1 to E4 come from our Python speckle simulator (matang_sim, results/summary.json). The simulation tab runs a JavaScript port of the same model. None of this is real fruit yet: measuring real mango tissue is the first job of prototype V1.
The Activity Index rises steadily with tissue activity
Subtracting the tile chip removes 73% of table shake
Two chips plus IQ drop sort three activity levels 91% of the time
| True level | read as inert | read as low | read as high |
|---|
Cross-check with the JavaScript engine: 45%, 85% and 95% on the same test.
Open question for PixArt: an on-chip motion threshold could hide the signal
| Chip behaviour (assumed) | Activity Index, live | inert | IQ drop, live |
|---|
A 0.05 px threshold erases the motion signal, while the IQ drop survives every case. That is why Matang reads both numbers.
Fruit cases in the simulation tab
| Case | Assumed D (rad²/s) | Living share | Why we assume it |
|---|
How the engine works
A 64 x 64 grid of scatterers seen through a circular pupil makes speckle grains about 2.5 pixels wide. A share of the scatterers is alive: their phase takes a random step of √(D/1000) radians each 1 ms chip frame. Shot noise and read noise are added before the chip sees the image.
How the chip is emulated
Each new 32 x 32 frame is cross-correlated with the previous one within ±3 pixels. The peak gives the shift (10 counts per pixel) and its height gives image quality on a 0 to 255 scale. The Activity Index is the RMS change of the accumulated fruit-minus-tile position over 50 frames.
What it does not show
Which activity levels real unripe, ripe, bruised and decaying mango produce is not known yet. The browser runs slower than the chip's 1000 frames per second, so the clock shows simulated chip time.