Skip to the content
2 layers40 × 60 mmEsp lamp, the printed circuit board in 3D

Elesense Light Bar hacked like LAMP

Size
40 × 60 mm
Copper layers
2
Thickness
1.6 mm
Parts
45
Nets
56
Pads
185
Tracks, vias
319, 74
Pours
2
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
13 Dec 2023
Updated
21 Feb 2024

Overview

Esp lamp is an open-source printed circuit board by xventus, from the xventus/Elesense-Light-Bar repository on GitHub. It is a 2-layer board of 40 × 60 mm with 45 parts on 56 nets, routed with 319 tracks and 74 vias.

It is built around the ESP32-WROOM-32, LC12S and AMS1117-3.3. Its parts include 16 resistors, 11 capacitors, 5 connectors, 4 switches and 3 ICs. It belongs with the lEDs and displays boards and the ESP32 boards of this library.

Main components

3

README

README.md

LAMP

Elesense Light Bar is a monitor lamp from kickstarter. Because of the need to control it using a web interface or script and also out of curiosity how it works, this project was created. Take a screwdriver and an anlyzer and see how it works.....

Communication sniffingPCBnew hwnew hw

Hardware

For communication is to use LC12S module communicating on 2.4GHz. It is used as a transparetic serial line at 9600bps. For the control of the LAMP project the ESP32 module is used. The development was based on ESP-WROVER-KIT.

Wiring the lamp controller based on ESP32

The first version of the board is made. Gerber is in the hw directory.

Interactive BOM

Still in development, custom PCB is being created, will be published in time.


ESP32 GPIONote
GPIO_NUM_25LSC12S TX
GPIO_NUM_26LSC12S RX
GPIO_NUM_19LSC12S SET
GPIO_NUM_18LSC12S CS
GPIO_NUM_2A BUTTON
GPIO_NUM_4B BUTTON
GPIO_NUM_0FLASH BUTTON
GPIO_NUM_5HEART BEAT LED

Protocol

sniff

example:

0x53 0xC2 0x1C 0x00 0x9D 0x1B 0x00 0x0E 0x01 0x17 0x0E 0x26 0x00


Byte positionNote
0header (always 0x53)
1lampID-1 (0xC2)
2lampID-2 (0x1C)
3lampID-3 (always 0x00)
4lampID-4 (0x9D)
5lampID-5 (0x1B)
6lampID-6 (always 0x00)
7lampID-7 (0x0E) (if 0xA4 appears then the rest of the octet is 0x00)
8command 0x01 - ON, 0x10 - OFF, 0x02 - Automatic dimming (0x01)
90x00 - 0x17 intensity (0x00 - min intensity, 0x17 - max intensity), note: when off 0x10 (0x17)
100x00 - 0x17 intensity (0x00 - Yellow MAX, 0x17 - Yellow Min), note: when off 0x10 ([0x0E)
11Checksum = Sum of [8] + [9] + [10] (0x26)
12END mark (always 0x00)

HTTP command

LAMP OFF command

curl -X POST -H "Content-Type: application/json" -d '{"command": "OFF"}' http://xxx.xxx.xxx.xxx/command

LAMP ON with intensity and hue command

curl -X POST -H "Content-Type: application/json" -d '{"command": "ON","brightness":"17","hue":"12"}' http://xxx.xxx.xxx.xxx/command

LAMP get ID & values

curl http://192.168.2.222/values

HW Buttons


ButtonNote
X-BOOT + resetUpoad firmware via serial
X-BOOTON / OFF
AIncreasing the brightness intensity
BDecreasing the brightness intensity
A + B + resetNew initialization, creates a LAM AP and allows you to set up a new WiFi connection

Programming and configuration

Note!!: Resistor R10 is used on GPIO2, it is necessary to ground it during upload. Press the push button or insert the shorting jumper on the push button.

  1. Connect ESP-LAM PCB via 3V3 USB-serial converter to J4 connector
  2. Connect power via USB-C connector or via J1
  3. Run VisualCode and upload the project
  4. In VC Platformio run Build Sytem File Image
  5. Press and hold the BTN-XBOOT button and press the RST button, then release RST and BTN-XBOOT
  6. In VC Platformio run Upload Sytem File Image
  7. Press and hold the BTN-XBOOT button and press the RST button, then release RST and BTN-XBOOT
  8. In VC Platformio, start the Upload Program to ESP
  9. Press the RST button, then the LED should start flashing
  10. On your computer, search for the AP named LAMP AP and connect
  11. In your web browser enter the address http://192.168.4.1
  12. Configure the wifi network and select submit
  13. After reboot, ESP-LAMP will connect to your wifi network and you can connect from the browser to the IP address received from DHCP or specified in the configuration and control the lamp.

LED STATE


LEDNote
.. .. ..LAMP runs in AP mode and waits for configuration
. - . -The LAMP is waiting to be paired. Please use the original control for the lamp. ESP-LAMP will copy the lamp ID.
- - - -LAMP connected to wifi and works
. . . . .Error

Web interface

AP Control

Case

casecasecasecase

STL files to download for 3D printing of the box. Thanks to Pavel Vanek

STL top part

STL bottom part

Parts

45
QtyValueFootprintReferences
6100Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR2, R3, R4, R5, R6, R14
41nFCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC6, C7, C8, C9
4470Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR7, R11, R12, R13
46k8Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR1, R8, R9, R10
2100nFCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC3, C11
210uFCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC4, C10
222uFCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC1, C2
25k1Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR15, R16
1100nCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC5
11N4148Diode_SMD:D_SOD-128D2
1AButton_Switch_THT:SW_PUSH-12mm_Wuerth-430476085716SW3
1AMS1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U1
1BButton_Switch_THT:SW_PUSH-12mm_Wuerth-430476085716SW4
1ESP32-WROOM-32RF_Module:ESP32-WROOM-32U2
1ExpandConnector_PinHeader_2.54mm:PinHeader_2x04_P2.54mm_VerticalJ2
1JTAGConnector_PinHeader_2.54mm:PinHeader_2x04_P2.54mm_VerticalJ3
1LC12Slcs:LC12SU3
1LEDLED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolderD1
1RESETButton_Switch_THT:SW_PUSH_6mm_H4.3mmSW1
1Screw_Terminal_01x02TerminalBlock_Phoenix:TerminalBlock_Phoenix_MPT-0,5-2-2.54_1x02_P2.54mm_HorizontalJ1
1SerialConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ4
1USB_C_Receptacle_USB2.0Connector_USB:USB_C_Receptacle_HRO_TYPE-C-31-M-12J5
1X-BOOTButton_Switch_THT:SW_PUSH-12mm_Wuerth-430476085716SW2

The 41 most common of 45 parts.

Similar boards

  • 2 layers50.8 × 50.8 mmSolarDataLogger PCB, the printed circuit board in 3D

    SolarDataLogger PCB

    Lopfi/solar-logger

    This is a simple box with an ESP32 with a LC12S, build to replace a DataBox24G from All of Solar, which communicates with a solar inverter to collect data on power generation.

    25 parts4
  • 2 layers15.2 × 24.4 mmLC12S Breakout, the printed circuit board in 3D

    LC12S Breakout

    mcauser/LC12S-Breakout

    Breakout board for the LC12S 2.4GHz UART transceiver module

    2 parts1MIT
  • 2 layers90 × 76.5 mmLCDZapperPro, the printed circuit board in 3D

    LCDZapperPro

    charcole/LCDZapper

    Device for making light gun games playable on LCD TVs

    126 parts163
  • 2 layers85 × 56 mmHB RF ETH, the printed circuit board in 3D

    HB RF ETH

    alexreinert/PCB

    Some of my PCBs

    96 parts104
  • 2 layers62.2 × 30.5 mmWLED ESP32 Controller, the printed circuit board in 3D

    WLED ESP32 Controller

    Hasenpups/WLED_ESP32_Controller

    This work is licensed under a [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License][cc-by-nc-sa].

    24 parts44
  • 2 layers150 × 50 mmEsp32-led smps, the printed circuit board in 3D

    Esp32-led smps

    lucysrausch/esp32-led-smps

    230V main LED smps. 2x30W Constant Current.

    179 parts30
  • 2 layers40 × 68 mmMULTIGW, the printed circuit board in 3D

    MULTIGW

    nuclearcat/ESP32ETH

    Simple ESP32 with native ethernet using LAN8720 phy, Arduino compatible

    32 parts30LGPL-2.1
  • 2 layers259.5 × 60.7 mm1512hh control, the printed circuit board in 3D

    1512hh control

    larryqiann/AP1512HH-ESP32

    Coway AP1512HH Main Board replacement with ESP32

    71 parts29CERN-OHL-P-2.0

Questions

How big is the Esp lamp PCB?

It measures 40 × 60 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Esp lamp use?

45 parts, built around the ESP32-WROOM-32, LC12S and AMS1117-3.3. 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 Esp lamp KiCad files?

From the xventus/Elesense-Light-Bar repository on GitHub, at the commit this page was made from: the board is hw/esp-lamp.kicad_pcb and its schematic hw/esp-lamp.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Esp lamp design in my own project?

Its repository states no licence, so its author keeps all rights: ask xventus before reusing the design.