Skip to the content
4 layers120 × 100 mmPreamp board, the printed circuit board in 3D

A script for lock-in measurement using a Motu M2 audio interface

Size
120 × 100 mm
Copper layers
4
Thickness
4.69 mm
Parts
70
Nets
48
Pads
205
Tracks, vias
350, 248
Pours
4
Routed
Yes
KiCad
KiCad 6 (file 20211014)
Created
11 Sep 2022
Updated
13 Sep 2022

Overview

Preamp board is an open-source printed circuit board by kpezeshki, from the kpezeshki/AudioInterfaceLockIn repository on GitHub. It is a 4-layer board of 120 × 100 mm with 70 parts on 48 nets, routed with 350 tracks and 248 vias.

It is built around the AD8221AR and OPA1632D. Its parts include 27 resistors, 14 capacitors, 9 ICs, 6 connectors and 3 diodes. It belongs with the audio and music and interfaces and adapters boards of this library.

Main components

2

README

README.md

A basic dual-phase lockin implementation for a 2in/2out sound card or audio interface using pyaudio. Tested on a MOTU M2 at 32bits/48kHz sample rate under ALSA.

Connect CH1 OUT to CH1 IN through a loopback wire and set gains appropriately. CH2 OUT should be the input to the DUT and CH2 IN should be the output of the DUT.

Example output file is log_movemic.txt. This was a simple experiment in which CH2 OUT was connected to a speaker, and CH2 IN connected to a microphone. The microphone was moved away from the speaker at a near-constant rate, and the resulting zero-crossings in the logfile occur when the reference signal and input are out of phase. The physical distance the microphone moves between zeroes provides the speed of sound.

Microphone phase test

Current problems:

  1. Processing loop is too slow for >48kHz
  2. Generally unpolished
  3. Move to sounddevice?

Parts

70
QtyValueFootprintReferences
9100nFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC3, C4, C5, C8, C9, C11, C12, C13, C14
91kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR4, R5, R6, R7, R8, R9, R10, R11, R25
5Jumper_2_OpenJumper:SolderJumper-2_P1.3mm_Open_TrianglePad1.0x1.5mmJP2, JP3, JP4, JP5, JP6
5OPA990Package_TO_SOT_SMD:SOT-23-6_HandsolderingU2, U3, U4, U6, U9
4390Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR13, R14, R15, R16
4MountingHole_PadMountingHole:MountingHole_3.2mm_M3_DIN965_PadH1, H2, H3, H4
3100Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR1, R2, R12
3Conn_CoaxialConnector_Coaxial:BNC_Amphenol_B6252HB-NPP3G-50_HorizontalJ1, J2, J3
250Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR19, R24
2500Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR20, R23
250kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR18, R21
25kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR17, R22
2AudioJack3audiohacks:ACJS-MHDRJ5, J6
2C_PolarizedCapacitor_THT:CP_Radial_D5.0mm_P2.50mmC1, C2
1100pFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC7
1105-SR10010F-25NSaudiohacks:105-SR10010F-25NSU7
110kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR26
110nFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC10
11nFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC6
18kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR27
1AD8221Package_SO:MSOP-8_3x3mm_P0.65mmU8
1AZ1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U1
1Barrel_Jack_MountingPinConnector_BarrelJack:BarrelJack_CUI_PJ-063AH_HorizontalJ4
1D_ZenerDiode_SMD:D_SOD-323_HandSolderingD2
1LEDLED_THT:LED_D3.0mmD3
1LEDLED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolderD1
1OPA1632Package_SO:SOIC-8_3.9x4.9mm_P1.27mmU5
1RResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR3
1SW_Push_DPDTButton_Switch_THT:SW_E-Switch_EG1271_DPDTSW2
1SW_SPSTButton_Switch_THT:SW_E-Switch_EG1271_DPDTSW1

Similar boards

  • 4 layers125 × 150 mmAA2380V1, the printed circuit board in 3D

    AA2380V1

    OneAudio/OSVA

    Open source versatible analyzer (24bits 1.536MSPS 2 Channels)

    440 parts11GPL-3.0
  • 4 layers159.5 × 120 mmMStereo2, the printed circuit board in 3D

    MStereo2

    mgosselin/mStereo2

    a two-channel fully-differential digital-to-analog converter

    125 parts1
  • 2 layers80 × 65 mmRLCMeterH750 v2, the printed circuit board in 3D

    RLCMeterH750 v2

    balmerdx/RLCMeterH750

    Good RLC meter

    161 parts26
  • 10 layers40 × 160 mmPsc daughter brd, the printed circuit board in 3D

    Psc daughter brd

    NSLS2/zupsc-hw

    Zynq UltraScale Power Supply Controller hardware

    345 parts1BSD-3-Clause
  • 4 layers59 × 71 mmPEC Sensor, the printed circuit board in 3D

    PEC Sensor

    WAFFLE-Systems/PEC_Sensor

    Electrical schematics and PCB gerber files for the Pulsed Eddy Current Sensor

    98 parts1
  • 2 layers101.6 × 101.6 mmUtcs isource, the printed circuit board in 3D

    Utcs isource

    akshmakov/utcs-isource

    micro-transcranial current stimulation system - constant current source module

    40 parts
  • 4 layers149.9 × 99.1 mmTDCS driver old, the printed circuit board in 3D

    TDCS driver old

    Fijee-Project/utCS

    Micro transcranial current stimulation

    99 parts
  • 4 layers45 × 41 mmOsw, the printed circuit board in 3D

    Osw

    Open-Smartwatch/open-smartwatch-gps

    Hardware design files for the GPS version of the open-smartwatch

    70 parts243GPL-3.0

Questions

How big is the Preamp board PCB?

It measures 120 × 100 mm and has 4 copper layers, 4.69 mm thick.

What parts does the Preamp board use?

70 parts, built around the AD8221AR and OPA1632D. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Preamp board KiCad files?

From the kpezeshki/AudioInterfaceLockIn repository on GitHub, at the commit this page was made from: the board is preamp_board/preamp_board.kicad_pcb and its schematic preamp_board/-1v_clamp.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Preamp board design in my own project?

Its repository states no licence, so its author keeps all rights: ask kpezeshki before reusing the design.