Skip to the content
2 layers99.8 × 35 mmLichtobjekt 6, the printed circuit board in 3D

The "Lichtobjekt" projects allows to create portable lighting appliances.

Size
99.8 × 35 mm
Copper layers
2
Thickness
1.6 mm
Parts
125
Nets
84
Pads
387
Tracks, vias
889, 315
Pours
6
Routed
Yes
KiCad
KiCad 6 (file 20211014)
Created
6 May 2018
Updated
28 Apr 2024

Overview

Lichtobjekt 6 is an open-source printed circuit board by martinclausen2, from the martinclausen2/Lichtobjekt repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 99.8 × 35 mm with 125 parts on 84 nets, routed with 889 tracks and 315 vias.

It is built around the MMA8452QT, BQ2057WSN and RV-3029-C2, with the TSOP34838, BSS138 and MBR0540 among its other parts. Its parts include 44 capacitors, 37 resistors, 9 ICs, 9 transistors and 8 diodes. It belongs with the STM32 boards of this library.

Main components

11

README

README.md

Lichtobjekt

The "Lichtobjekt" projects allows to create portable lighting appliances.

Features

  • Two independent LED driver channels
    • Flicker free brightness control through current adjustment
  • Integrated Li Ion battery charger
  • Status LED to indicate power on, channel, standby, and charging status
  • Brightness measurement to adjust brightness at power on
  • IR remote control (receiver and sender)
    • Option to network devices
  • Single rotational encoder and switch needed to control
  • Embedded terminal to control settings, clock, and alarms

Technical Features

  • ARM Cortex M3 based STM32L151 microcontroller
    • EEPROM for permanent storage of settings
  • RC5 based communication (sender and receiver)
  • Two TPS61165DBVT step-up LED driver with PWM adjustment of LED driving current up to 350mA
  • High dynamic brightness measurement with low cost phototransistor SFH320
  • Low power design
    • Shutdown for IR receiver and voltage measurement
    • MCU power down and frequency adjustment
    • Low power logic voltage regulation with MCP1703
  • Integrated Li Ion charger based on BQ2057WSN
    • Battery temperature monitoring
    • Charging status
    • 2S cell configuration
  • PCB prepared (not used in current software) for
    • Acceleration sensor MMA8452
    • Pin headers for extension with additional I2C devices, LCD, or LED drivers
    • RTC RV3029-C2 - currently the MCU's internal RTC is utilized
    • EEPROM from 24CXXX series with I2C connection - currently the MCU's internal EEPROM is utilized, the EEPROM can be populated if other STM32 MCU are to be used which do not contain a EEPROM

Design description

Hardware

MCU

The STM32L1 series features for this application relevant features like a large number of timers, specific low power modes, and an embedded EEPROM.

The MCU can be programmed and debugged via SWD accessable through a custom pin header, that also exposes the serial port.

LED Driver

To drive a sufficient number of LEDs for edge illumination without efficiency reducing current balancing resistors, a LED driver with a step-up topology was selected. A two cell battery increases the efficiency of the step-up LED driver.

RC5 receiver and sender

A IR emitting diode is driven by a small MOSFET from the PWM output of a timer in the MCU to send RC5 commands.

To receive RC5 commands the output of the IR receiver is sampled at a rate of about 4.5kHz by the MCU. The power supply of the IR receiver is cut in standby mode to prevent the battery to be drained prematurely.

Brightness Sensor

The ambient brightness is sensed via an in expensive a broadly available phototransistor SFA 320. To enhance the dynamic range, the MCU can switch the bias current between two different levels. The precision is fully sufficient to adjust the brightness of the power LEDs at power on and dim the status LED in standby.

Battery Charger

The battery charger follows example application of the BQ2057 charging controller. The input voltage should be 9 V to avoid excessive power dissipation in the charging current regulating power transistor. In newer hardware revision could switch off the charger during overvoltage conditions - However, the implementation in software is currently pending. The status output is read by the MCU, that controls the status LED accordingly. A temperature sensor is used to stop the charging if an overtemperature condition of the battery is detected.

Software

TBA

Known Limitations

  • Very low power modes of MCU cannot be used, since to polarity of the encoder switch is not suitable.
  • The MCU does not switch the battery charger off, if the input voltage would lead to a thermal overload of the charging transistor. The batch of pcb made is missing the required hardware prerequisites. The latest version contains the required circuits, but has not been manufactured yet. The batch is also missing the MOSFET to shutdown the battery temperature and external voltage measurement. Due to the high leakage current of the charging transistor, the battery is drained with about 400µA also during power down.
  • The ioc file currently targets the STM32L151 which is not available anymore. The setup can easily be changed to the STM32L151A.

User Manual

The user interface is rather simplistic.

Turning the encoder increases or decreases the brightness. The integrated push button is used to select functionality and change between on and off. Detailed settings can be adjusted via the serial terminal.

Coming from standby a short button press switches the light on. A long button press activates the networked mode, where other compatible lighting appliances receive commands to follow on, off, and brightness settings.

When the appliance in on the short button press selects between the two individual LED strings and a mode where the brightness is modulated between the two channels.

When the button is pressed, the status led previews a for a short time the next selected functionality.

Standby can be reached via a long button pressed from power on mode.

LED ColorConditionStatus
redstandby
whitepower on
blue flashingcharging
green flashwhile adjusting brightnessmaximum brightness reached
red flashwhile adjusting brightnessminimum brightness reached
white flashpressing the button shortselected first LED channel
red flashpressing the button shortselected second LED channel
pink flashpressing the button shortselected mood light mode
blue flashpressing the button long to power offduration of flash corresponds to the charging status of the battery
green flashpressing the button very longcancel button pressed

The white flash is actually not visible, since the LED is already shining white.

Configuration Manual

The serial port uses the following parameter 115200 Baud rate, data site 8, parity none, stop bits 1

The commands can be listed by sending the command 'help'.

Available Commands

Set Brightness

text
bright [type] <-c channel_no> <-b brightness_value>

set brightness values

TypeDecription
0Brightness last used before lights were switched off.
1Minimum brightness when switched on
2Maximum brightness any time
3Maximum brightness when an alarm is triggered
4PWM offset for brightness
5Current brightness

Get External Brightness

text
getextbright

Get the external brightness from the phototransistor

Infrared Remote Control

text
remote <-a address> <-rm receiver mode> <-sm sender mode> <-sa send address> <-sd send data>

set infrared remote parameters

ModeDecription
0Off
1Alarm
2Condional
3All

Set Date and Time

text
time [hour] [minute] [second]

set time of RTC

text
date [2 digit year] [month] [day] [w] with w weekday

set date of RTC

text
timestamp

get date and time from RTC

Alarm

text
alarmschedule [alarm no] <-w weekday> <-h hour> <-m minute>

set alarm schedule

text
alarmsetting <-f time to fade-in light>

set alarm parameters

text
alarm <-a 1 | 0> <-s alarm skip count>

trigger, reset, set alarm skip count

Power and Battery

text
power <-l 1 | 0>\r\n<-ub battery voltage> <-mub minimum battery voltage>\r\n<-up external power voltage> <-mup minimum external power voltage difference>

switch light, set min external power and battery voltage and calibration

Voltages are given in mV.

Reset Settings

text
reset

reset settings to factory defaults

Status LED

text
statusled [flash count]

flash status led

Mood light

text
fadelight <-f 1 | 0> time - <-t time> <-b brightness> <-mb maximum brightness>

switch and parameterize on mood light

Version

text
version

show STM32 software version

Parts

125
QtyValueFootprintReferences
22220nLichtobjekt 6:C0603C3, C4, C11, C16, C17, C18, C20, C21, C22, C24, C26, C32, C35, C36, C37, C39 +6
5100kLichtobjekt 6:R0805R10, R21, R24, R43, R48
5BSS138Lichtobjekt 6:SOT23Q4, T3, T4, T5, T6
410kLichtobjekt 6:R0805R1, R8, R9, R49
410nLichtobjekt 6:C0603C12, C15, C19, C31
422-?-0227-2021Lichtobjekt 6:6410-02J2, J3, J4, J5
310k 0.1%Lichtobjekt 6:R0805R17, R31, R33
31nLichtobjekt 6:C0603C38, C41, C42
31µLichtobjekt 6:C0805C13, C14, C25
333k 0.1%Lichtobjekt 6:R0805R2, R30, R32
34,7kLichtobjekt 6:R0805R11, R12, R13
3470Lichtobjekt 6:R0805R36, R37, R38
3MBR0540Lichtobjekt 6:SOD123D2, D4, D5
3SJLichtobjekt 6:SJSJ1, SJ2, SJ3
21,6Lichtobjekt 6:R1206R5, R23
210µ/16VLichtobjekt 6:C1210C33, C34
2150Lichtobjekt 6:R0805R14, R20
21µ/50VLichtobjekt 6:C0805C2, C10
222pLichtobjekt 6:C0603C27, C28
24.7µ/25VLichtobjekt 6:C0805C1, C9
26.8pLichtobjekt 6:C0603C29, C30
2BLM18Lichtobjekt 6:R0805R15, R26
2GM5WA94310ALichtobjekt 6:GM5WA94310ALED2, LED3
2L-EUPIS2816 22µHLichtobjekt 6:PIS28XXL1, L2
2SFH320LED_SMD:LED_PLCC-2T1, T7
2TPS61165DBVTLichtobjekt 6:SOT95P280X145-6NU2, U4
10,2Lichtobjekt 6:R1206R7
11,5kLichtobjekt 6:R0805R16
1100Lichtobjekt 6:R0805R27
110MLichtobjekt 6:R0805R3
110µLichtobjekt 6:C0805C23
112MHzLichtobjekt 6:3.4X2.7-4-PADQ2
115Lichtobjekt 6:R1206R22
11kLichtobjekt 6:R0805R6
12.2kLichtobjekt 6:R0805R25
122-27-2031-03Lichtobjekt 6:6410-03J1
122-?-0427-2041Lichtobjekt 6:6410-04J6
1220Lichtobjekt 6:R0805R18
1220kLichtobjekt 6:R0805R19
124SNLichtobjekt 6:SO-08IC6
132,768 MS1V-7Lichtobjekt 6:MS1V-T1KQ1
1330kLichtobjekt 6:R0805R4
14.7µLichtobjekt 6:C0805C46
1BQ2057WSNLichtobjekt 6:SOIC127P600X175-8NU1
1BSS84Lichtobjekt 6:SOT23Q5
1EC11B-V-TLichtobjekt 6:EC11B-VSW2
1FZT789ALichtobjekt 6:SOT223T2
1IRLML6402Lichtobjekt 6:SOT23Q3
1MBRS130LT3Lichtobjekt 6:SMBD1
1MCP1703DB 3.0VLichtobjekt 6:SOT223IC3
1MMA8452Lichtobjekt 6:LGA16R50P3X5_300X300X100U3
1P6SMB 13VLichtobjekt 6:SMBJD3
1PINHEADER1X10-05LONGLichtobjekt 6:PINHEADER_005-1-10PH1
1RV-3029-C2Lichtobjekt 6:SON-10IC4
1SFH409Lichtobjekt 6:LED3MMLED1
1STM32F10XCXT6Lichtobjekt 6:TQFP48IC1
1TSOP348Lichtobjekt 6:TSOP348IC2
1X04Lichtobjekt 6:X04N-SILX2
1X05X2Lichtobjekt 6:X10N-IDCX1

Similar boards

  • 2 layers35 × 38.4 mmHandgelenk, the printed circuit board in 3D

    Handgelenk

    Jeija/esp8266-smartwatch

    ESP8266 DIY WiFi Smartwatch with MPU-9250, RTC, OLED, FT232, ...

    61 parts233
  • 4 layers500 × 34 mmPrecision clock, the printed circuit board in 3D

    Precision clock

    Alan-JH/precision-clock

    ECE 362 Final Project

    150 parts
  • 2 layers99.6 × 69.6 mmRGBW Lampe, the printed circuit board in 3D

    RGBW Lampe

    martinclausen2/RGBW-Lampe

    The "RGBW-Lampe" projects allows to create full color lighting appliances.

    162 parts
  • 2 layers64.5 × 120.5 mmX de link, the printed circuit board in 3D

    X de link

    Monacrylic/Pinscope-benchmark-circuits

    This repository contains a suite of sample KiCad circuits used as benchmarks for Pinscope.

    122 parts2
  • 2 layers65 × 30 mmInfra pHAT, the printed circuit board in 3D

    Infra pHAT

    AnaviTechnology/anavi-infrared

    ANAVI Infrared pHAT is an open source hardware Raspberry Pi pHAT (add-on board) for rapid prototyping of Internet of Things (IoT) powered by free and open source software. It features:

    26 parts22
  • 2 layers65 × 56 mmRaspberyPI Hat, the printed circuit board in 3D

    RaspberyPI Hat

    AnaviTechnology/anavi-flex

    ANAVI Flex Raspberry Pi HAT

    46 parts8

Questions

How big is the Lichtobjekt 6 PCB?

It measures 99.8 × 35 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Lichtobjekt 6 use?

125 parts, built around the MMA8452QT, BQ2057WSN, RV-3029-C2 and TSOP34838. 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 Lichtobjekt 6 KiCad files?

From the martinclausen2/Lichtobjekt repository on GitHub, at the commit this page was made from: the board is Schematics/Lichtobjekt 6.kicad_pcb and its schematic Schematics/Lichtobjekt 6.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

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