Close

Making the circuit

A project log for typeCAD 1Hz -AI designed hardware

Making a 1 hertz timer circuit with typeCAD and AI

typecadtypecad 07/04/2025 at 18:320 Comments

I copied the circuit description into Cursor and used Claude Sonnet 4.0 with the following prompt. 

Create a typecad circuit according to the following description. Use @typecad.json @website.json for reference. 

[circuit summary from last post]

I'll create a new TypeCAD circuit file for the 1Hz pulse generator based on your description. Let me first examine the existing files to understand the structure and then create the new circuit.

Read typecad.json and website.json

Now I'll create the new 1Hz pulse generator circuit file based on the description provided. I'll create a comprehensive circuit that implements the exact specifications:

one_hz_pulse_generator.ts+219•9

Now I need to fix the Testpoint components by removing the unsupported description property:

one_hz_pulse_generator.ts+7-7

[working...]

Perfect! I've successfully created a new TypeCAD circuit file one_hz_pulse_generator.ts that implements the complete 1Hz pulse generator according to your specifications. Here's what the circuit includes:

Key Features Implemented:

Components:

Power Supply:

Frequency Division Chain: text Apply to one_hz.ts 4.194304 MHz → ÷16,384 → 256 Hz → ÷256 → 1 Hz

Connections:

Testpoints:

The circuit follows all the critical wiring notes from your specification, including proper decoupling, reset strategy, unused input handling, and signal integrity considerations. The file is ready to be built and will generate a complete KiCAD netlist for the 1Hz pulse generator.


Claude guessed at the footprint for the TCXO. After that was fixed, the file built with no issues. I opened the generated kicad_pcb file, and the parts were there, ready to be placed and routed. I decided I didn't want all the test points; I didn't like the connectors it chose, but other than that, it appears to be correctly created. AI did the entire schematic portion of this project. 

The typecad.json and website.json files referenced in the prompt are JSONified documentation to teach the LLM how to use typeCAD. They are attached to this project in the Files section. 

Code Additions

I added additional code to create a schematic. I also added PCB layout information for the components. The vast majority of the code remained unchanged, and the additions were for extra features, not strictly required for a working PCB design. 

Discussions