by adom
ST VL53L5CX Time-of-Flight 8x8 multizone ranging sensor, 400 cm, 63 deg diagonal FoV, I2C, optical LGA-16 6.4 x 3.0 x 1.5 mm. Pinout extracted from the datasheet, KiCad symbol with chip outline, footprint, Fusion library, manufacturer STEP (Z-up, FoV on/off, side-etched MPN) and provenance.
main
John Lauer
Family contract: pipeline 1.0.0 that built the three VL53Lx pages
8e4500f
#!/bin/bash
# Full derived-asset chain for the three ToF parts (run from the project root).
set -u
S=https://step2glb-gmdoncpxdwx0.adom.cloud
D=3d-chips/derived
WALL=${ETCH_WALL:-+y}
conv(){ f=$1; out=$2; R=$(curl -s -m 90 -X POST "$S/convert" -H "X-Client: tof-8x8-sensors" -H "X-Job-Name: convert-$(basename $f)" -H "Content-Type: application/octet-stream" --data-binary @$f); J=$(echo "$R" | python3 -c "import sys,json; print(json.load(sys.stdin).get('job_id',''))" 2>/dev/null); [ -z "$J" ] && { echo "convert $f: submit failed $(echo $R | head -c 200)"; return 1; }; for i in $(seq 1 60); do sleep 3; ST=$(curl -s -m 20 "$S/jobs/$J"); s=$(echo "$ST" | python3 -c "import sys,json; print(json.load(sys.stdin).get('status'))" 2>/dev/null); [ "$s" = complete ] && break; [ "$s" = failed ] && { echo "convert $f FAILED"; return 1; }; done; curl -s -m 120 -o "$out" "$S/jobs/$J/result"; echo "glb $out $(stat -c%s $out)"; }
thumb(){ f=$1; out=$2; pose=${3:-iso}; w=${4:-1200}; h=${5:-900}; R=$(curl -s -m 90 -X POST "$S/thumbnail?width=$w&height=$h&pose=$pose&upAxis=z" -H "X-Client: tof-8x8-sensors" -H "X-Job-Name: thumb-$(basename $f)-$pose" -H "Content-Type: application/octet-stream" --data-binary @$f); J=$(echo "$R" | python3 -c "import sys,json; print(json.load(sys.stdin).get('job_id',''))" 2>/dev/null); [ -z "$J" ] && { echo "thumb $f: submit failed"; return 1; }; for i in $(seq 1 60); do sleep 3; ST=$(curl -s -m 20 "$S/jobs/$J"); s=$(echo "$ST" | python3 -c "import sys,json; print(json.load(sys.stdin).get('status'))" 2>/dev/null); [ "$s" = complete ] && break; [ "$s" = failed ] && { echo "thumb $f $pose FAILED"; return 1; }; done; curl -s -m 60 -o "$out" "$S/jobs/$J/result"; echo "png $out $(stat -c%s $out)"; }
for m in VL53L5CX VL53L7CX VL53L8CX; do
R=0; [ $m = VL53L7CX ] && R=180
echo "== $m etched variants $(date +%T)"
python3 tools/vendor_step.py 3d-chips/vendor/$m-cse-yup.step $D/$m-etched.step --rot-z $R --etch $m --etch-wall $WALL --report $D/$m-etched.provenance.json | cut -c1-90
python3 tools/vendor_step.py 3d-chips/vendor/$m-cse-yup.step $D/$m-fov-etched.step --rot-z $R --keep-fov --etch $m --etch-wall $WALL --report $D/$m-fov-etched.provenance.json | cut -c1-90
conv $D/$m-etched.step $D/$m-etched.glb; conv $D/$m-fov-etched.step $D/$m-fov-etched.glb
cp $D/$m-etched.step ../chip-fetcher/library/$m/$m.step
echo "== $m hero $(date +%T)"
python3 tools/hero_step.py $D/$m-etched.step footprints/$m.kicad_mod symbols/$m/$m-create.json $D/$m-hero.step --report $D/$m-hero.provenance.json | cut -c1-120
conv $D/$m-hero.step $D/$m-hero.raw.glb && python3 tools/glb_alpha.py $D/$m-hero.raw.glb $D/$m-hero.glb && rm -f $D/$m-hero.raw.glb
mkdir -p renders; thumb $D/$m-etched.step renders/$m-etched-iso.png iso; thumb $D/$m-fov-etched.step renders/$m-fov-etched-iso.png iso; thumb $D/$m-hero.step renders/$m-hero-iso.png iso 1600 1000
done
echo "== thumbnailer $(date +%T)"
cd ../chip-fetcher && for m in VL53L5CX VL53L7CX VL53L8CX; do timeout 400 adom-chip-thumbnailer once $m > /tmp/claude-1001/-home-adom-project/6c659ef6-f0c4-4d2a-bea2-a58eda95d57c/scratchpad/thumb8-$m.log 2>&1; echo "thumbnailer $m exit $?"; done
echo "== done $(date +%T)"