- 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
1.1 KiBLFS
1.1 KiBLFS
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:
- It reads the
production/bom.csvfile to get all unique LCSC Part Numbers. - For each LCSC Part #, it scrapes the corresponding product page on
lcsc.comto find the official Manufacturer Part Number (Mfr. Part #). - It constructs a direct download link (
wmsc.lcsc.com/...) and downloads the datasheet. - 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).