โšก Constellations - Electronics Build Guide

Difficulty Level: Moderate (requires Arduino/electronics experience)

Build Time: 6-8 hours (wiring + programming + testing)

Cost: $160-$200 for all electronics

1. Components & Materials

Required Electronics

Component Quantity Specifications Est. Cost Source
Arduino Mega 2560 1 54 digital pins, 16 analog inputs $35-45 Amazon, Adafruit
WS2812B LED Strip 3-4 meters 60 LEDs/meter, addressable RGB, 5V $30-50 Amazon, AliExpress
Arcade Buttons (Illuminated) 8 30mm push buttons with LED indicators $25-35 Amazon, Adafruit
5V Power Supply 1 5V 10A (50W minimum), barrel jack output $20-30 Amazon
3-Position Rotary Switch 1 For difficulty selector (Easy/Med/Hard) $5-8 Amazon, Mouser
Push Buttons (non-illuminated) 3 For New Puzzle, Check, Reset $5-10 Amazon
Resistors 1 pack 220ฮฉ and 10kฮฉ assortment $8 Amazon
22 AWG Wire 50 feet Various colors (red, black, green, etc.) $15 Amazon
Breadboard/Protoboard 1 For organizing connections $10 Amazon
Connectors & Headers Assorted JST connectors, screw terminals $10-15 Amazon
Project Enclosure 1 For Arduino and wiring (optional) $15-20 Amazon

Total Estimated Cost: $178-236

Why Arduino Mega? The Mega has 54 digital I/O pins, which is essential for handling 8 button inputs + 3 control buttons + rotary switch + LED strip control. The standard Arduino Uno only has 14 digital pins, which isn't enough.

2. Wiring Diagram

Arduino Mega Pin Connections

๐Ÿ”ด Power Connections

  • 5V Power Supply (+) โ†’ LED Strip (+5V)
  • 5V Power Supply (+) โ†’ Arduino VIN
  • 5V Power Supply (GND) โ†’ Common Ground
  • Arduino GND โ†’ Common Ground
  • LED Strip GND โ†’ Common Ground

๐Ÿ’ก LED Strip

  • Data In (DIN) โ†’ Arduino Pin 6
  • +5V โ†’ Power Supply (+5V)
  • GND โ†’ Common Ground

๐ŸŽฎ Toggle Buttons (1-8)

  • Button 1 โ†’ Pin 22
  • Button 2 โ†’ Pin 24
  • Button 3 โ†’ Pin 26
  • Button 4 โ†’ Pin 28
  • Button 5 โ†’ Pin 30
  • Button 6 โ†’ Pin 32
  • Button 7 โ†’ Pin 34
  • Button 8 โ†’ Pin 36
  • All buttons use internal pullup resistors

๐Ÿ•น๏ธ Control Buttons

  • New Puzzle โ†’ Pin 38
  • Check Answer โ†’ Pin 40
  • Reset โ†’ Pin 42
  • All use internal pullup resistors

โš™๏ธ Difficulty Selector

  • Common โ†’ GND
  • Easy โ†’ Pin 44
  • Medium โ†’ Pin 46
  • Hard โ†’ Pin 48

๐Ÿ’ก Button LED Indicators

  • Button 1 LED โ†’ Pin 23
  • Button 2 LED โ†’ Pin 25
  • Button 3 LED โ†’ Pin 27
  • Button 4 LED โ†’ Pin 29
  • Button 5 LED โ†’ Pin 31
  • Button 6 LED โ†’ Pin 33
  • Button 7 LED โ†’ Pin 35
  • Button 8 LED โ†’ Pin 37
  • Add 220ฮฉ resistor inline with each LED
                    5V 10A Power Supply
                     +5V          GND
                      |            |
         +------------+------------+------------+
         |            |            |            |
         |         Arduino       LED Strip    Common
         |          VIN          +5V/GND      Ground
         |            |                         |
         |         Arduino                      |
         |          GND -------------------------+
         |                                      |
    LED Strip                              All Button
    Data โ†’ Pin 6                           GND connections


Button Connections (with internal pullup):

    Toggle Buttons:      Control Buttons:      Difficulty Switch:
    Button 1 โ†’ Pin 22    New โ†’ Pin 38          Easy โ†’ Pin 44
    Button 2 โ†’ Pin 24    Check โ†’ Pin 40        Med โ†’ Pin 46
    Button 3 โ†’ Pin 26    Reset โ†’ Pin 42        Hard โ†’ Pin 48
    Button 4 โ†’ Pin 28
    Button 5 โ†’ Pin 30    Each button connects between
    Button 6 โ†’ Pin 32    pin and GND (pulled HIGH when
    Button 7 โ†’ Pin 34    not pressed, LOW when pressed)
    Button 8 โ†’ Pin 36

Button LED Indicators (220ฮฉ resistors required):

    Button 1 LED โ†’ 220ฮฉ โ†’ Pin 23 โ†’ GND
    Button 2 LED โ†’ 220ฮฉ โ†’ Pin 25 โ†’ GND
    Button 3 LED โ†’ 220ฮฉ โ†’ Pin 27 โ†’ GND
    ... (continue for all 8 buttons)
โš ๏ธ IMPORTANT POWER NOTES:

3. Assembly Steps

Step 1: Prepare the Panel

  1. Cut/route constellation outlines into 4'ร—6' panel
  2. Drill button mounting holes (30mm) at bottom of panel
  3. Route shallow channels for LED strips along constellation branches
  4. Paint panel matte black for best contrast

Step 2: Install LED Strips

  1. Measure and cut WS2812B strip into segments for each constellation branch
  2. Secure strips in routed channels with adhesive backing
  3. Solder data connections between segments (DIN โ†’ DOUT chain)
  4. Test each segment with Arduino before permanent mounting
  5. Use hot glue or silicone to secure solder joints
LED Strip Tip: Number each constellation and segment as you wire them. This makes programming much easier! Example: Constellation A, Segment 1 = LED indices 0-5, Segment 2 = 6-11, etc.

Step 3: Wire Buttons

  1. Mount 8 illuminated arcade buttons in drilled holes
  2. Run wires from each button to Arduino (see pin diagram)
  3. Wire button LEDs through 220ฮฉ resistors to Arduino output pins
  4. Mount control buttons (New/Check/Reset) on separate control panel or side of main panel
  5. Label each button clearly

Step 4: Power Supply Setup

  1. Mount 5V power supply in enclosure or behind panel
  2. Connect +5V to LED strip positive
  3. Connect +5V to Arduino VIN
  4. Connect GND to common ground bus
  5. Add 1000ยตF capacitor across LED power terminals
  6. Test voltage with multimeter before powering Arduino

Step 5: Arduino Installation

  1. Mount Arduino Mega in project enclosure
  2. Connect all button inputs to assigned pins
  3. Connect LED strip data pin to Pin 6
  4. Connect power (VIN + GND)
  5. Secure all wiring with zip ties and cable management
๐Ÿ”ง Testing Protocol: Test each component individually before final assembly!
  1. Test buttons with Arduino (digitalRead test sketch)
  2. Test LED strips (FastLED test sketch with all LEDs white)
  3. Test button indicators (digitalWrite test)
  4. Only after all components work individually, upload full game code

4. Arduino Software Setup

Required Libraries

// Install these libraries via Arduino Library Manager:

FastLED         // For controlling WS2812B LED strips
Bounce2         // For button debouncing (optional but recommended)

Library Installation

  1. Open Arduino IDE
  2. Go to Sketch โ†’ Include Library โ†’ Manage Libraries
  3. Search for "FastLED" and click Install
  4. Search for "Bounce2" and click Install
  5. Restart Arduino IDE
โœ… Arduino Sketch Ready: The complete Arduino code is provided in the file constellation_led_wall.ino in this directory. Upload it to your Arduino Mega after wiring is complete.

5. Testing & Calibration

Initial Power-On Test

  1. Power on system with USB connected to computer (Serial Monitor open)
  2. Verify Arduino boots successfully (check Serial output)
  3. Check that all 200 LEDs light up in startup sequence
  4. Press each toggle button - verify LED indicator lights up
  5. Test control buttons (New/Check/Reset) via Serial Monitor output

LED Mapping Verification

  1. Use test mode in Arduino sketch (uncomment TEST_MODE define)
  2. Verify each button lights up correct constellation segments
  3. Adjust LED index mappings in code if segments don't match expected
  4. Document actual LED index ranges for each constellation segment

Puzzle Testing

  1. Test Easy mode - verify 2-3 targets can be solved
  2. Test Medium mode - verify increased difficulty
  3. Test Hard mode - verify complex overlapping patterns
  4. Test Check Answer feedback - success/partial/fail indicators
  5. Test Reset and New Puzzle buttons

6. Troubleshooting Common Issues

LEDs Not Lighting

Buttons Not Responding

Wrong Segments Lighting Up

Arduino Crashes/Resets

7. Final Assembly Notes

Best Practices:
Estimated Build Time Breakdown: