
Usb headphone amp
embediver/usb-headphone-amp
USB Headphone Amplifier based on RP2040, PCM5102A and NE5532.

Remote laser monitoring and locking control via the MOGLabs Diode Laser Controller.
Moglabs remote locking board is an open-source printed circuit board by atomlaser-lab, from the atomlaser-lab/esp32-laser-oscilloscope repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 99.9 × 70.5 mm with 41 parts on 52 nets, routed with 223 tracks and 20 vias.
It is built around the ESP32-DEVKITC-VE, IA0505S and MCP4821-E/P, with the OP07 among its other parts. Its parts include 10 resistors, 9 capacitors, 7 connectors, 5 diodes and 4 ICs. It belongs with the ESP32 boards of this library.
This PCB and associated enclosure is intended to be used in conjunction with an ESP32 development board for the purposes of providing a remote interface for locking MOGLabs diode lasers. It is intended that the MOGLabs DLC handles the locking process, and that this board and its circuitry is used for acquiring the lock. The PCB provides a convenient way of acquiring input signals and producing an appropriate output signal for the DLC.
PDFs of the circuit diagram and the PCB can be found under the plots/ directory. Electronic design was done in KiCAD 6, and the enclosure was generated with FreeCAD 0.20.2. Gerber files for manufacturing the PCB can be found in "generated.zip". Digikey part numbers and quantities for 2 boards can be found under 'moglabs-remote-locking-board.txt' and 'auxliliary-parts.txt'.
The idea behind this project is to use a WiFi-enabled microcontroller to measure locking signals from a diode laser, present those to a user through a web interface, accept user input to enable the lock or change the lock position, and then to produce output signals to act on user input. The core of the board is an ESP32-DevKitC-v4 board, which can use a number of different microcontrollers but with the same board pinout and form factor. The part chosen for this project is the ESP32-DEVKITC-VE with an ESP32-WROVER-E microcontroller. Other chips with the same pinout and form factor can also be used.
Two analog signals are recorded by the microcontroller unit (MCU): the error or locking signal, denoted as "Lock", and the raw photodiode signal, denote as "PD". The MCU's ADCs can only record positive voltages, and the error signal by definition must be bipolar, so an op-amp and associated components is used to add a 1.5 V offset to the signal while also inverting it (the inversion is simply a side-effect). This should put the error signal at the midpoint of the ADC's voltage range. A pair of Schottky diodes is used to clip the voltage to the 0 V and 3.3 V rails. The PD signal should always be positive, and it is similarly clipped to the 0 V and 3.3 V rails. The Lock signal is recorded using ADC1_CH0 or GPIO36, and the PD signal is recorded using ADC1_CH3 or GPIO39. Finally, the trigger generated by the MOGLabs DLC is recorded using the digital input channel GPIO34 after passing through a voltage divider to bring the 5 V level to 3.3 V. As the actual lock is handled by the DLC the quality of the recorded input signals is not particularly important, and we have thus used the MCU's internal ADCs.
The output analog signal is more important, and the on-board DACs don't work well when the WiFi is also running. Therefore, we use a 12-bit DAC (MCP4821) which interfaces with the MCU via SPI to produce the output signal for the external piezo control. The DAC produces a unipolar output, so one channel of a dual-channel op-amp is used to offset the voltage and generate a bipolar output. The DAC in this case has a selectable voltage reference, and here we have assumed that it is set such that the reference voltage is 4.096 V which is also the default on power-on. Resistors R6, R7, R12, and R14 are chosen to produce voltage outputs as close as possible to a bipolar output. The resistors are chosen to give an approximate +/-0.2 V output range. The second op-amp is combined with a trimmer potentiometer to give more control over the output voltage range. Both amplifiers operate in an inverting configuration, which gives a net non-inverting output.
It is expected that power will typically be supplied via the development board's USB connector, which is nominally +5 V. However, users can instead supply +5 V to the J1 pin header, which will power both the development board and the rest of the circuitry. Bipolar +/-5 V is generated by the switched-mode power supply PS1, and the VDD and VSS pins on the op-amps are connected to the appropriate pins on the power supply. This power supply can supply up to 100 mA, and it technically has a minimum load of 10 mA, but the datasheet states that no damage will occur if operated with loads below 10 mA. It is expected that output ripple will probably be worse than specified if the current draw is less than 10 mA. If a bipolar supply is present, one could not populate PS1 and instead connect the bipolar +/-5 V rails to the appropriately labelled connections on the board, possible through the use of a standard 2.54 mm pitch pin header. Users would then need to connect the +5 V rail to the development board.
The development board can be connected to the PCB in one of two ways. The first is to solder male pin headers to the PCB and then solder the development board to the male pin header: this will provide the smallest possible footprint. The second way is to solder female pin sockets to the PCB and then solder male pin headers to the development board and attach it to the PCB in a solder-less connection. This is probably the better option, even though it involves more soldering, because if the development board needs to be removed it is a hassle to de-solder 38 separate pins.
Finally, most of the GPIO pins on the development board are broken out on the female pin sockets J5 and J9. When programming, the user can choose appropriate GPIO pins for driving the DLC digital control pins. It is recommended that wires connected to male pin headers are used for the connection.
The PCB has four M3 mounting holes in the corner of the board. These can be safely used with standard metal bolts as they are not connected to any of the electrical signals.
The enclosure is designed with the expectation that it will be 3D printed. The interior of the box has four posts intended for attaching the PCB via the M3 mounting holes.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 5 | 100n | Capacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolder | C3, C4, C5, C9, C10 |
| 5 | 10k | Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolder | R2, R3, R4, R7, R9 |
| 4 | Conn_Coaxial | custom-connectors:BNC_Molex_0731000167 | J2, J3, J4, J6 |
| 4 | D | Diode_SMD:D_1206_3216Metric_Pad1.42x1.75mm_HandSolder | D1, D2, D3, D4 |
| 2 | 100k | Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolder | R6, R12 |
| 2 | 4.7u | Capacitor_THT:CP_Radial_D5.0mm_P2.00mm | C1, C2 |
| 2 | Conn_01x16_Female | Connector_PinSocket_2.54mm:PinSocket_1x16_P2.54mm_Vertical | J5, J9 |
| 1 | 100n | Capacitor_THT:C_Disc_D5.0mm_W2.5mm_P2.50mm | C7 |
| 1 | 10n | Capacitor_THT:C_Disc_D5.0mm_W2.5mm_P2.50mm | C6 |
| 1 | 20k | Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolder | R10 |
| 1 | 3.9k | Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolder | R14 |
| 1 | 56k | Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolder | R1 |
| 1 | Conn_01x02_Male | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | J1 |
| 1 | D_Schottky | Diode_SMD:D_1206_3216Metric_Pad1.42x1.75mm_HandSolder | D5 |
| 1 | ESP32-DevKitC | Espressif:ESP32-DevKitC | U2 |
| 1 | IA0505S | Converter_DCDC:Converter_DCDC_XP_POWER-IAxxxxS_THT | PS1 |
| 1 | MCP4821 | Package_SO:SOIC-8_5.275x5.275mm_P1.27mm | U4 |
| 1 | OP07 | Package_SO:SOIC-8_5.23x5.23mm_P1.27mm | U1 |
| 1 | Opamp_Dual | Package_SO:SOIC-8_5.23x5.23mm_P1.27mm | U3 |
| 1 | R_Potentiometer | Potentiometer_THT:Potentiometer_Bourns_3266W_Vertical | RV1 |
The 37 most common of 41 parts.

embediver/usb-headphone-amp
USB Headphone Amplifier based on RP2040, PCM5102A and NE5532.


mahmoud-elghamry/thermocouple
This directory is a self-contained KiCad 10 project. It does not share files with, and must not be confused with, the single-channel board in hardware/single-channel/.





dario0603/electronic_load
Un progetto open-source per la progettazione e simulazione di un Carico Elettronico Bipolare (Electronic Load), ideato per il test e la caratterizzazione di alimentatori, batterie e circuiti di potenza.
It measures 99.9 × 70.5 mm and has 2 copper layers, 1.6 mm thick.
41 parts, built around the ESP32-DEVKITC-VE, IA0505S, MCP4821-E/P and OP07. 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.
From the atomlaser-lab/esp32-laser-oscilloscope repository on GitHub, at the commit this page was made from: the board is board-design/moglabs-remote-locking-board.kicad_pcb and its schematic board-design/moglabs-remote-locking-board.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository publishes it under the GPL-3.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).