Skip to content

About

Spacecraft sun sensor simulator

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

VRXFILE Sun Sensor Simulator (VRXFILE-SunSensor-Sim.py)

Interactive 3D spacecraft sun sensor simulator, telemetry analyzer, technical specifications comparator, electrical circuit schematic (E3) generator, wiring schematic viewer, Sun-angle algorithm explorer, and zero-dependency pure-black vector PDF report generator designed for Low Earth Orbit (LEO ≤ 800 km, 5-year mission lifetime) spacecraft attitude determination sensors.

AI Generation Notice: This project's code and documentation were generated and refined using Google AI Studio (Neon 4).

Supported Sensor Architectures (7 Models)

  1. 4× OPR2101 — 4-Slit Differential Knife-Edge (Cross Layout, FSS-4xOPR2101-3D-A)
    • Unified 44 × 44 × 16.17 mm housing (58 × 44 mm flange), TT Electronics OPR2101 7.24 × 6.35 × 1.47 mm ceramic packages with staggered 6-element 1-2-2-1 2D photodiode cluster (2.73 × 3.72 mm), 4 slits (3.20 × 6.60 mm) at H_ap = 1.60 mm, piecewise-linear differential inverse with linear FOV ±40.5°, 4 analog channels + Pt1000 RTD.
  2. 4× OPR2101 — 6-Pixel Centroid Redundant (Cross Layout, FSS-4xOPR2101-3D-B)
    • Unified 44 × 44 × 16.17 mm housing, 24 independent photodiode dice across four 1-2-2-1 clusters (1.00 mm row pitch), centered 1.44 × 5.60 mm slits, linear FOV ±41.2°, 100% hot/cold X/Y redundancy (X_PRI/X_RED, Y_PRI/Y_RED), 28-pin Ø6.4 mm harness + dual Pt1000 RTDs.
  3. 4× VEML4031X00 / 40311X00 — 4-Sided 45° Pyramid (MSS-4xVEML4031-Pyramid)
    • 66 × 52 × 19.70 mm pyramid base with 45° tilted machined core, 3D extruded sloped carrier PCBs, Vishay VEML4031X00 (4.38 × 1.45 × 0.60 mm) SMD packages with solder pads and central octagonal apertures, cerium ND 0.25 windows, dual isolated I²C buses (0x29 / 0x10) + 4 independent LCL power switches + ADS122C04 for Pt1000, FOV ±45°.
  4. 1× Hamamatsu S5980 — 4-Quadrant PIN Photodiode (FSS-2Axis-QuadPIN)
    • 34 × 34 × 16.40 mm housing (48 × 34 mm flange), internal PCB substrate supporting the S5980 ceramic package, 2.50 × 2.50 mm square pinhole at H_ap = 2.00 mm, ratiometric quad-cell spot displacement, linear FOV ±32.0°, 500–700 nm bandpass filter.
  5. 1× FD-19KK (ФД-19КК гр. А/Б) — 4-Quadrant Hermetic TO-Can PIN (FSS-FD19KK-3D)
    • 34 × 34 × 22.75 mm housing with white low-α_s/ε thermal-control front bezel, circular Ø20 mm polyimide PCB with anti-rotation key flat and Pt1000 RTD (≤ +60 °C thermal limit monitoring), copper thermal-sink collet, hermetic metal-glass TO-can (Ø7.2 mm flange, 135° tab), 4 silicon PIN quadrants (1.00 × 1.00 mm, 0.05 mm dead gap), Ø24 mm quartz-chrome mask with 1.00 × 1.00 mm square pinhole at H_ap = 2.00 mm, exact dead-gap compensated inverse (A_eff = 0.95 mm, linear FOV ±13.4°, ~0.79″/LSB).
  6. 1× Toshiba TCD1254GFG — N-Slit Linear CCD (FSS-TCD1254GFG-3D)
    • 44 × 36 × 20.20 mm housing with white thermal-control bezel, 16-pin GLCC linear CCD (2500 effective pixels, 5.25 µm pitch, 13.125 mm active length), quartz-chrome N-slit mask (two parallel slits + 45° diagonal slit, D0 = 3.20 mm, H_ap = 4.50 mm), 3 simultaneous illuminated centroid peaks (P1, P2, P3), linear FOV ±32.9° (θX) × ±31.4° (θY), ~12″ sub-pixel accuracy, OPA350/OPA388 video front-end, 74HC04 clock driver (φM = 2 MHz, ICG, SH), Pt1000 RTD, and 1206 22 Ω shadow heater.
  7. 4× ams OSRAM AS7331-AQF — Anti-Albedo UV 4-Sided 45° Pyramid (MSS-4xAS7331-3D)
    • 72 × 58 × 21.20 mm CNC aluminum pyramid with 45° tilted faces, synthetic UV fused silica KU-1 / JGS1 Ø13×2 mm windows (zero Cerium, T_UVC ≥ 92%), UVC 240–280 nm spectral channel completely immune to LEO Earth albedo (stratospheric ozone absorption), hardware-addressed single I²C bus (0x74, 0x75, 0x76, 0x77 — zero I²C MUX required) + 4× LCL SEL switches + ADS122C04 (0x40) for Pt1000, linear FOV ±45°.

Key Features

  • Interactive 3D Viewport: Left-drag 3D orbit (yaw/pitch) with layered cutaway depth sorting so internal PCBs, packages, dice, and optical rays stay unobstructed across full 360° rotation, mouse-wheel zoom, ISO/TOP/SIDE camera presets, aperture bezel toggle, live AM0 Sun vector, and real-time illuminated detector spots.
  • Technical Specifications Table (Sensor Specs / ТТХ датчика): Dedicated interactive modal displaying full engineering parameters for the active sensor (detector, optical aperture, window/albedo protection, FOV, accuracy, spectral range, analog/digital front-end, harness, dimensions, thermal limits, and 5-year LEO radiation resilience) plus a one-click side-by-side comparison matrix of all 7 architectures.
  • Electrical Circuit Schematic Generator (Circuit Schematic (E3) / Принципиальная схема (Э3)): Full vector E3 schematics featuring TI OPA388 Zero-Drift TIA & active LPF (plus OPA350/74HC04 for TCD1254GFG), switchable analog ADC interfaces (SPI TI ADS124S08 vs I²C 2× TI ADS122C04), and dedicated isolated I²C + 4× LCL + ADS122C04 (Pt1000) schematics for digital VEML4031 and AS7331-AQF pyramids.
  • Orbital Environment & Telemetry: Adjustable Sun incidence angles (θX, θY from -60° to +60°), solar flux (200–1450 W/m²), base temperature (-60 °C to +115 °C with IEC 60751 Callendar–Van Dusen Pt1000 modeling), automated orbital sweep, 16-bit ADC readouts, and FOV operating-zone diagnostics.
  • Electrical Wiring Schematics & Flight Code: Vector wiring diagrams for all 7 harnesses and copyable C Sun-angle computation listings for every architecture.
  • Complete Pure-Black Vector PDF Export (Export PDF / Экспорт в PDF): Zero-dependency PDF 1.4 writer with embedded TrueType Cyrillic/Latin font support producing a complete multi-page pure-black (#000000) engineering dossier: simulation summary & telemetry, technical specifications tables for all 7 sensors, all seven 3D models, all seven wiring schematics, the full E3 circuit schematic with BOM & design notes, and complete unclipped angle calculation source code for all 7 sensors.
  • Bilingual UI (RU / EN): Instant Russian/English interface switching with high-contrast dark instrumentation styling and red-highlighted sensor selector ComboBox.

Requirements & Running

No external PyPI packages are required. Every module is part of the Python 3.12+ standard library (see requirements.txt).

# Optional verification (no third-party packages required)
pip install -r requirements.txt

# Launch the desktop simulator
python VRXFILE-SunSensor-Sim.py

On Debian/Ubuntu Linux, ensure Tk is installed:

sudo apt-get install python3-tk

Author & Credits

  • Author: Rostislav Varzar (vrxfile@mail.ru, vrxfile1987@gmail.com)
  • Version: 1.0.0
  • Generated with: Google AI Studio (Neon 4)

About

Spacecraft sun sensor simulator

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages