slopswap / emf badge / kicad

A KiCad schematic of the chopper

Choose the options and download a KiCad 9 schematic of the tuning circuit, with library symbols, footprints and LCSC part numbers already filled in.

Before you rely on it

The circuit comes from simulation. The file comes from a script, and KiCad itself has checked every version of it: the connections, the footprints, the 3D models. No board has been made from it yet. What was checked lists exactly what, and what was not.

Pick the build

Circuit

Normal listening

Comb mode

Knob

On the sheet

The sheet you will getKiCad's own rendering of this choice
The picture is KiCad's rendering of the same file, made ahead of time for each drawing; select it to open it full size. The knob choice changes the footprint and part number, not the drawing. The download is built in your browser when you press the button.

What is on the sheet

RefValuePart numberFootprintLCSC

Every symbol carries two extra fields. LCSC holds the LCSC part number, under the field name that the usual JLCPCB and LCSC bill-of-materials tools look for. MPN holds the maker's part number. Capacitors have no LCSC number: pick ones whose lead spacing suits the footprint, 2.5 mm for the small values and 5 mm for 100 nF and 1 µF.

Using it

  1. Download the file and open it in KiCad 9's schematic editor. Its symbols are copies of KiCad's own library symbols, kept inside the file, so it opens whole even if a library is missing.
  2. Additions only: select everything, copy, and paste it into the badge's schematic. Use Paste Special and keep the annotations if you want the part numbers as drawn; they start after the badge's own. Then make the one change the notes on the sheet describe: on the chip build, delete the wire from each coil to its 100 Ω resistor and put the two labels on the ends. The power symbols are the badge's own +VDC, -VDC and GND, so they join by name.
  3. With the badge: the sheet is a complete schematic, the badge redrawn with its own part names and footprints and the chopper beside it. Use it to try a layout from scratch, or to read the whole circuit in one place.
  4. Update the board from the schematic. Each part arrives with its footprint, and each footprint brings its 3D model, except the pot: KiCad ships no model for either pot footprint.

What the options mean

Switch chip is the recommended build from the main page: one 74HC4053 and one 74HC14. KiCad has no 74HC4053 symbol, so the sheet uses its CD4053B symbol, which has the same pins, with the value changed.

Transistors is the cheapest version that works in simulation: a two-transistor oscillator and one FET per coil. It is about 25 dB hissier while tuning and covers about 50 to 300 kHz. It is here so its board area can be compared. The FET is a BSS138 in a surface-mount SOT-23, because the through-hole 2N7000 fades as the cells sag.

True bypass swaps the one-pole mode switch for a two-pole one that takes each coil straight to its resistor. In NORMAL the badge's signal path is then the stock one, without the chip's resistance, which otherwise costs about 2.5 dB below 300 Hz on fresh cells and more on tired ones. Two things to know. The oscillator keeps running in NORMAL, because both poles are used by the coils; with the coils disconnected from the chip, all that can reach the amplifier is charge fed through the chip's open switch, which is not simulated. Expect ultrasonic ripple at the output, as in tuned mode, and nothing you can hear. A three-pole switch would stop the oscillator too, but KiCad's library has no footprint for one.

Comb mode adds a 330 pF capacitor, a 6.8 kΩ resistor and a second small switch for TUNED or COMB. The main page draws a single three-position switch. The sheet uses two two-position switches instead: the only three-position slide footprint in KiCad's library has no 3D model, its pin order could not be confirmed against the symbol, and a search did not find the part at LCSC.

The knob is a 100 kΩ linear pot either way, wired so that clockwise raises the frequency if pin 3 is the clockwise end. Swap pins 1 and 3 to reverse it. Other pots, and what they cost, are on the pots page.

The tone filters and the reversing chopper from the main page are not in the generator.

What was checked

Connections. The options make twenty different files: five circuits, two knobs, with and without the badge. Each one was exported as a netlist by KiCad 9.0.9 and compared, net for net, with a netlist written out by hand from the circuit description. All twenty match.

Electrical rules. With the badge on the sheet, KiCad's rule check reports no errors. It leaves two kinds of warning. One is that the switch chip's grounded pins are tied to a power rail, which is what an analog switch wired this way looks like. The other is that three of the badge's own footprints are not in KiCad's standard library: DPDT slide switch, CP_Radial_D4.0mm_P2.54mm, Inductor_D5.0mm_Horizontal_O3.81mm_Z9.0mm. They are in the badge project. An additions-only sheet reports its power rails as undriven and its coil labels as unconnected, until it is pasted into the badge schematic.

Footprints. Each footprint was looked up in KiCad 9.0.9's library. Its pad numbers were compared with the symbol's pin numbers, and its 3D model file was looked for in KiCad's model package.

PartFootprintIn KiCad's libraryPads match pins3D model
74HC4053 switch chipPackage_DIP:DIP-16_W7.62mmyesyesyes
74HC14 invertersPackage_DIP:DIP-14_W7.62mmyesyesyes
ResistorsResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontalyesyesyes
Capacitors, 2.5 mm pitch (330 pF, 100 pF)Capacitor_THT:C_Disc_D3.4mm_W2.1mm_P2.50mmyesyesyes
Capacitors, 5 mm pitch (100 nF, 1 µF)Capacitor_THT:C_Disc_D4.3mm_W1.9mm_P5.00mmyesyesyes
Pot, 9 mm shaft (Bourns PTV09A)Potentiometer_THT:Potentiometer_Bourns_PTV09A-1_Single_Verticalyesyesnone in KiCad
Pot, square trimmer (3386P)Potentiometer_THT:Potentiometer_Bourns_3386P_Verticalyesyesnone in KiCad
Mode switch, one pole (C&K OS102011MS2QN1)Button_Switch_THT:SW_Slide_SPDT_Straight_CK_OS102011MS2Qyesyesyes
Bypass switch, two poles (C&K JS202011CQN)Button_Switch_THT:SW_CK_JS202011CQN_DPDT_Straightyesyesyes
2N3904Package_TO_SOT_THT:TO-92_Inlineyesyesyes
BSS138Package_TO_SOT_SMD:SOT-23yesyesyes

Pin order on the parts that can catch you out.

Not checked. Nothing has been built or laid out. The resistor LCSC numbers were read from LCSC's listing titles, not from the product pages. Stock and prices for the switches were not read. KiCad's footprints for the two switches are drawn for the exact C&K parts named; a cheaper switch will need its own footprint.

Or as an add-on board

An idea from planning this: leave the badge's layout alone, and make the chopper a small board that plugs into the holes of the two 100 Ω resistors.

It fits better than it has any right to. Each of those resistors sits between a coil and an amplifier input, so its two holes are exactly the two points the chopper has to come between. Four holes give both coils and both inputs. The resistors move onto the add-on, and the badge's own board does not change.

The proposalA 3D rendering, not a photograph
The back of the badge with a small purple board standing on pins between the two battery holders, carrying two chips, a pot and a slide switch. Its lower edges run parallel to the badge's angled bottom edges, just above the two coils. The same, seen straight on from the back of the badge.
The add-on is purple. It stands on four pins in the holes that R1 and R2 leave free, in the channel between the battery holders, and its lower edges follow the badge's angled outline, stopping just above the coils. The badge is rendered from its own board file with R1 and R2 removed. Its coils are drawn as the Bourns RLB1014 inductors the published parts list names, 8.7 mm across and 12 mm long, bent over so they lie just past the board edge: the size is from the datasheet, the pose is read from the footprint and not from a built badge. The add-on's pot is a plain block, because KiCad has no model for it. Badge board and artwork: EMF Explorer Badge V2.1, CC BY-NC-SA 4.0.

The measurements come from the badge's published board file.

Three things it does not solve yet. It needs power, which the resistor holes do not carry: the picture shows a three-pin header for +, 0 V and −, and the nearest place to pick those up is the op-amp, on pins 8, 4, and 3 or 5. It is a tight fit: the board's edges come within a fraction of a millimetre of the battery holders, and that has not been checked against real parts. And only the parts are placed. Nothing is routed, and with two DIP chips on a board this size the routing may want two layers of care.

The board in the picture is a real KiCad file, with the outline and the four leg positions taken from the badge: addon-concept.kicad_pcb. It is drawn as seen from the back of the badge, so its left is the badge's right.

Sources