Files
EWS/doc/datasheets/README.md
Eduard Iten 34aecf7871 docs: Add component datasheets and update documentation
- Add datasheets for all components with an LCSC part number to doc/datasheets/
- Create README.md in datasheets directory explaining the download process
- Update CHANGELOGs and READMEs with information about the new datasheets
2025-12-23 08:34:32 +01:00

19 lines
1.1 KiBLFS
Markdown

# Component Datasheets
This directory contains datasheets for the components used in this project.
## Generation Process
The datasheets were automatically downloaded and processed by the script at `tools/download_datasheets.py`. The script performs the following steps:
1. It reads the `production/bom.csv` file to get all unique LCSC Part Numbers.
2. For each LCSC Part #, it scrapes the corresponding product page on `lcsc.com` to find the official **Manufacturer Part Number (Mfr. Part #)**.
3. It constructs a direct download link (`wmsc.lcsc.com/...`) and downloads the datasheet.
4. The file is saved using the manufacturer part number as the filename: `<Mfr. Part #>.pdf`.
## Deduplication
After the download process, the script identifies all files with identical content (using a SHA256 hash). Duplicate files are deleted and replaced with symbolic links pointing to the first downloaded version of that file.
This ensures that every component has a corresponding datasheet file, while minimizing storage space by not keeping redundant copies of the same document (e.g., for a series of resistors).