Skip to content
TheChatArchiveThe Chat Archive
o1-preview-2024-09-12· OpenAIAi2 WildChat-4.8M (AI2)

I thought about creating a "nixie tube like" clock with El wires. I have 10 of them so I…

  1. User

    I thought about creating a "nixie tube like" clock with El wires. I have 10 of them so I can recreate every digit. Can you create a circuit to control them?

  2. Assistant

    Yes, I can help you design a circuit to control your 10 EL wires and create a "nixie tube-like" clock display. Controlling EL (Electroluminescent) wires requires careful consideration due to the high-voltage AC they operate on. Below, I'll guide you through a safe and effective method to control each EL wire individually using opto-isolated TRIAC circuits.


    Overview

    Objective: Control 10 EL wires individually to display digits on a clock.

    Challenges:

    • EL wires require high-voltage AC (typically 80-120V AC at 400-2000 Hz).
    • Switching high-voltage AC safely requires appropriate components.
    • Isolation between high-voltage and low-voltage control circuits is essential for safety.

    Solution:

    • Use a single EL wire inverter to generate the required high-voltage AC.
    • Employ opto-isolated TRIAC circuits to switch each EL wire individually.
    • Control the TRIACs with a microcontroller or logic-level signals.

    Components Needed

    For Each EL Wire Channel (Total of 10 Channels):

    1. TRIAC (e.g., MAC97A6 or Z0107MA)

      • Rated for at least 400V and sufficient current handling for EL wires.
    2. Opto-isolator TRIAC Driver (e.g., MOC3021)

      • Provides isolation between the low-voltage control side and high-voltage AC side.
    3. Resistors:

      • Gate Resistor (R1): Typically 220 Ω to 1 kΩ.
      • LED Current-Limiting Resistor (R2): Typically 220 Ω to 1 kΩ.
    4. Microcontroller or Control Logic:

      • Provides control signals to turn EL wires on or off.

    Other Components:

    • EL Wire Inverter:

      • Capable of supplying sufficient current to drive all EL wires simultaneously.
    • Safety Enclosure & Insulation Materials:

      • For safely enclosing high-voltage components.

    Circuit Description

    1. High-Voltage AC Source

    • EL Wire Inverter:
      • Converts low-voltage DC to high-voltage AC required by EL wires.
      • Outputs ~80-120V AC at 400-2000 Hz.

    2. TRIAC Switching Circuit Per Channel

    • TRIAC (Main Switch):

      • Controls the flow of high-voltage AC to the EL wire.
    • Opto-isolator TRIAC Driver:

      • Provides isolation and controls the gate of the main TRIAC.
      • The internal LED is driven by the microcontroller.
    • Resistors:

      • Gate Resistor (R1):
        • Limits current to the TRIAC gate.
      • LED Current-Limiting Resistor (R2):
        • Sets appropriate current for the opto-isolator's LED.

    3. Low-Voltage Control Side

    • Microcontroller:
      • Outputs control signals to the opto-isolator.
      • Grounded separately from the high-voltage AC ground for safety.

    Circuit Diagram

    Below is the schematic for one channel. Replicate this for each of the 10 EL wire channels.

    [image: EL Wire Control Circuit] open

    Components Reference:

    • U1: Opto-isolator TRIAC driver (MOC3021)
    • TR1: TRIAC (MAC97A6 or Z0107MA)
    • R1: Gate resistor (220 Ω)
    • R2: LED current-limiting resistor (220 Ω)
    • Microcontroller I/O Pin: Connected to R2

    Circuit Operation

    High-Voltage Side:

    1. EL Wire Inverter Output:

      • Supplies high-voltage AC (HVAC+) and return (HVAC-).
    2. TRIAC (TR1):

      • MT1: Connected to HVAC- (return path).
      • MT2: Connected to one end of the EL wire.
      • Gate: Controlled by the opto-isolator output.
    3. EL Wire:

      • Other end connected to HVAC+.

    Control Side (Low Voltage):

    1. Microcontroller Output Pin:

      • Connected to the anode of the opto-isolator's internal LED via R2.
      • Cathode of LED connected to microcontroller ground.
    2. Opto-isolator (U1):

      • LED Side: Receives control signal.
      • Output Side: Controls the gate of TR1.

    Sequence:

    • When the microcontroller output is HIGH:

      • Current flows through R2 and the LED in U1.
      • LED activates the photodiode, triggering the internal TRIAC.
      • The internal TRIAC triggers TR1 by allowing gate current through R1.
      • TR1 turns on, allowing high-voltage AC to flow to the EL wire.
      • The EL wire illuminates.
    • When the microcontroller output is LOW:

      • No current flows through the LED in U1.
      • The internal TRIAC in U1 remains off.
      • No gate current flows to TR1; it remains off.
      • The EL wire is not energized and stays dark.

    Design Considerations

    • Resistor Values:

      • R1 (Gate Resistor): 220 Ω is a common value; adjust based on TRIAC specifications.
      • R2 (LED Resistor): Calculate based on the microcontroller’s voltage and opto-isolator LED forward voltage/current:
        • ( R2 = \frac{V_{CC} - V_F}{I_F} )
        • Where ( V_{CC} ) is microcontroller voltage (e.g., 5V), ( V_F ) is opto-isolator LED forward voltage (e.g., 1.2V), ( I_F ) is forward current (e.g., 10 mA).
    • TRIAC Selection:

      • Ensure voltage rating exceeds inverter output voltage (preferably 400V or higher).
      • Current rating should be sufficient for the EL wire current draw.
    • Opto-isolator Selection:

      • MOC3021 is a non-zero-crossing opto-isolator, suitable for this application.
      • Non-zero-crossing devices allow triggering at any point in the AC cycle.
    • Microcontroller Compatibility:

      • Ensure the microcontroller can source sufficient current for the opto-isolator's LED (typically <15 mA).
    • Isolation:

      • The opto-isolator provides necessary safety by isolating the low-voltage control side from the high-voltage AC side.

    Safety Precautions

    • Isolation:

      • Always maintain isolation between high-voltage and low-voltage circuits.
      • Use opto-isolators and avoid direct electrical connections.
    • Enclosure:

      • Enclose high-voltage components in a non-conductive, sealed enclosure.
      • Prevent accidental contact with high-voltage parts.
    • Wiring:

      • Use appropriately rated wires for high-voltage applications.
      • Secure all connections to prevent short circuits.
    • Grounding:

      • Do not connect the high-voltage AC return (HVAC-) to the microcontroller ground.
      • Keep high-voltage grounds and low-voltage grounds separate.
    • Testing:

      • Before powering the circuit, double-check all connections.
      • Use a multimeter to ensure there are no shorts between high-voltage and low-voltage sides.
    • Personal Protective Equipment (PPE):

      • When assembling or testing the circuit, wear insulating gloves and safety goggles.

    Sample Implementation Steps

    1. Assemble One Channel:

      • Build the circuit for a single EL wire first.
      • Test and verify its functionality before replicating.
    2. Microcontroller Programming:

      • Write a simple program to control the microcontroller output pin.
      • Test turning the EL wire on and off.
    3. Expand to Multiple Channels:

      • Once confirmed, replicate the circuit for additional EL wires.
      • Use different microcontroller pins for each channel.
    4. Display Logic:

      • Implement the logic to display digits by controlling the appropriate EL wires.
      • For a clock, this involves updating the display every minute or second.

    Additional Tips

    • Power Supply:

      • Ensure the power supply for the inverter and microcontroller are adequate and stable.
      • The inverter may require a separate DC power source from the microcontroller.
    • EL Wire Characteristics:

      • EL wires have capacitive characteristics; ensure the inverter can handle the total capacitance of all connected EL wires.
    • Thermal Considerations:

      • TRIACs may generate heat; consider heat dissipation (e.g., heat sinks) if necessary.
    • EMI Concerns:

      • High-frequency switching can cause electromagnetic interference.
      • Keep high-voltage AC lines away from sensitive electronics.
      • Use filtering or shielding if EMI affects other devices.

    Conclusion

    By using opto-isolated TRIAC circuits, you can safely control each of your 10 EL wires to create dynamic and eye-catching digit displays for your clock. This approach ensures safety by isolating the high-voltage and low-voltage sections of the circuit, preventing potential hazards.

    Remember: Safety is paramount when working with high voltages. If you're not experienced with such circuits, consider seeking assistance from a professional or using commercially available EL wire controllers designed for multiple channels.


    I hope this helps you build your EL wire nixie tube-like clock! If you have any questions or need further guidance, feel free to ask.