Schematics and electrical connections
The device is controlled using a custom PCB which connects the Teensy 3.5 development board with the DM542 stepper motor driver. The board is supplied at 24V and voltage regulators provide a 5V power supply to the Teensy board. In addition, there are two bi-directional logic level shifters (5-3.3V), so up to eight 5V signals can be converted to 3.3V. Connections include two BNC connectors to the Teensy DACs, SPI pins (3.3V) and some extra digital pins at 3.3V.
![]() |
|---|
| Figure 1. PCB description |
![]() |
|---|
| Figure 2. PCB with components soldered |
A simplified version of the connections of the setup is shown in Figure 3:
![]() |
|---|
| Figure 3. Setup connections |
The emergency stop opens the 24V power supply circuit. The whole experimental device is disconnected if pressed.
Warning
Before soldering the Emergency stop pins check the continuity between and the logic operation between pins. If the button is pressed, the circuit must be open.
![]() |
|---|
| Figure 4. Emergency stop connections |
Bill of materials
| Component | Quantity | Supplier | Reference |
|---|---|---|---|
| PCB | 1 | - | Gerber files |
| Logic Level Converter Module | 2 | Amazon | link |
| Teensy 3.5 microcontroller | 1 | PJRC | link |
| BNC connectors | 2 | RS Components | link |
| 12V voltage regulator L7812CV | 1 | RS Components | link |
| 5V voltage regulator LM7805 | 1 | RS Components | link |
| Electrolytic capacitor 330 μF 25V | 1 | Ebay | link |
| Electrolytic capacitor 47 μF 50V | 1 | Ebay | link |
| Electrolytic capacitor 1 μF 50V | 1 | Ebay | link |
| Ceramic capacitor 100 nF 25V | 2 | RS Components | link |
| Ceramic capacitor 330 nF 25V | 2 | RS Components | link |
| Standard female pin headers | 6 | Amazon | link |
| Emergency stop | 1 | RS Components | link |
| Hall efect sensor | 1 | Amazon | link |



