Answers.Body: <p>Here's a still photo showing the final look that I came up with:</p>
  <p><a href="https://i.sstatic.net/3TEFE.jpg" rel="noreferrer"><img src="https://i.sstatic.net/3TEFE.jpg" alt="Rivendell Illuminated" /></a></p>
  <p>Here's an animation attempting to capture the subtle flame effect:</p>
  <p><a href="https://i.sstatic.net/tb95N.gif" rel="noreferrer"><img src="https://i.sstatic.net/tb95N.gif" alt="Overall with flicker animation" /></a></p>
  <h2>Parts</h2>
  <p>I've used 3 <a href="https://rebrickable.com/parts/28738/hub-battery-box-powered-up/" rel="noreferrer">City Powered Up hubs (28738)</a> in this modification:</p>
  <p><a href="https://i.sstatic.net/cN5Cg.png" rel="noreferrer"><img src="https://i.sstatic.net/cN5Cg.png" alt="Powered Up Hub" /></a></p>
  <p>I used 5 <a href="https://rebrickable.com/sets/88005-1/light/?inventory=1#parts" rel="noreferrer">Powered Up lights (88005-1)</a> connected to those hubs:</p>
  <p><a href="https://i.sstatic.net/Hd1dS.png" rel="noreferrer"><img src="https://i.sstatic.net/Hd1dS.png" alt="Powered Up Light" /></a></p>
  <p>I also used a few very common parts to make minor modifications to the model and secure the lights.</p>
  <h2>Modifications</h2>
  <p>This set is composed of three distinct sections that can be moved independently. I chose to maintain this independence for easy portability.</p>
  <h3>Left Section</h3>
  <p>From left to right, the first section is the tower and the bedroom. I chose the hide the battery box where the bookshelf would have been in the lower room:</p>
  <p><a href="https://i.sstatic.net/bYVDU.jpg" rel="noreferrer"><img src="https://i.sstatic.net/bYVDU.jpg" alt="Left battery" /></a></p>
  <p>The hub itself provides a modest amount of light on the lower level and drives an LED in the roof of the bedroom:</p>
  <p><a href="https://i.sstatic.net/y2lBa.jpg" rel="noreferrer"><img src="https://i.sstatic.net/y2lBa.jpg" alt="Bedroom light" /></a></p>
  <p>The second LED on that pair snakes up to the top of the tower:</p>
  <p><a href="https://i.sstatic.net/ctPdg.jpg" rel="noreferrer"><img src="https://i.sstatic.net/ctPdg.jpg" alt="Tower light part 1" /></a></p>
  <p><a href="https://i.sstatic.net/R2qCS.jpg" rel="noreferrer"><img src="https://i.sstatic.net/R2qCS.jpg" alt="Tower light part 2" /></a></p>
  <p><a href="https://i.sstatic.net/UhSqU.jpg" rel="noreferrer"><img src="https://i.sstatic.net/UhSqU.jpg" alt="Tower light part 3" /></a></p>
  <h3>Center Section</h3>
  <p>For the center section, I chose to hide the battery box in the roof. I found that it fits quite nicely once it gets wiggled into position:</p>
  <p><a href="https://i.sstatic.net/wiheU.jpg" rel="noreferrer"><img src="https://i.sstatic.net/wiheU.jpg" alt="Center battery box" /></a></p>
  <p>One pair of LEDs is used to light the main section. I've attached them via 1x2 Technic bricks in the rafters above the shards of Narsil:</p>
  <p><a href="https://i.sstatic.net/HfuUS.jpg" rel="noreferrer"><img src="https://i.sstatic.net/HfuUS.jpg" alt="Shards of Narsil Lights" /></a></p>
  <p>The second set of lights from this hub are split up. One goes to the small tower:</p>
  <p><a href="https://i.sstatic.net/xjLZV.jpg" rel="noreferrer"><img src="https://i.sstatic.net/xjLZV.jpg" alt="Center tower light" /></a></p>
  <p>The other light is hidden in roof of the small structure jutting out from the main hall:</p>
  <p><a href="https://i.sstatic.net/4YZ6h.jpg" rel="noreferrer"><img src="https://i.sstatic.net/4YZ6h.jpg" alt="Center front light" /></a></p>
  <h3>Right Section</h3>
  <p>One pair of lights is used under the bridge to accent the water. These are affixed to a pair of 1x2 Technic bricks placed under the bridge:</p>
  <p><a href="https://i.sstatic.net/8ViC9.jpg" rel="noreferrer"><img src="https://i.sstatic.net/8ViC9.jpg" alt="Bridge Lights" /></a></p>
  <p>The second set of lights are split up. One provides general moonlight-like illuminate for the gazebo:</p>
  <p><a href="https://i.sstatic.net/Zmmje.jpg" rel="noreferrer"><img src="https://i.sstatic.net/Zmmje.jpg" alt="Gazebo Light" /></a></p>
  <p>The final light is placed behind the fire for the forge. It is attached to a Technic brick that replaced the black panel behind the fire in the original build:</p>
  <p><a href="https://i.sstatic.net/JN1jO.jpg" rel="noreferrer"><img src="https://i.sstatic.net/JN1jO.jpg" alt="Forge Light" /></a></p>
  <h2>Software</h2>
  <p>I wanted to use the City Hubs for this project, as they are relatively small, widely available, and most compatible with System building. Unfortunately, these hubs can't be used without a constant connection to a smart device using the default firmware.</p>
  <p>This limitation can be overcome using <a href="https://pybricks.com/" rel="noreferrer">Pybricks</a>. I wrote some basic code to the hub that would turn on any attached lights without the need for a smart device. From there, it is fairly straightforward to add a flickering algorithm.</p>
  <p>While I was making things more complicated, I figured that it also made sense to leverage the RGB LED built into the hubs. I set this to also flicker in a nice orange hue. The <a href="https://github.com/jncraton/bricklights/blob/main/examples/cityflames.py" rel="noreferrer">code</a> for all of this is available on Github if its useful to anyone.</p>
  <p>I like the final look of the flickering quite well. Here's my attempt to capture it again:</p>
  <p><a href="https://i.sstatic.net/tb95N.gif" rel="noreferrer"><img src="https://i.sstatic.net/tb95N.gif" alt="Overall with flicker animation" /></a></p>
  <h2>Final Model</h2>
  <p>Here are few shots from various parts of the model showing off the lighting:</p>
  <p><a href="https://i.sstatic.net/3MO9K.jpg" rel="noreferrer"><img src="https://i.sstatic.net/3MO9K.jpg" alt="Forge" /></a></p>
  <p><a href="https://i.sstatic.net/lVsEo.jpg" rel="noreferrer"><img src="https://i.sstatic.net/lVsEo.jpg" alt="Gazeebo with Aragorn and Arwen" /></a></p>
  <p><a href="https://i.sstatic.net/d2F18.jpg" rel="noreferrer"><img src="https://i.sstatic.net/d2F18.jpg" alt="Boromir and the shards of Narsil" /></a></p>
  <p><a href="https://i.sstatic.net/S15uz.jpg" rel="noreferrer"><img src="https://i.sstatic.net/S15uz.jpg" alt="Frodo with Gandalf" /></a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-05-26T12:53:39.567Z
Answers.Text: That's nicely done.  I saw something quite interesting about flickering a while back, but I can't find it now.  One thing that's interesting is that a flame that goes steady (after flickering) gets whiter as well as brighter. I played with flame flickering on a Arduino - it was quite effective but I don't seem to have uploaded the code anywhere.  You could simulate different fires flickering separately, but also a breeze causing them to behave in sync
Answers.UserDisplayName: Chris H
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-05-25T20:20:27.247Z
Answers.LastActivityDate: 2023-05-25T20:20:27.247Z
Answers.UserDisplayName: jncraton
Body: <p>I'd love to add lights to the Rivendell set to improve the look of the displayed model in low light.</p>
  <p><a href="https://i.sstatic.net/x9lYU.png" rel="noreferrer"><img src="https://i.sstatic.net/x9lYU.png" alt="Rivendell set photo" /></a></p>
  <p>Ideally, the lights would provide a flame-like effect where appropriate.</p>
  <p>What is the best way to do this using official LEGO parts?</p>
  
Tags: <set-modification><lighting>
Title: How could I add fire-like lighting to Rivendell?
UserDisplayName: jncraton
ThreadText: # How could I add fire-like lighting to Rivendell?
  
  (Asked by: username_0 on 2023-05-25)
  
  I'd love to add lights to the Rivendell set to improve the look of the displayed model in low light.
  
  [![Rivendell set photo](https://i.sstatic.net/x9lYU.png)](https://i.sstatic.net/x9lYU.png)
  
  Ideally, the lights would provide a flame-like effect where appropriate.
  
  What is the best way to do this using official LEGO parts?
  
  **Tags:** set-modification, lighting
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2023-05-25. Score: 21
  
  Here's a still photo showing the final look that I came up with:
  
  [![Rivendell Illuminated](https://i.sstatic.net/3TEFE.jpg)](https://i.sstatic.net/3TEFE.jpg)
  
  Here's an animation attempting to capture the subtle flame effect:
  
  [![Overall with flicker animation](https://i.sstatic.net/tb95N.gif)](https://i.sstatic.net/tb95N.gif)
  
  ## Parts
  
  I've used 3 [City Powered Up hubs (28738)](https://rebrickable.com/parts/28738/hub-battery-box-powered-up/) in this modification:
  
  [![Powered Up Hub](https://i.sstatic.net/cN5Cg.png)](https://i.sstatic.net/cN5Cg.png)
  
  I used 5 [Powered Up lights (88005-1)](https://rebrickable.com/sets/88005-1/light/?inventory=1#parts) connected to those hubs:
  
  [![Powered Up Light](https://i.sstatic.net/Hd1dS.png)](https://i.sstatic.net/Hd1dS.png)
  
  I also used a few very common parts to make minor modifications to the model and secure the lights.
  
  ## Modifications
  
  This set is composed of three distinct sections that can be moved independently. I chose to maintain this independence for easy portability.
  
  ### Left Section
  
  From left to right, the first section is the tower and the bedroom. I chose the hide the battery box where the bookshelf would have been in the lower room:
  
  [![Left battery](https://i.sstatic.net/bYVDU.jpg)](https://i.sstatic.net/bYVDU.jpg)
  
  The hub itself provides a modest amount of light on the lower level and drives an LED in the roof of the bedroom:
  
  [![Bedroom light](https://i.sstatic.net/y2lBa.jpg)](https://i.sstatic.net/y2lBa.jpg)
  
  The second LED on that pair snakes up to the top of the tower:
  
  [![Tower light part 1](https://i.sstatic.net/ctPdg.jpg)](https://i.sstatic.net/ctPdg.jpg)
  
  [![Tower light part 2](https://i.sstatic.net/R2qCS.jpg)](https://i.sstatic.net/R2qCS.jpg)
  
  [![Tower light part 3](https://i.sstatic.net/UhSqU.jpg)](https://i.sstatic.net/UhSqU.jpg)
  
  ### Center Section
  
  For the center section, I chose to hide the battery box in the roof. I found that it fits quite nicely once it gets wiggled into position:
  
  [![Center battery box](https://i.sstatic.net/wiheU.jpg)](https://i.sstatic.net/wiheU.jpg)
  
  One pair of LEDs is used to light the main section. I've attached them via 1x2 Technic bricks in the rafters above the shards of Narsil:
  
  [![Shards of Narsil Lights](https://i.sstatic.net/HfuUS.jpg)](https://i.sstatic.net/HfuUS.jpg)
  
  The second set of lights from this hub are split up. One goes to the small tower:
  
  [![Center tower light](https://i.sstatic.net/xjLZV.jpg)](https://i.sstatic.net/xjLZV.jpg)
  
  The other light is hidden in roof of the small structure jutting out from the main hall:
  
  [![Center front light](https://i.sstatic.net/4YZ6h.jpg)](https://i.sstatic.net/4YZ6h.jpg)
  
  ### Right Section
  
  One pair of lights is used under the bridge to accent the water. These are affixed to a pair of 1x2 Technic bricks placed under the bridge:
  
  [![Bridge Lights](https://i.sstatic.net/8ViC9.jpg)](https://i.sstatic.net/8ViC9.jpg)
  
  The second set of lights are split up. One provides general moonlight-like illuminate for the gazebo:
  
  [![Gazebo Light](https://i.sstatic.net/Zmmje.jpg)](https://i.sstatic.net/Zmmje.jpg)
  
  The final light is placed behind the fire for the forge. It is attached to a Technic brick that replaced the black panel behind the fire in the original build:
  
  [![Forge Light](https://i.sstatic.net/JN1jO.jpg)](https://i.sstatic.net/JN1jO.jpg)
  
  ## Software
  
  I wanted to use the City Hubs for this project, as they are relatively small, widely available, and most compatible with System building. Unfortunately, these hubs can't be used without a constant connection to a smart device using the default firmware.
  
  This limitation can be overcome using [Pybricks](https://pybricks.com/). I wrote some basic code to the hub that would turn on any attached lights without the need for a smart device. From there, it is fairly straightforward to add a flickering algorithm.
  
  While I was making things more complicated, I figured that it also made sense to leverage the RGB LED built into the hubs. I set this to also flicker in a nice orange hue. The [code](https://github.com/username_0/bricklights/blob/main/examples/cityflames.py) for all of this is available on Github if its useful to anyone.
  
  I like the final look of the flickering quite well. Here's my attempt to capture it again:
  
  [![Overall with flicker animation](https://i.sstatic.net/tb95N.gif)](https://i.sstatic.net/tb95N.gif)
  
  ## Final Model
  
  Here are few shots from various parts of the model showing off the lighting:
  
  [![Forge](https://i.sstatic.net/3MO9K.jpg)](https://i.sstatic.net/3MO9K.jpg)
  
  [![Gazeebo with Aragorn and Arwen](https://i.sstatic.net/lVsEo.jpg)](https://i.sstatic.net/lVsEo.jpg)
  
  [![Boromir and the shards of Narsil](https://i.sstatic.net/d2F18.jpg)](https://i.sstatic.net/d2F18.jpg)
  
  [![Frodo with Gandalf](https://i.sstatic.net/S15uz.jpg)](https://i.sstatic.net/S15uz.jpg)
  
  > **Comments:**
  > **username_1**: That's nicely done.  I saw something quite interesting about flickering a while back, but I can't find it now.  One thing that's interesting is that a flame that goes steady (after flickering) gets whiter as well as brighter. I played with flame flickering on a Arduino - it was quite effective but I don't seem to have uploaded the code anywhere.  You could simulate different fires flickering separately, but also a breeze causing them to behave in sync  
  
  ---
  
  