Time light and shadow: intelligent China-Chic night light with one color every hour design project

1
2
3
4

Drawing Description

Automatically changing color every hourRGBComplete analysis of the production ideas for weather clock and night light(AIFind and modify images

The core design intention of this wall clock night light is to break away from the single function of ordinary clocks that only display time, and to meet the requirements of laser technology, acrylic light guidance visualization, and automatic switching every hourRGBBy combining the creativity of lighting effects, a desktop home work can be created that not only reflects time, but also automatically changes atmosphere over time. The entire production process does not stack complex functions, but revolves around the core logic of "simplicity, intuitiveness, and atmosphere". From structural design to electronic selection, every step takes into account the feasibility of hands-on implementation and the visual texture of the final product.

1、 Overall design framework: Integrating time and lighting (if necessary, you can also combine them with my previous weather indicator lights)

At the beginning of the project, two core functional dimensions were identified, so that they were not simply stacked, but interconnected:

Time dimension: not only displaying hours, minutes, and seconds, but also making the "hourly" time node a trigger point for light changes, so that each hour has its own exclusive color memory;

Night light dimension: During the day, it is a clear and readable wall clock. At night, it automatically switches to a low brightness soft night light, which is not dazzling and can also check the time on the phone without looking for it in the dark when getting up at night.

The linkage logic between the two is also very clear: the main control board obtains real-time time through the network, which drives the clock pointer or numerical display on the one hand, and on the other hand, overlays the "automatic switching at the hour" functionRGBThe rule of "theme color" allows the light to naturally change in the flow of time, achieving the effect of "wherever time goes, the atmosphere of light follows".

2、 Structure and Optical Path Design: Achieving Uniform Light Guidance through Laser Technology

This part directly follows the familiar laser cutting processing concept, without the need for complex molds, and can produce exquisite optical effects by hand:

Main framework: Selection5mmThick acrylic sheet, cut and carved using a laser cutting machine, with the outer layer treated with semi transparent frosted finish and the inner layer carved with fine light guiding dots, so that the light does not form bright spots locally, but evenly covers the entire clock face;

Optical path scheme: adopting a side light guide designWS2812BprogrammableRGBThe light strip is attached to the inner edge of the acrylic light guide plate, and the light enters from the side, uniformly covering the entire clock face through the diffuse reflection of the dots. Compared to front facing spotlights for supplementary lighting, this method completely eliminates the need to see exposed light sources. The hanging clock looks like a naturally glowing warm panel, which does not compromise its overall simplicity;

Appearance details: The time scale on the clock face is all laser engraved on the acrylic inner layer, with clear and sharp lines when viewed from the front, and will not wear or fade even after long-term use. The edge of the shell is laser cut and polished, making it smooth and rounded to the touch, without any roughness of handmade products.

3、 Electronic system selection: balancing playability and stability

Based on your familiar hardware ecosystem, the entire solution has selected components with high maturity and rich information, which are suitable for bothDIYDebugging can also ensure long-term stable operation:

Main control core: selectionESP32-C3Development board, it comes with its ownWiFiWith low power consumption characteristics, compact size and affordable price, it can achieve bothNTPNetwork automatic timing and real-time weather data can also be obtained online, fully meeting the computing power requirements of this project;

Display and lighting section: If you want a vintage pointer texture, you can keep the traditional quartz movement and only add it around the clock faceRGBLight strips are used as ambient backlighting; If you want more technological digital effects, you can pair them with8×32The dot matrix screen displays time while driving simultaneouslyWS2812BThe light strip achieves full-color light effect, and both solutions can pass throughArduinoQuickly complete development and debugging in the environment;

Auxiliary function expansion: Add a photosensitive sensor to achieve intelligent adjustment of automatically increasing brightness during the day and automatically decreasing brightness at night, avoiding the problem of unclear visibility during the day and excessive glare at night; Reserve two physical buttons for users to manually switch lighting modes and adjust color preferences, without having to connect to the computer every time to change the code.

4、 Core logic implementation: hourly color change+Weather visualization (optional)

The implementation logic of these two creative functions is not complicated, but it can greatly enhance the overall experience of the work:

per hourRGBAutomatic color change: pre-set in the program24Group different theme colors, corresponding to a day24An hour, automatically smoothly transitioning to the next color at the hour. For example, in the morning7The point is warm morning light yellow, afternoon14The point is refreshing blue sky, late night23The dot is a low saturation sleep aid dark purple, allowing the color to naturally match the rhythm of the day's routine;

Weather visualization mapping: Corresponding the obtained weather data to different lighting effects - on sunny days, the lighting slowly breathes and gradually changes, presenting a light blue white tone of blue sky and white clouds; When it rains, the light strip simulates the dynamic effect of rainwater flow, and the cool blue light spot circulates along the clock face; When thunder strikes, the lights flash rapidly and briefly, simulating the instantaneous feeling of lightning with light and shadow. Without reading text, you can easily know the weather outside with just a glance at the lights.

5、 Debugging and optimization ideas: from being usable to being user-friendly

The final step of debugging is the key to transforming the work from "able to light up" to "truly suitable for use at home":

Light Efficiency Optimization: ThroughPWMDimming controls the speed at which the brightness of the light changes, with all color switching done1to2Smooth transition in seconds, avoiding the abrupt feeling caused by sudden color jumps; Use a diffuser to create dotsLEDThe light source is further softened, ultimately presenting a uniform and non glaring halo effect;

Structural interference prevention: Due to the use of dual head asynchronous laser cutting equipment, when processing multi-layer acrylic structures, it is necessary to take measures in advanceLightBurnAdjust the spacing between the two layers of boards in the software to avoid interference between the light strip and clock face structure. At the same time, reserve sufficient heat dissipation space for the main control board and power supply to ensure that long-term lighting will not cause overheating problems;

Detail polishing: Reserve hidden cable trays at the edge of the clock face, with all wires hidden in the acrylic interlayer, and no exposed wires visible from the front; Common power supply choices5V USBThe interface can be directly plugged into a regular mobile phone charger to work, without the need for additional modifications to the home circuit. Installation and maintenance are very convenient.

The greatest joy of the entire project is to integrate laser processing, embedded development, and light and shadow design, which are familiar to you, to create a practical work that not only has technical content but also truly integrates into daily home decor. It is no longer a cold and indifferent oneDIYA device is a small living object that can breathe along with time and quietly change the atmosphere of a room. (AIGenerate)

drawing documents

Time, Light, and Shadow
Drawing Cover - Time, Light, and Shadow
Basic Parameters
Carbon dioxide glass tube
150W
1:17:49
process parameters
Processing Technology processed material pattern power(%) speed(mm/s) processing times
cutting plank Horizontal unidirectional 100 35 1
Draw lines plank Horizontal unidirectional 20 150 1

Cut out the required items according to the blueprint

rabbit The edge decoration can be changed according to one's preferences, and the hole spacing reference dial can be changed freely

1 Hardware wiring diagram (Ultimate Simplification)

WS2812B(Built in) IC The built-in iridescence/The hardware circuit of the entire project will become extremely simple, including smart light beads.

You don't need to use any current limiting resistors or complex matrix scanning mechanisms anymore.12 A light bead is all that is needed**One signal line(Data)**By connecting them in series, you can independently control the color, brightness, and dynamic effects of each LED bead!

The following is for WS2812 A completely new design proposal:

Due to WS2812B only need 3 Root line(5V、GNDYou can use the data cable to 12 The lamp beads are connected like "Tomatoes on sticks":

·         The previous light's DOUT(Data output) connect to The next light's DIN(Data input).

🔑 Final Pin Allocation Table (target, aim at, address, focus on, in response to Arduino Nano):

·         DS3231 RTC modular:SDA ➔ A4,SCL ➔ A5

·         Time adjustment button: hour button ➔ A0, minute key ➔ A1

·         WS2812 LED strip/Lamp Ring: The First Lamp DIN ➔ Arduino D6

·         Public power supply: for all modules VCC ➔ Arduino 5VAll modules' GND ➔ Arduino GND


💻 II WS2812 Driver code (using) FastLED Library)

use WS2812 Usually, assistance is needed FastLED Library is used to implement low-level data transmission, color conversion, and efficient color smoothing. You need to Arduino IDE Search and install in the library manager FastLED and RTClib.

This code not only implements hour by hour rotation and slow fade in recovery after the hour, but also utilizes WS2812 Unique color mechanism: The past hour displays quiet blue, the current hour displays cool green (with smooth breathing effect), and the hourly rotation time uses dynamic red.

 

 WS2812 Design extension under the scheme

Because of the use of smart light beads, not only has the wiring been reduced from multiple wires to 3 Root, you can also directly place it at the top of the code colorNormal、colorBreath、colorRotate By modifying variables CRGB(R, G, B) Numerical values, blending millions of colors (such as elegant champagne gold, dreamy light pink, or classic warm white).

To ensure the smooth structure and purchase of your dial, please confirm:

·         Are you planning to purchase ready-made items 12Lamp ring WS2812 Lamp ring plate, still useWS2812B Cut and connect the soft light strip into a circle by itself?

·         Does the current color scheme (blue, green, red) meet your aesthetic preferences? Do you need to configure more advanced rainbow gradients or yellow and white retro warm light color codes for you?


🛠️ Wiring and welding routing(Routing)Suggestion

1.    DIN Signal line routing:
from Arduino D6 After the cable is pulled out, the resistance R1 Must be as close as possible to the first one WS2812B Lamp beads DIN Pin soldering. Do not run the signal line parallel to the strong power supply line for a long distance, to avoid high-frequency interference that may cause the light beads to flicker and garbled code.

2.    Power line topology:
Don't 5V Connect the power supply first Arduino Further loaded onto the board 5V Pin lead out to 12 piece RGB Power supply. The correct approach is to incorporate external factors 5V Make the wire into a three part "star topology" and distribute it to Arduino of 5V PinRTC of VCC, and WS2812B of 5V Solder pads. This ensures that high currents do not pass through the microcontroller motherboard, making it extremely safe and stable to operate.

3.    Button line noise prevention:
Because it has already been enabled in the code Arduino internal INPUT_PULLUP(Built in pull-up resistor), button leads can be as long as 20-30cm Lead to the edge of the clock casing without causing accidental touch.

 


comment (0)
Most pictures available 10 Zhang · Attachment support dxf/plt/lcp/lcpxAt most 3 a
将图片拖拽到这里或点击“选择图片”上传(支持多张)
Time light and shadow: intelligent China-Chic night light with one color every hour
drawing ID: SUCAI-1667 2026-11-3 10:09
0
0
0
2
5Contribution points
Purchase points
collection
like
Grade discount
Basic Information
label
Update time 2026-11-3 10:09