Skip to the content
2 layers99.9 × 70.5 mmMoglabs remote locking board, the printed circuit board in 3D

Moglabs remote locking board

atomlaser-lab/esp32-laser-oscilloscope1

Remote laser monitoring and locking control via the MOGLabs Diode Laser Controller.

Size
99.9 × 70.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
41
Nets
52
Pads
172
Tracks, vias
223, 20
Pours
3
Routed
Yes
KiCad
KiCad 6 (file 20211014)
Created
15 Jan 2023
Updated
14 Sep 2023

Overview

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.

Main components

4

README

board-design/README.md

Circuit and PCB for remote locking

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'.

Circuit design

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.

Enclosure

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.

Parts

41
QtyValueFootprintReferences
5100nCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC3, C4, C5, C9, C10
510kResistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR2, R3, R4, R7, R9
4Conn_Coaxialcustom-connectors:BNC_Molex_0731000167J2, J3, J4, J6
4DDiode_SMD:D_1206_3216Metric_Pad1.42x1.75mm_HandSolderD1, D2, D3, D4
2100kResistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR6, R12
24.7uCapacitor_THT:CP_Radial_D5.0mm_P2.00mmC1, C2
2Conn_01x16_FemaleConnector_PinSocket_2.54mm:PinSocket_1x16_P2.54mm_VerticalJ5, J9
1100nCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P2.50mmC7
110nCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P2.50mmC6
120kResistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR10
13.9kResistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR14
156kResistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR1
1Conn_01x02_MaleConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ1
1D_SchottkyDiode_SMD:D_1206_3216Metric_Pad1.42x1.75mm_HandSolderD5
1ESP32-DevKitCEspressif:ESP32-DevKitCU2
1IA0505SConverter_DCDC:Converter_DCDC_XP_POWER-IAxxxxS_THTPS1
1MCP4821Package_SO:SOIC-8_5.275x5.275mm_P1.27mmU4
1OP07Package_SO:SOIC-8_5.23x5.23mm_P1.27mmU1
1Opamp_DualPackage_SO:SOIC-8_5.23x5.23mm_P1.27mmU3
1R_PotentiometerPotentiometer_THT:Potentiometer_Bourns_3266W_VerticalRV1

The 37 most common of 41 parts.

Similar boards

  • 2 layers50 × 85 mmUsb headphone amp, the printed circuit board in 3D

    Usb headphone amp

    embediver/usb-headphone-amp

    USB Headphone Amplifier based on RP2040, PCM5102A and NE5532.

    144 parts
  • 2 layers175 × 60 mmUsb rs485 switch, the printed circuit board in 3D

    Usb rs485 switch

    ucw-gadgets/usb-rs485_switch

    8x RS-485 switch and USB convertor

    357 parts
  • 4 layers250 × 140 mmThermocouple 8ch, the printed circuit board in 3D

    Thermocouple 8ch

    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/.

    209 parts1
  • 2 layers110.5 × 108.2 mmDexy, the printed circuit board in 3D

    Dexy

    Len42/Dexy

    DX7-inspired FM synthesis on a Pi Pico

    78 parts4
  • 2 layers115 × 77 mmEload, the printed circuit board in 3D

    Eload

    dimtass/esp8266-web-eload

    This is a PCB/FW project for a WiFi enabled electronic load

    74 parts1
  • 2 layers65 × 56 mmRpisdr, the printed circuit board in 3D

    Rpisdr

    SietseAchterop/Batradio_old

    Software defined ratio on rpi zero

    72 parts1
  • 2 layers99.5 × 99.5 mmCarico elettronico, the printed circuit board in 3D

    Carico elettronico

    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.

    92 parts

Questions

How big is the Moglabs remote locking board PCB?

It measures 99.9 × 70.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Moglabs remote locking board use?

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.

Where can I download the Moglabs remote locking board KiCad files?

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.

Can I use the Moglabs remote locking board design in my own project?

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).