User Tools

Site Tools


project:maerklin:warnemuende:lighthouse:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
project:maerklin:warnemuende:lighthouse:start [2025/07/15 21:26] – [KiCad] Peter Siegmundproject:maerklin:warnemuende:lighthouse:start [2025/09/23 07:34] (current) – [KiCad] Peter Siegmund
Line 11: Line 11:
 ===== Source Code ===== ===== Source Code =====
  
-[[https://github.com/mars3142/warnemuende_lighthouses|Github]] Action: {{https://github.com/mars3142/warnemuende_lighthouses/actions/workflows/esp32_build.yaml/badge.svg?nocache&.png}}+Everything can be found in the [[https://git.mars3142.dev/model-railway/warnemuende-lighthouses|git repository]]. 
  
 +This device will have three services: **0x180A** (device information services), **0xA000** (light service) and **0xA999** (settings service). Within the services will be specific characteristics, but I don't will describe it here in detail.
 +
 +If you need more information about the BLE communication visit the [[..:..:system_control:ble:start|]] page.
 ===== Design ===== ===== Design =====
  
Line 19: Line 22:
 First, I replicated the building in [[software:onshape:start|]]. This was not as easy as I initially thought, but in the end, I was successful. First, I replicated the building in [[software:onshape:start|]]. This was not as easy as I initially thought, but in the end, I was successful.
  
-The more interesting part was the electronics. I used an [[hardware:esp32:start|]] as the controller and decided to connect it to the [[..:..:system_control:start|]] with my generic BLE system. Then, I tested if I could replicate the beacon signal (2 seconds on and 2 seconds off). It was the first time I had used hardware timers and interrupts for the LEDs. The beacon's LED will illuminate transparent PLA, making the light visible.+The more interesting part was the electronics. I used an [[hardware:esp32:h2:start|]] as the controller and decided to connect it to the [[..:..:system_control:start|]] with my [[..:..:system_control:ble:start|]] system. Then, I tested if I could replicate the beacon signal (2 seconds on and 2 seconds off). It was the first time I had used hardware timers and interrupts for the LEDs. The beacon's LED will illuminate transparent PLA, making the light visible.
  
 A more challenging part will be the outdoor lights, as the building has two of them. I will try to use 0402 3V LEDs and hope that I can print a miniature enclosure to mimic the real lamps. A more challenging part will be the outdoor lights, as the building has two of them. I will try to use 0402 3V LEDs and hope that I can print a miniature enclosure to mimic the real lamps.
  
-==== KiCad ====+===== KiCad =====
  
-The custom PCBs are created within [[software:kicad:start|]]. +The custom PCBs are created within [[software:kicad:start|]] and manufactured by the sponsor [[https://pcbway.com|PCBWay]].
  
 This is the LED board, with is located a the top within the building. Is has connections to the WS2812B RGB LED and the two outdoor 0402 LEDs, which are within separate housings. This is the LED board, with is located a the top within the building. Is has connections to the WS2812B RGB LED and the two outdoor 0402 LEDs, which are within separate housings.
Line 31: Line 34:
 {{:project:maerklin:warnemuende:lighthouse:light_board_front.png?300|}} {{:project:maerklin:warnemuende:lighthouse:light_board_front.png?300|}}
 {{:project:maerklin:warnemuende:lighthouse:light_board_back.png?300|}} {{:project:maerklin:warnemuende:lighthouse:light_board_back.png?300|}}
-{{:project:maerklin:warnemuende:lighthouse:light_board_schematics.png?600|}}+{{:project:maerklin:warnemuende:lighthouse:light_board.svg?600|}}
  
 But the LED board can't work without any controller. Here it is. But the LED board can't work without any controller. Here it is.
Line 37: Line 40:
 {{:project:maerklin:warnemuende:lighthouse:mcu_board_front.png?300|}} {{:project:maerklin:warnemuende:lighthouse:mcu_board_front.png?300|}}
 {{:project:maerklin:warnemuende:lighthouse:mcu_board_back.png?300|}} {{:project:maerklin:warnemuende:lighthouse:mcu_board_back.png?300|}}
-{{:project:maerklin:warnemuende:lighthouse:mcu_board_schematics.png?600|}} +{{:project:maerklin:warnemuende:lighthouse:mcu_board.svg?600|}} 
- +{{:project:maerklin:warnemuende:lighthouse:mcu_board-buck converter.svg?600|}}
-==== Onshape ====+
  
-The modell was created in [[software:onshape:start|]]. More about that later. 
  
project/maerklin/warnemuende/lighthouse/start.1752614810.txt.gz · Last modified: by Peter Siegmund