Introduction: LED Arduino Nixie Clock: Crafting a Futuristic Glow for the New Year!
🎉 New Year’s is just around the corner – why not celebrate with a custom-built Nixie Tube Clock?
I’ll guide you step-by-step through building your own futuristic Arduino Nixie Clock, broken down into 5 easy-to-follow sections:
1️⃣ The Box – Crafting the base to hold everything together
2️⃣ The Electronics – Assembling the brain of the clock
3️⃣ The LED Array – Adding the mesmerizing glow
4️⃣ The Numbers – Bringing the display to life
5️⃣ Uploading the Code – Making it all work seamlessly
Link to the CAD and code files
Supplies
Step 1: Build the Box
Laser Cut the Box:
- Load your CAD files into the laser cutter.
- Set the laser cutter to 100% power at 30mm/s and cut the 3mm wood panels.
Assemble with Hot Glue:
- Apply hot glue along the edges and press the panels together.
Sand Off Black Marks:
- Sand any black marks left from the laser cutting.
Attachments
Step 2: The Electronics
Connect the Buttons:
- Push the buttons into place.
- Solder the common ground (one pin of each button) to the GND pin on the Arduino.
- Connect four separate wires from the other pins of the buttons to pins 2, 3, 4, and 5 on the Arduino.
Connect the DS1302 Time Module:
- 5V to the 5V pin on the Arduino.
- GND to the GND pin on the Arduino.
- IO pin to pin 9 on the Arduino.
- SCLK pin to pin 10 on the Arduino.
- RESET pin to pin 8 on the Arduino.
Connect the WS2812B LED Strip:
- 5V to the 5V pin on the Arduino.
- GND to the GND pin on the Arduino.
- Data pin to pin 6 on the Arduino.
Step 3: LED Strip
Cut the LED Strips:
- Carefully cut the WS2812B LED strip into segments of 10 LEDs each (following the cut lines on the strip).
- Use sharp scissors or a utility knife to make clean cuts.
Arrange the LEDs:
- Arrange the 10-LED segments according to the LED layout diagram. Ensure the orientation of the LEDs matches the diagram for proper wiring.
Solder the Strips Together:
- Use thin wire for connecting the strips, as illustrated by the green wires in your diagram.
- Apply plenty of flux to the connection points before soldering. This helps to avoid cold solder joints and makes the process smoother.
- Solder the data, 5V, and GND lines between the strips as required.
- Ensure you’re soldering the correct leads for each connection and maintain a clean, solid connection.
Step 4: Acrylic Numbers
Cut the Numbers from the 2mm Acrylic Panels:
- Use your laser cutter with the settings:
- Engraving: 8% power at 100mm/s.
- Cutting: 100% power at 30mm/s.
- Adjust these settings if necessary, depending on your laser cutter.
Peel Off the Protective Adhesive:
- Carefully peel off the protective adhesive from the numbers once they’re cut.
Insert the Numbers into the Wooden Slots:
- Gently insert the acrylic numbers into the corresponding wooden slots.
- Be careful not to touch the numbers with your fingers to avoid leaving fingerprints or smudges.
Step 5: Upload the Code!
Plug the Arduino into Your Computer:
- Connect your Arduino to your computer using the USB cable.
2. Open the Arduino IDE:
- Launch the Arduino IDE on your computer.
3. Install the Libraries:
- Adafruit NeoPixel Library (for controlling WS2812B LEDs)
- RtcDS1302 Library (for interfacing with the DS1302 RTC module)
Here’s how to install them:
Install the Adafruit NeoPixel Library:
- In the Arduino IDE, go to the "Sketch" menu and select "Include Library" > "Manage Libraries...".
- In the Library Manager, type "Adafruit NeoPixel" in the search bar.
- Find "Adafruit NeoPixel" by Adafruit in the list.
- Click the "Install" button next to the library name.
- Wait for the installation to finish.
Install the RtcDS1302 Library:
- In the Arduino IDE, go to the "Sketch" menu and select "Include Library" > "Manage Libraries...".
- In the Library Manager, type "RtcDS1302" in the search bar.
- Find "RtcDS1302" by Matthias Hertel in the list.
- Click the "Install" button next to the library name.
- Wait for the installation to finish.
Here’s a summary of the final notes on the clock’s operation:
1. Initial Upload:
- On the first upload, the clock will sync with your computer’s time automatically.
2. Manually Change the Time:
- To manually change the time, press and hold the two outside buttons (buttons 1 and 4).
- The display will turn red, indicating that the clock is in time-changing mode.
- After changing the time, press and hold the two outer buttons again to resume normal operation.
3. Adjusting Brightness:
- The right-most buttons are used to increase or decrease the brightness of the LEDs.
4. Change Colour Modes and Speeds:
- The left buttons are used to change between color modes and adjust the speed of the color changes.
Below is the code, or see attached file.