I found a tool called Fritzing Check Part when designing a custom Fritzing part for the Gravity ENS160 Air Quality Sensor. This tool helped me verify that the connections and pins were accurately mapped and that the part would function properly in the Fritzing software. By using the Fritzing Check Part, I saved time and avoided potential issues before finalizing my design. I highly recommend this tool for anyone creating custom Fritzing parts to streamline the process and produce accurate results.
While Fritzing Check Part is a powerful tool, it has some limitations. The script was developed several years ago and may not account for all recent updates in Fritzing. However, it remains valuable for identifying and correcting many common issues in Fritzing parts files. The Fritzing community continues to provide support and updates through forums and GitHub.
To begin, here are a few things you should know before using the Fritzing Check Part for Gravity ENS160 Air Quality Sensor:-
Gravity ENS160 Air Quality Sensor, featuring the advanced ScioSenses ENS160 chip, detects organic effluents and oxidizing gases. It supports intelligent algorithms to process raw sensor measurements and calculate air quality metrics such as AQI (Air Quality Index), TVOC (Total Volatile Organic Compounds), and eCO2 (Equivalent Carbon Dioxide). This ensures precise and reliable air quality measurements.
Fritzing Check Part is a Python script that checks the syntax and format of Fritzing parts files (both .fzp
and .svg
). It is designed to check and validate these files, ensuring they meet the necessary standards and are free from common errors.
lxml library is a crucial dependency for running FritzingCheckPart. This library ensures that the script can handle the complex XML structures and transformations required to validate and correct Fritzing parts files.
Explore the Gravity ENS160 Air Quality Sensor Related DIY E-Project: IoT based Indoor Air Quality ENS160 Monitor
Tips for using Fritzing Check Part for Gravity ENS160 Air Quality Sensor
After implementing the Fritzing Check Part for the Gravity ENS160 Air Quality Sensor. These are a few suggestions as to how to go about fixing the three main areas of the Fritzing part i.e. breadboard, schematic, and PCB views:-
- Post-analyzing Fritzing part files (both
.fzp
and.svg
), Fritzing Check Part provides detailed information about the error, including the specific line number and a description of the problem. To identify the error, open the file using an external text editor, like Visual Studio Code, which allows you to view and edit the XML code with line numbers. - Fritzing Check Part can sometimes make extensive changes to a file, especially if multiple issues need to be corrected. This can result in a file that looks quite different from the original. Make a copy of the original file and then work with it. This way, you can selectively apply the necessary changes and revert any that you don’t want.
- During execution, the Fritzing Check Part generates a
.bak
file as a backup. So, if you rerun the FritzingCheckPart script, you may encounter an error message as shown below. Just delete the.bak
file and then execute the script again.Error: Cannot create a file when that file already exists.
- While Fritzing Check Part can be useful for checking PCB files and detecting layers, its suggestions alone may not be sufficient. To gain a more comprehensive view and identify any potential issues that might be overlooked, it’s recommended to use Gerbv or a similar tool. Export the component, view all the layers in Gerbv, and systematically check and uncheck each layer to ensure a thorough inspection.
Gravity Air Quality Sensor
Breadboard View | Schematic View | PCB View |
For a guide on designing custom Fritzing parts, visit: Custom Fritzing part design for FunctionGeneratorKitwith XR2206
PROCEDURE
Once your custom Fritzing part is complete, follow these steps to use the Fritzing Check Part tool to debug any errors:-
- Download and install the latest version of Pycharm Community Edition (Free Version) for Windows OS from the official website: https://www.jetbrains.com/pycharm/download/other.html
- Download and install the latest version of Python for Windows OS from the official website: https://www.python.org/downloads/.
- Launch Pycharm. Go to File→New project→[Your Project Name].
- Click on the hamburger icon ≣ →Go to File→Settings→Project: [Your Project Name]→Python Interpreter→ Select the newly installed Python version from the drop-down menu→Click on Ok.
- Go to Terminal→select Local terminal and run this command to install the latest versions of the dependency:
pip install lxml
- Add the Gravity ENS160 Air Quality Sensor.svg, Schematic Drawing.svg, and PCB Drawing.svg to the [Your Project Name] directory.
- Download the FritzingCheckPart.zip from the official Git Hub repository: https://github.com/fritzing/FritzingCheckPart. Unzip it and add it to [Your Project Name]. Make sure that [Your Project Name] directory contains the following scripts for checking parts:
FritzingCheckpart.py FritzingTools.py PP.py PPTools.py
- Under [Your Project Name]→Right click on “FritzingCheckpart.py”→ Run
- Go to Terminal →select Local terminal and run this command to check the part:
python FritzingCheckPart.py "path/to/your/part.svg"
- Test the Gravity ENS160 Air Quality Sensor.svg, Schematic Drawing.svg, and PCB Drawing.svg of the custom part using the above command one at a time. (Note:- The FritzingCheckPart tool cannot be used to directly check a Fritzing part file given that it is only designed to validate individual part files in
.fzp
and.svg
format. It does not support the most recent Fritzing part file types, such as.fzz
and.fzpz
, which would require extracting these archives and manually examining each contained file. This process is beyond the tool’s current capabilities.)
OUTPUT
Download the generated SVG images for each section along with the resulting Fritzing part here: Gravity ENS160 Air Quality Sensor
This post was inspired by Fritzing Parts Fast pt6 – Connectors, Metadata, Check
References:-
For exclusive insights, tips and answers, please visit Wiztaqnia Forum.
- IoT based Indoor Air Quality ENS160 Monitor - November 20, 2024
- Fritzing Check Part for Gravity ENS160 Air Quality Sensor - November 12, 2024
- Custom Fritzing part design for FunctionGeneratorKitwith XR2206 - October 10, 2024