

SommerAdapter
Add-On PCB and ESPHome software to read gate state of Sommer twist 200 (and similar) to implement open and close commands
- Size
- 38 × 33 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 23
- Nets
- 12
- Pads
- 53
- Tracks, vias
- 190, 75
- Pours
- 3
- Routed
- Yes
- KiCad
- KiCad 7 (file 20221018)
- Created
- 14 Apr 2024
- Updated
- 14 Apr 2024
Overview
SommerAdapter is an open-source printed circuit board by Luddi1, from the Luddi1/Sommer-Twist-Automation repository on GitHub, published under the MIT licence. It is a 2-layer board of 38 × 33 mm with 23 parts on 12 nets, routed with 190 tracks and 75 vias.
It is built around the SFH 309-5, PESD3V3S2UT and P4SMAJ5.0CA. Its parts include 7 resistors, 7 transistors, 4 diodes, 1 capacitor and 1 connector.
Main components
3SFH 309-5
插件-40℃~+100℃ 15mA 165mW 200nA 35V 860nm 插件 Phototransistors ROHSOSRAM Opto SemiconPhototransistorsPESD3V3S2UT
SOT-2318A 2 207pF 20V 2uA 3.3V 330W@8/20us 5.2V ESD IEC 61000-4-2、IEC 61000-4-5 Unidirectional SOT-23 ESD and Surge Protection (TVS/ESD) ROHSNexperiaESD And Surge Protection (TVS/ESD)P4SMAJ5.0CA
SMA(DO-214AC)ESD And Surge Protection (TVS/ESD)DIOTEC
README
README.mdSommer Twist Automation
Add-On PCB and ESPHome software to read gate state of Sommer twist 200 (and similar) to implement open and close commands
Problem: Sommer Twist 200 (and similar) gate controllers only have an impulse-input. When toggling this input an open gate closes, closed gate opens and a moving gate stops. However, to integrate this into a smarter setup, distinct commands for open and close are needed.
Solution: We read out the LEDs on the gate controller PCB which indicate whether the gate opens or closes, save the state and toggle the impulse-input, depending on the current state and the desired command.


This solution needs no hardware hacks on the original Sommer controller. Find below the contents of the repository, BOMs for the read-out PCB and the overall system.
Contents of repository
- SommerAdapter KiCad Project of PCB. Basically implements opto-couplers using the LEDs on the Sommer gate controller.
- SommerAdapter-Mount Fusion 360 Project and step files to mount PCB on Sommer controller.
- Setup ESPHome YAML Script for ASTRA controller and wiring diagram.
- Gallery Some pictures of the installation.
BOM SommerAdapter PCB Assembly
Parts for one PCB of SommerAdapter/SommerAdapter.kicad_pcb
| Component Refs | Value | Package | Qty | Reichelt # |
|---|---|---|---|---|
| C1 | 100n | C_0603_1608Metric | 1 | KEM Y5V0603 100N |
| R1, R2, R3, R4, R5, R6, R7 | 47k | R_0603_1608Metric | 7 | SMD-0603 47K |
| D2, D7 | PESD3V3S2UT | SOT-23 | 2 | PESD3V3S2UT |
| D1 | SS 16 | D_SMA | 1 | SS 16 |
| D6 | P4SMAJ5.0CA | D_SMA | 1 | P4SMAJ5.0CA |
| Q1, Q2, Q3, Q4, Q5, Q6, Q7 | SFH309-5 | LED_D3.0mm_Clear | 7 | SFH 309-5 OSO |
| J1 | DG308 | 2,54-6 | 1 | DG308 2,54-6 |
BOM Complete Setup
For presented setup to control a Twist 200. Of course you can make use of the PCB with some other microcontroller and software in your own setup.
| Component | Qty |
|---|---|
| SommerAdapter PCB Assembly | 1 |
| 3D printed SommerAdapter-Mount/LowerPart.step | 1 |
| 3D printed SommerAdapter-Mount/UpperPart.step | 1 |
| ASTRA controller, 4 Relays 16A, 4 AC Input, AC power, LED (BR4A4AL) | 1 |
| RJ12 6P6C adapter with screw terminals | 1 |
| Panhead screw M3 x 10 | 1 |
| Socket head screw M3 x 16 | 2 |
| Lapp 1030243 LiYY PVC Control Cable 8 x 0.34 mm² | ~2m |
| Distribiution box 180x240x130mm IP65 F-ELEKTRO 5901087041915 | 1 |
| Momentary switch Aquant 1207-65 IP65 | 1 |
| DIN rail, mounting hardware, some Wago 221 and DIN rail adapter 221-500, 0.34 ferrules |
Some notes:
- The printed parts are designed for ABS. Other materials will probably work, too.
- Keep the cable run for the SommerAdapter PCB as short as possible and avoid runs next to other cables.
- Flash ESPHome to ASTRA controller and set to SPI mode. See manual. Use SPI (left) RJ12 socket. We need the GPIOs and GND/3.3V to power our board.
Parts
23| Qty | Value | Footprint | References |
|---|---|---|---|
| 7 | 10k | Resistor_SMD:R_0603_1608Metric | R1, R2, R3, R4, R5, R6, R7 |
| 7 | SFH309-5 | LED_THT:LED_D3.0mm_Clear | Q1, Q2, Q3, Q4, Q5, Q6, Q7 |
| 2 | PESD3V3S2UT | Package_TO_SOT_SMD:SOT-23 | D2, D7 |
| 1 | 100n | Capacitor_SMD:C_0603_1608Metric | C1 |
| 1 | DG308 2,54-6 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MPT-0,5-6-2.54_1x06_P2.54mm_Horizontal | J1 |
| 1 | JP_Signal3 | Jumper:SolderJumper-3_P1.3mm_Bridged12_RoundedPad1.0x1.5mm_NumberLabels | JP1 |
| 1 | JP_Signal4 | Jumper:SolderJumper-3_P1.3mm_Bridged12_RoundedPad1.0x1.5mm_NumberLabels | JP2 |
| 1 | P4SMAJ5.0CA | Diode_SMD:D_SMA | D6 |
| 1 | SS 16 | Diode_SMD:D_SMA | D1 |
| 1 | TestPoint | TestPoint:TestPoint_Pad_2.0x2.0mm | TP1 |
Similar boards
- 2 layers172 × 230 mm

- 4 layers149 × 95 mm

- 4 layers79 × 79 mm

Minuet
brown-studios/minuet
Minuet upgrades your MAXXAIR Maxxfan with a brushless DC motor, home automation features, and accessories.
103 parts67MIT - 4 layers65 × 30 mm

- 2 layers75 × 100 mm

Timestamper
tomwimmenhove/timestamper
CPLD VHDL project for precise time stamping of events
115 parts1GPL-3.0 - 4 layers64 × 41 mm

- 4 layers150 × 120 mm

- 2 layers180 × 160 mm

Questions
How big is the SommerAdapter PCB?
It measures 38 × 33 mm and has 2 copper layers, 1.6 mm thick.
What parts does the SommerAdapter use?
23 parts, built around the SFH 309-5, PESD3V3S2UT and P4SMAJ5.0CA. 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 SommerAdapter KiCad files?
From the Luddi1/Sommer-Twist-Automation repository on GitHub, at the commit this page was made from: the board is SommerAdapter/SommerAdapter.kicad_pcb and its schematic SommerAdapter/SommerAdapter.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the SommerAdapter design in my own project?
Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).