![](images/elect/spiral_HD_lamp/stock_lamp.png)
|
Here is a picture of the stock
Home Depot lamp. After the lamp rebuild, the lamp
looks basically the same but operates much
differently.
|
![](images/elect/spiral_HD_lamp/3DPrintedHousing.png)
|
3D printed housing
for the ESP32 module. I designed this piece in
OpenSCAD, sliced it with the Prusa Slicer and then
printed it in PET-G filament with my Prusa 3D printer.
In total there are three 3D printed pieces used in
rebuilding the lamp.
|
![](images/elect/spiral_HD_lamp/3DPrintedHousingInside.png)
|
Inside the housing you can see
four posts for mounting the ESP32 module carrier and
the two posts with embedded nuts for mounting the
finished housing to the lamp's base. This housing was
3D printed in this orientation so no supports of any
kind were required.
|
![](images/elect/spiral_HD_lamp/3DPrintedESP32Support.png)
|
This is the WEMOS D1 Mini ESP32
module mounted onto the 3D printed support. The four
holes in the corners of the support mate with the
posts in the image above.
|
![](images/elect/spiral_HD_lamp/ESP32HotGluedToSupport.png)
|
I hot glued the ESP32 module to
the 3D printed support. The ESP32 had to be firmly
mounted because of inserting and removing a USB
programming cable over and over. The half circle
cutouts on the sides of the support are necessary to
allow this module to slide in between the housing
mounting posts.
|
![](images/elect/spiral_HD_lamp/3DPrintedPIRSupport.png)
|
3D printed PIR motion sensor and
mode switch support with the components hot glued in.
|
![](images/elect/spiral_HD_lamp/PIRSupport.png)
|
PIR support with mode push button
switch. The PIR sensor is pitched upward at a 30
degree angle because it will be mounted on the base of
the lamp and needs to detect motion above the floor.
|
![](images/elect/spiral_HD_lamp/PIRSupportGluedToHousing.png)
|
PIR support super glued to
housing. Wires coming out of the bottom will be
connected to the ESP32 and LED strands.
|
![](images/elect/spiral_HD_lamp/ESP32Mounted.png)
|
WEMOS D1 Mini ESP32 with support
plate screwed into the housing. The USB cutout shown
on the right of the housing allows a USB cable to be
plugged in for programming. This USB cable access hole
faces the back of the lamp so it is never seen. A USB
cable connection is only needed for programming and is
never needed during normal operation of the lamp.
|
![](images/elect/spiral_HD_lamp/HolesDrilledInLampBase.png)
|
Three holes needed to be drilled
into the base of the lamp. The two outer holes are for
mounting the PIR housing and the center hole is for
wiring to pass between the LED strands in each arm of
the lamp and the ESP32.
|
![](images/elect/spiral_HD_lamp/WiringLampBase.png)
|
Wiring in the base of the lamp.
Wiring on both the left and right sides of the base go
to the LED strands in each arm of the lamp. Arm wiring
consists of +5V, Ground and a DIn signal. Wiring in
the center of the base goes to the ESP32, the PIR
sensor and the mode push button switch. The wiring
from the bottom is from the 5V 10 amp (probably
overkill) power supply.
|
![](images/elect/spiral_HD_lamp/PIRMountedToLampBase.png)
|
Here is the completely assembled
PIR sensor housing mounted between the two arms of the
lamp. You can see why the PIR sensor needed to be
angled upward.
|
![](images/elect/spiral_HD_lamp/FinishedLamp.png)
|
Here is a picture of the finished
lamp in operation. Each of the seven built in patterns
are beautiful to watch. When the lamp is triggered
(with the current software) the displayed pattern will
last for 90 seconds before turning off and putting the
ESP32 to sleep. In time activation mode, the lamp will
wake itself and display a random pattern every four
minutes.
|