← Back to context

Comment by liu3hao

1 month ago

Hi HN, I am working on Circuitscript, a language based on python to describe electronic schematics: https://circuitscript.net/. A basic IDE (called the Bench) to try Circuitscript is available online: https://bench.circuitscript.net/

During the December break, I have implemented some new features: automatic stable refdes annotations, parameter assignment rules for easy part number assignment and some ERC rules. These are also important parts of the design workflow to help turn a schematic into a usable BOM and layout.

I have created a usb-uart converter board with the CH340 chip. The complete schematic was coded with Circuitscript and then imported as a netlist into kicad pcbnew to do the pcb layout. The design was produced with JLCPCB and after receiving the boards I tested them and they do work! The design files are here https://github.com/liu3hao/usb-uart-bridge. The circuitscript code file is here https://github.com/liu3hao/usb-uart-bridge/blob/main/usb_uar... and the generated pdf from the circuitscript code is here: https://raw.githubusercontent.com/liu3hao/usb-uart-bridge/re...

The motivation for creating Circuitscript is to describe schematics in terms of code rather than graphical UIs after using different CAD packages extensively (Allegro, Altium, KiCAD) for work in the past. I wanted to spend more time thinking about the schematic design itself rather than fiddling around with GUIs.

Please check it out and I look forward to your feedback, especially from electronics designers/hobbyists. Thanks!

Nice work this looks like it would be so much nicer than fighting with the GUI tools.

Using existing component libraries via some sort of importer code looks like it might be needed to gain momentum.

  • Thank you very much! That's a good point and I will look into this to help drive some momentum!