Skip to the content
2 layers68.6 × 53.3 mmShield, the printed circuit board in 3D

First, open the LEDControlinterruptscreenascii.cpp code in Arduino.ide. To run the program, you must first have the SSD1306Ascii library installed on Arduino.

Size
68.6 × 53.3 mm
Copper layers
2
Thickness
1.6 mm
Parts
23
Nets
48
Pads
90
Tracks, vias
138, 8
Pours
1
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
21 Mar 2025
Updated
14 May 2025

Overview

Shield is an open-source printed circuit board by Julie-Mauguit, from the Julie-Mauguit/CSL-light-hardware repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 68.6 × 53.3 mm with 23 parts on 48 nets, routed with 138 tracks and 8 vias.

It is built around the BS170. Its parts include 13 connectors, 2 resistors, 2 transistors and 2 switches.

Main components

1

README

README.md

CSL-light-hardware

I. Objectives

LED module operating modes with a pcb plate

MODE 1 - Sequence of pulses

The user can define on the computer the frequency and amplitude of a sequence of pulses.

MODE 2 - Analog control

The user can send an analog signal to control the LED. The analog signal can be designed using eg. a signal generator.

MODE 3 - Manual control

The user can set the LED level using a potentiometer.

II. Usage

I. Access mode

  • To access Mode 1: set interruptor to 1 ("serial" shows up on the screen) and switch the flip to PWM.
  • To access Mode 2: set interruptor to 1 ("serial" shows up on the screen) and switch the flip to analog.
  • To access Mode 3: set interruptor to 0 ("manual" shows up on the screen).

II. Connection

  • Insert the LED jacks into the corresponding holes
  • Insert the generator jacks into the corresponding holes
  • Insert the jacks to feed the analog signals into the corresponding input holes

[blocked]

III. Using the LEDControl_interrupt_screen_ascii code

First, open the LEDControl_interrupt_screen_ascii.cpp code in Arduino.ide. To run the program, you must first have the SSD1306Ascii library installed on Arduino.

Explains how to control light sources with Arduino and Python, and generate a trigger signal to synchronize a camera

Test the control command:

  • type: #d[3,0,0,1,0,2,0,255]:xxxx.
    It is a command to generate on and off output on pin 3 or 6. The pin stays on for 1 seconds with a period of 2 seconds, at intensity 255. It is later on embeded in a Pyton code for clarity. You should see a character sequence appear.
  • Then type #b[100,0]:xxxx to start the experiment. You should see the LEDs blink (frequency 0.5Hz).
  • To stop the blinking, type #e:xxxx

III. Manufacture

I. Kicad

Kicad Folder

A. Complete electronic circuit

Complete Circuit on Kicad :

[blocked]

LED 1 and 2 :

[blocked]

PWM Control :

[blocked]

Analog Control :

[blocked]

Serial or Manual Mode :

[blocked]

B. Component roles
  • Top connectors (J5, J7, J6, J8, J10) : These are screw terminal blocks used to connect LEDs, power, or other peripherals.
  • Relays (RECOM1, RECOM2, etc.) : Their role is to adjust the LED light output to prevent damage. They therefore act as power regulators.
  • MOSFETs (BS170) : These are used to invert the signal. In fact, the RECOM inverts the input signal, it is inverted a first time before it processes it, in order to obtain the initially desired signal at the output. This can be useful if the LEDs require active low control (they light up when the signal is LOW).
  • Potentiometers (RV1, RV2) : These allow for a manual mode to adjust LED intensity via an analog input.
  • Double Switch (SW_DPDT_x2) : Two switches are used to select between analog or PWM control for each LED.
  • A Switch On-Off (Jumper_2_Open) : It allows switching between Serial and Manual modes.
C. Impression

It lasts about 30 minutes.

[blocked]

II. Welding

A. Shield Arduino

First, you need to solder the branches of the Arduino.

B. Components that you solder directly onto the PCB board
  • Resistors
  • MOSFET transistors
  • RECOM
  • Terminal blocks
  • Vias
C. Components that you don't solder directly onto the PCB board
  • The 2 potentiometers
  • The OLED screen
  • The 2 switches
  • The on-off switch

After welding
[blocked]

D. Jack sockets

You have to solder cables with the female jack sockets.

[blocked]

For the black and red cables of the male jack, you must solder them to the generator, LED, and signal cables. Before soldering, prepare some heat-shrink tubing to prevent loose connections.

E. List of components

On GOTRRONIC :

III. Assembly

A. Box printing

Solidworks box

Printing the box takes approximately 1 hour and 20 minutes. Printing the box lid takes approximately 30 minutes. Printing the small panel with the instructions takes approximately 13 minutes.

B. Plastic inserts

You will need to make three 3.7mm diameter, 3mm deep plastic inserts with 6mm long M3 screws to secure the Arduino to the enclosure lid. Then, make 3mm diameter, 3mm deep plastic inserts with 8mm long M3 screws to close the enclosure.

C. Finalization

Screw the components into the box in this order:

  • Female jack sockets
  • OLED display with 10mm long M2 screws and nuts
  • The two switches
  • The on-off switch
  • The two potentiometers

After assembly
[blocked] [blocked]

IV. Code

Code Arduino/LEDControl_interrupt_screen_ascii

The code has been adapted to suit the circuit. In this configuration, pins 3 and 6 are used for PWM inputs, while pins A0 and A1 are used for analog inputs.

Explains how to control light sources with Arduino and Python, and generate a trigger signal to synchronize a camera

License

Copyright (C) 2025

Author(s): Julie Maugit - Polytech Sorbonne Thierry Legou - CNRS/Aix-Marseille Université Peter Hanappe - Sony Computer Science Laboratories Paris Aliénor Lahlou - Sony Computer Science Laboratories Paris

You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This project is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

This work was supported by the European Innovation Council Pathfinder Open DREAM (grant no. 101046451)

Parts

23
QtyValueFootprintReferences
6Screw_Terminal_01x02Connector_PinHeader_2.54mm:PinHeader_2x01_P2.54mm_VerticalJ5, J6, J7, J8, J9, J10
2BS170Package_TO_SOT_THT:TO-92_InlineQ1, Q2
2RCD-24Converter_DCDC:Converter_DCDC_RECOM_RCD-24_THTRECOM1, RECOM2
2SW_DPDT_x2Lib_indus:SW_CK_JS202011CQN_DPDT_StraightSW1, SW2
2Screw_Terminal_01x03Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ12, J13
18200Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P2.54mm_VerticalR1
1AnalogConnector_PinSocket_2.54mm:PinSocket_1x06_P2.54mm_VerticalJ3
1Digital/PWMConnector_PinSocket_2.54mm:PinSocket_1x08_P2.54mm_VerticalJ4
1Digital/PWMConnector_PinSocket_2.54mm:PinSocket_1x10_P2.54mm_VerticalJ2
1Jumper_2_OpenLib_indus:SW_DIP_SPSTx01_Slide_9.78x4.72mm_W7.62mm_P2.54mm_modifJP1
1MountingHole_3.2mmArduino_MountingHole:MountingHole_3.2mmMH1
1PowerConnector_PinSocket_2.54mm:PinSocket_1x08_P2.54mm_VerticalJ1
1RResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P2.54mm_VerticalR2
1Screw_Terminal_01x04Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ11

Similar boards

  • 2 layers21.1 × 26.9 mmDemo, the printed circuit board in 3D

    Demo

    easyw/kicadStepUpMod

    kicadStepUp: ECAD to MCAD FreeCAD WorkBench

    16 parts704
  • 2 layers94.6 × 46.1 mmHeaterMeterPI, the printed circuit board in 3D

    HeaterMeterPI

    CapnBry/HeaterMeter

    HeaterMeter and LinkMeter Arduino BBQ Controller

    66 parts557MIT
  • 2 layers97.1 × 97 mmADX, the printed circuit board in 3D

    ADX

    WB2CBA/ADX

    ADX - Arduino Digital Modes HF Transceiver

    82 parts136
  • 2 layers121 × 68 mmFreeds sanchez, the printed circuit board in 3D

    Freeds sanchez

    pablozg/freeds

    Derivador de energía solar excedente creado por Pablo Zerón, Diseño PCB por Amcalo, Tester original por Aeizoon, Wiki por Zoilo Mora

    42 parts108
  • 2 layers167.6 × 97.5 mmAS3397 proto DIP, the printed circuit board in 3D

    AS3397 proto DIP

    PhysicsDptAngers/polyUAnalog

    Open source, analog and polyphonic synthesizer

    142 parts88MIT
  • 2 layersT41-Main+RF board V012, the printed circuit board in 3D

    T41-Main+RF board V012

    DRWJSCHMIDT/T41

    This is the repository for the officially released V10, V11, and V12 versions of the T41 Software Defined Transceiver hardware and kits.

    255 parts66
  • 2 layers71.1 × 24.1 mmDactyl manuform gimbal, the printed circuit board in 3D

    Dactyl manuform gimbal

    sffubs/dactyl_manuform_gimbal

    Instrutions and designs for building the dactyl-manuform-gimbal keyboard

    20 parts57

Questions

How big is the Shield PCB?

It measures 68.6 × 53.3 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Shield use?

23 parts, built around the BS170. 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 Shield KiCad files?

From the Julie-Mauguit/CSL-light-hardware repository on GitHub, at the commit this page was made from: the board is Kicad pcb/shield.kicad_pcb and its schematic Kicad pcb/shield.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Shield 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).