"Obstacles do not bend me. Every obstacle yields to stern resolve. He who is fixed to a star does not change his mind." β Leonardo da Vinci
π Live Website β’ π¨ Interactive Gallery β’ π΅ Renaissance Ensemble β’ π Documentation β’ π€ Contributing
- Overview
- π¨ Interactive Gallery
- Quickstart
- Featured Inventions
- Installation
- Usage
- Methodology
- Contributing
- Resources
- License & Citation
This repository is an experimental open-source computational framework for analyzing Leonardo da Vinci's mechanical inventions. Using modern engineering principles, physics-based simulation, and safety analysis, we explore how da Vinci's 15th-century designs might perform when implemented with contemporary materials and methods.
- π Digital Exploration β Create computational models of Renaissance mechanical concepts
- π Educational Resources β Develop open-source materials for STEM education
- π¬ Technical Analysis β Apply modern simulation to historical engineering
- π‘οΈ Safety Focus β Ensure all implementations prioritize safety (non-weaponized)
- π Open Collaboration β Enable community contributions to historical engineering
Leonardo da Vinci (1452-1519) produced over 13,000 pages of notes and drawings spanning the Codex Atlanticus, Madrid Codices, Codex Leicester, and Codex on the Flight of Birds. This project explores selected civil inventions, focusing on educational applications while maintaining strict adherence to non-weaponized implementations.
Built with Renaissance aesthetics, golden ratio proportions, and modern web technology
| Invention | Status | Experience |
|---|---|---|
| π Aerial Screw | Breakthrough | Explore Live β |
| π¦ Ornithopter | Complete | Explore Live β |
| πͺ Parachute | Complete | Explore Live β |
| ποΈ Variable Pitch Mechanism | Complete | Explore Live β |
| Invention | Status | Experience |
|---|---|---|
| π Self-Propelled Cart | Complete | Explore Live β |
| π Mechanical Odometer | Complete | Explore Live β |
| π Revolving Bridge | Complete | Explore Live β |
| Invention | Status | Experience |
|---|---|---|
| π¦ Mechanical Lion | Complete | Explore Live β |
| π‘οΈ Armored Walker | Prototype | Explore Live β |
| π§Ά Bobbin Winder | Complete | Explore Live β |
"Music is the shaping of the invisible." β Leonardo da Vinci
| Invention | Status | Experience |
|---|---|---|
| πΌ Mechanical Ensemble | Complete | Explore Live β |
| πΉ Mechanical Organ | Complete | Explore Live β |
| π» Viola Organista | Complete | Explore Live β |
| πΊ Mechanical Trumpeter | Complete | Explore Live β |
| πΆ Programmable Flute | Complete | Explore Live β |
| π₯ Mechanical Drum | Complete | Explore Live β |
| π Mechanical Carillon | Complete | Explore Live β |
"Water is the driver of nature." β Leonardo da Vinci, Codex Leicester
| System | Experience |
|---|---|
| π Hydraulic Systems | Explore Live β |
Includes: Canal locks, Archimedes screws, water wheels, pumps, and flood control
| Tool | Purpose | Experience |
|---|---|---|
| πΈοΈ Cross-Pollination Explorer | Network visualization | Explore Live β |
| β° Invention Timeline | Historical journey | Explore Live β |
| πͺ Mirror Writing Interface | Decode Leonardo's script | Explore Live β |
| βοΈ Universal Machine Builder | Build mechanisms | Explore Live β |
1οΈβ£ Try it now in Google Colab (no installation required):
# Open the Quickstart notebook:
# https://colab.research.google.com/github/Shannon-Labs/davinci-codex/blob/main/notebooks/Quickstart.ipynb2οΈβ£ Or install locally:
pip install git+https://github.com/Shannon-Labs/davinci-codex.git3οΈβ£ Run a simulation:
davinci-codex simulate --slug parachute --seed 0 --fidelity educational4οΈβ£ Run tests:
make test"Simplicity is the ultimate sophistication." β Leonardo da Vinci
Explore the physics of Leonardo's inventions with our interactive Colab notebooks. These educational resources combine historical context, mathematical derivation, and real-time simulation.
This table is regenerated from the Python registry; run make regen-readme-table after changes to any invention module.
| Slug | Title | Status | Summary |
|---|---|---|---|
| aerial_screw | Leonardo's Aerial Screw - Advanced Aerodynamic Analysis | validated | Comprehensive aerodynamic analysis of Leonardo's helical air screw using modern blade element momentum theory. |
| armored_walker | The Armored Walker | simulation_prototype | A walking war machine combining the chassis of the Self-Propelled Cart with the leg mechanism of the Mechanical Lion. |
| bobbin_winder | Automatic Bobbin Winder | prototype_ready | Cam-programmable traverse winding mechanism with tension control analysis. |
| mechanical_carillon | Mechanical Carillon | concept_reconstruction | Rotating drum that indexes bell strikers for programmable chimes. |
| mechanical_drum | Mechanical Drum | prototype_ready | Programmable percussion device with cam barrels for rhythm patterns. |
| mechanical_ensemble | Leonardo Mechanical Ensemble | concept_reconstruction | Coordinated simulations for Leonardo''s automated musical inventions. |
| mechanical_lion | Leonardo's Mechanical Lion - Complete Walking and Reveal Mechanism | validated | Reconstruction of Leonardo's cam-based walking mechanism with chest cavity reveal for the 1515 Mechanical Lion automaton. |
| mechanical_odometer | Leonardo's Mechanical Odometer Cart | prototype_ready | Enhanced distance-measuring cart with realistic pebble-drop physics and comprehensive error analysis. |
| mechanical_organ | Automatic Pipe Organ | concept_reconstruction | Self-playing pipe organ driven by pinned barrels and dual bellows. |
| mechanical_trumpeter | Mechanical Trumpeter | concept_reconstruction | Automated trumpeter automaton with programmable fingering and bellows-driven breath. |
| ornithopter | Bio-inspired Ornithopter Flight Lab | in_progress | Advanced flapping-wing flight with unsteady aerodynamics and bio-inspired mechanics. |
| parachute | Pyramid Parachute | prototype_ready | Modern analysis of da Vinci's pyramid-shaped parachute with advanced aerodynamic modeling, stability assessment, and historical accuracy. |
| programmable_flute | Programmable Flute | concept_reconstruction | Cam-driven recorder with automatic fingering and regulated airflow. |
| programmable_loom | Leonardo's Programmable Loom - Textile Pattern Automation | in_progress | Automatic loom concept with cam-based pattern programming for repeatable textile motifs, reconstructed from Codex Atlanticus folios 1090r-1091v. |
| revolving_bridge | Leonardo's Revolving Bridge - Advanced Engineering Implementation | in_progress | Leonardo da Vinci's innovative rotating bridge with water-filled counterweight system, featuring advanced mechanical analysis and educational visualization. |
| self_propelled_cart | Self-Propelled Cart | prototype_ready | Spring-driven cart with multi-stage gear reduction and escapement control for autonomous theatrical motion. |
| variable_pitch_mechanism | Variable Pitch Swashplate Mechanism | in_progress | Swashplate-based variable pitch control system for aerial screw blades |
| viola_organista | Viola Organista | concept_reconstruction | Continuous wheel-bowed keyboard capable of polyphonic string performance. |
Visit our interactive gallery for detailed visualizations and technical specifications.
"Once you have tasted flight, you will forever walk the earth with your eyes turned skyward."
| Invention | Status | Key Achievement |
|---|---|---|
| Aerial Screw | π Breakthrough | 1,416N lift (4Γ improvement), variable pitch control |
| Ornithopter | β Complete | Biomimetic flight, 140 min endurance, validated aerodynamics |
| Parachute | β Complete | 6.9 m/s safe descent, turbulence-tested pyramid design |
| Invention | Status | Key Achievement |
|---|---|---|
| Self-Propelled Cart | β Complete | First autonomous vehicle, 150m range, spring-powered |
| Mechanical Odometer | β Complete | Precision measurement (<17% error), pebble-drop counter |
| Revolving Bridge | β Complete | 360Β° rotation, tactical engineering, water counterweight |
| Invention | Status | Key Achievement |
|---|---|---|
| Mechanical Lion | β Complete | 30s choreography, synchronized movements, cam-based control |
| Programmable Loom | π§ In Progress | First programmable computer, 16-thread patterns |
| Armored Walker | π‘οΈ Prototype | Quadruped gait, 200kg payload, dynamic balance |
"Music is the shaping of the invisible." β Leonardo da Vinci
Our Renaissance Ensemble features 6 physics-based instrument timbres, each modeled with authentic harmonic profiles:
| Instrument | Timbre Profile | Key Characteristics |
|---|---|---|
| π» Viola Organista | Bowed Strings | Warm tone, strong odd harmonics, 5Hz vibrato, pink noise |
| πΉ Mechanical Organ | Pipe Organ | 1/n harmonic series, breath noise, high sustain |
| π΅ Programmable Flute | Recorder | Fundamental-dominant, 8% breath noise, 4.5Hz vibrato |
| π Mechanical Carillon | Bell System | Inharmonic partials (1, 2.4, 3.9...), long release |
| πΊ Mechanical Trumpeter | Brass | Bright harmonics, breath noise, 5.5Hz vibrato |
| π₯ Mechanical Drum | Percussion | Bessel drumhead modes, 60% noise burst, no sustain |
β¨ Ensemble Capabilities:
- AI Composition: Generate period-authentic music in Dorian, Mixolydian, and other church modes
- Audio Synthesis: Physics-based sound generation (not samples!) with 44.1kHz output
- Hall Reverb: Schroeder reverb (4 comb + 2 allpass filters) for court acoustics
- Visualizations: Waveform, spectrogram, and piano-roll score renders
- CLI Integration:
davinci-codex concertcommand for full pipeline
π΅ Experience the Interactive Ensemble β
- Python 3.9+
- Git
- 8GB RAM minimum for simulations
# Clone repository
git clone https://github.com/Shannon-Labs/davinci-codex.git
cd davinci-codex
# Create virtual environment and install
make setup
# Or manually:
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
pip install -e .
# Verify installation
make test# List all inventions
davinci-codex list
# Run simulation
davinci-codex simulate --slug ornithopter --seed 42
# Generate CAD models
davinci-codex build --slug aerial_screw
# Run safety analysis
davinci-codex evaluate --slug parachute
# Execute full pipeline
davinci-codex pipeline --slug ornithopter
# π΅ Generate a Renaissance mechanical concert
davinci-codex concert --form pavane --mode dorian --measures 16 --seed 42 --reverb 0.2
# Available forms: pavane, galliard, basse_danse, saltarello, allemande
# Available modes: dorian, mixolydian, phrygian, lydianfrom davinci_codex import registry
# List inventions
inventions = registry.list_inventions()
# Get specific invention
ornithopter = registry.get_invention("ornithopter")
# Run simulation with deterministic seed
results = ornithopter.module.simulate(seed=42)
# Generate CAD models
ornithopter.module.build()
# Safety evaluation
evaluation = ornithopter.module.evaluate()make test # Run full test suite
make lint # Run Ruff + mypy
make smoke # Fast smoke tests
make demo # Generate visualizations
make book # Build Jupyter Book documentationOur computational archaeology approach combines historical research with modern engineering:
- Original codex folio examination
- Provenance documentation with manuscript references
- Dimensional recovery from Renaissance units
- Engineering intent interpretation
- Physics-based frameworks (Newtonian mechanics, fluids)
- Material property mapping (Renaissance β modern)
- Parametric design for optimization
- Constraint and safety analysis
- Finite element analysis and CFD with FSI
- Validation metrics (lift, stress margins, energy)
- Sensitivity analysis (Sobol indices, tornado plots)
- Uncertainty quantification (epistemic + aleatory)
- FMEA (Failure Mode and Effects Analysis)
- Minimum 2Γ safety factors on structural components
- Ethical review (non-weaponization verification)
- Modern regulatory compliance
- MIT licensed code, CC0 media
- Seed-controlled reproducible simulations
- Comprehensive educational resources
"Experience never errs; it is only your judgments that err by promising themselves results such as are not caused by your experiments." β Leonardo da Vinci
Learn more: Adaptation Methodology β’ Physics Derivations
"Patience serves as a protection against wrongs." β Leonardo da Vinci
We welcome contributions from engineers, historians, educators, and enthusiasts worldwide!
- Fork and clone the repository
- Create a feature branch:
git checkout -b feature/invention - Develop and test:
make test && make lint - Submit a pull request with:
- References to relevant codex folios
- Safety analysis
- Comprehensive tests
- Documentation updates
- π§ New Inventions β Implement additional da Vinci designs
- π Enhanced Physics β Improve simulation accuracy
- π Historical Research β Add manuscript references
- π Translations β Internationalize documentation
- π Educational Content β Create tutorials and guides
- π¨οΈ CAD Models β Develop parametric 3D models
- π¨ Web Interfaces β Create interactive visualizations
See: CONTRIBUTING.md β’ CODE_OF_CONDUCT.md
- Project Website β Main documentation hub
- Interactive Web Gallery β NEW! β 24 interactive experiences
- Technical Documentation β Jupyter Book essays
- Physics Derivations β Mathematical foundations
- Codex Atlanticus β Biblioteca Ambrosiana, Milan
- Madrid Codices β Biblioteca Nacional de EspaΓ±a
- Codex on Flight of Birds β Smithsonian
- Leonardo Digitale Archive β Comprehensive digital collection
- Martin Kemp, "Leonardo" (Oxford University Press) β Foundational text
- e-Leo Archive β High-resolution manuscript scans
- docs/meta/REFERENCES.md β Complete bibliography
"Study without desire spoils the memory, and it retains nothing that it takes in." β Leonardo da Vinci
This project serves as a resource for:
- π STEM Education β Physics, mathematics, engineering, computer science
- π« Curriculum Integration β High school demonstrations to graduate research
- π οΈ Maker Spaces β 3D printable CAD models for hands-on learning
- ποΈ Museum Exhibitions β Interactive displays and historical reconstructions
- π¨ 24 interactive web interfaces with Renaissance design
- π Jupyter notebooks with guided explorations
- π¨οΈ Parametric CAD models for 3D printing
- π Simulation visualizations
- π Historical context and provenance documentation
MIT License - See licenses/LICENSE
CC0 1.0 Universal - Public Domain Dedication
@software{davinci_codex_2025,
author = {Bown, Hunter},
title = {The da Vinci Codex: Computational Archaeology of Renaissance Mechanical Engineering},
year = {2025},
publisher = {GitHub},
url = {https://github.com/Shannon-Labs/davinci-codex}
}See CITATION.cff for structured citation metadata.
Leonardo da Vinci β For timeless inspiration and Renaissance genius
Open Source Community β For foundational tools and collaborative spirit
Digital Archives β For preserving and sharing Leonardo's manuscripts
Shannon Labs β For computational resources and research support
Author: Hunter Bown, Shannon Labs Development: Built with AI assistance for code generation and documentation Design: Renaissance aesthetics meet modern web technology
π€ Principal Investigator: Hunter Bown π§ Email: hunter@shannonlabs.dev ποΈ Institution: Shannon Labs π Website: https://shannon-labs.github.io/davinci-codex/ π» GitHub: https://github.com/Shannon-Labs/davinci-codex
"Obstacles do not bend me. Every obstacle yields to stern resolve. He who is fixed to a star does not change his mind." β Leonardo da Vinci (1452-1519)
βοΈ Renaissance Engineering β’ π¨ Digital Innovation β’ π Golden Ratio Design β’ π Open Source Forever
Made with β€οΈ, βοΈ, and Renaissance spirit Golden ratio proportions (Ο = 1.618) throughout Built for education, exploration, and eternal curiosity