# Custom Waveform Generators # The Dave Lawton 9XA
**Source:** http://quanthomme.free.fr/qhsuite/2011News/imagenews11/MeyerReplicatAnglais29pages.pdf
The Dave Lawton 9XA is a versatile pulse and gate generator with variable duty cycle on both 555 timers. One design note that exists here, is that Pin 3 Output of timer 1 is used to provide Vcc power to Pin 4 on Timer 2. This means an inherent latency is always introduced by the 1st RC charge cycle to power up the 2nd timer. This would cause a partial leading pulse. Other than that issue, it's a pretty solid circuit. Using a BUZ350 mosfet to pull down the B+ 12V through the cell and negative choke. [](https://stanslegacy.com/uploads/images/gallery/2022-06/bw1OAIlNVfX9T80o-screenshot-from-2022-06-19-22-14-04.png) # 50% Duty Cycle Double Frequency GeneratorPDF Download: [http://irondmax.com/pdf/ProjectIcarus.pdf](http://irondmax.com/pdf/ProjectIcarus.pdf)
[](https://stanslegacy.com/uploads/images/gallery/2022-06/CCuEyqZOcY7mVEX4-image-1655744337138.png)50% Duty Cycle Generator |
 |
50% Duty Cycle Divide X 10 |
 |
Gated Frequency |
 |
Signal Inverter |
 |
5 Volt Regulator |
 |
Clock Pulse Generator |
 |
This method allows pulse duty cycle control, and synchronized gate to pulse train.
# 9XA Method The 9XA was a circuit that Stan used to produce a gated pulse frequency via two H11D1 optocouplers. The optocouplers were driven by two independent stages of 555 timer clock frequency into 3 7490 decade counter ICs. The 7490s provided divisions of 555 frequency, but also produced 50% duty cycle pulses. Below, "A" is one 555/7490 stage and "B" is second 555/7490 stage. The two optocouplers produce an equivalent to AND logic gate.Figure 1: 9XA schematic
[](https://stanslegacy.com/uploads/images/gallery/2022-12/FcuEr5MVTQp7seyy-image-1670283666351.png) Below is an 9xa scope shot, showing how two independent 9XB style frequency generator's outputs were used to trigger two H11D1 optocouplers to produce a gated pulse train as shown in schematic. In this setup, I had 555's produce a 100khz output to 4 CD4017 dividers. This allowed a 10khz with 50/50 duty cycle to be achieved. LED is just for visual confirmation. If looking closely, you can see how the gating generator isn't synchronized with frequency generator. This causes extra pulses to arise during gated ON times, also called "clock drift".NOTE: CD4017s were used in place of 7490s, they accomplish the same task with less wiring required.
[](https://stanslegacy.com/uploads/images/gallery/2022-12/ZZKGeXyHcpZaAHF3-image-1670282929130.png) Video Link: [9XA Circuit Waveform](https://stanslegacy.com/attachments/89) 2nd setup had a modification where both signals from 555/CD4017 were fed into an 7408 AND logic gate. This produced the waveform seen below. In this instance, only 1 H11D1 optocoupler was required. [](https://stanslegacy.com/uploads/images/gallery/2022-12/Pm5RMBqVwKIaqWTC-image-1670284560959.png) LED providing visual verification of pulse waveform. [](https://stanslegacy.com/uploads/images/gallery/2022-12/x6xodwdbT6KE5u31-image-1670283109110.png) Video Link: [9XA, 7408 mod](https://stanslegacy.com/attachments/88)9XA does provide a 50% duty cycle pulse frequency with a 50% duty cycle gate frequency. However, clock drifting is an issue if both waveform generators are used independently. If both decade counter stages are driven from same 555, a synchronized clock can be achieved. It is unclear if Stan synchronized with one 555.
# 2 Arduino - Dual Channel - Triple AND Gate (Perfect Pulse Driver) By: Chris Bake **Arduino Code**: [https://bitbucket.org/cbake6807/dualtripleseq/src/master/](https://bitbucket.org/cbake6807/dualtripleseq/src/master/) #### Parts List 1. **External Signal Generator**: 0-5Vppk output. 2. **Power Supply**: ATX is ideal, providing +5V REG and +12V REG. 3. **2N7000 Signal MOSFETs**: Quantity 6. 4. **IRFP460 or Similar Power N-channel MOSFET**: Quantity 2. 5. **56Ω 1/8W Resistors**: Quantity 10. 6. **100Ω 1/2W Resistors**: Quantity 2. 7. **4.7kΩ Resistors**: Quantity 2. 8. **2N3906 PNP General Purpose Transistor**: Quantity 2 (can be substituted with any general PNP transistor). 9. **IR2110PB Gate Driver Chip 14-pin**: Quantity 2. 10. **Arduino Nano (or similar)**: Quantity 2 (must support hardware PCNT). 11. **Rotary Encoder**: Quantity 1. #### Software Requirements - **Arduino IDE**: Ensure it is installed and updated to the latest version. - **Encoder Library**: Install via the Arduino Library Manager. ### ### Arduino Setup #### Pulse Counter Arduino 1. **Upload Script** - Open the Arduino IDE. - Connect the first Arduino (PulseCounter) to your PC. - Open `PulseCounter.ino` from the provided file. - Upload the script to the Arduino. 2. **Connect the Encoder** - Connect the encoder's VCC to the Arduino's 5V pin. - Connect the encoder's GND to the Arduino's GND pin. - Connect the encoder's CLK and DT pins to two digital pins on the Arduino D2 and D3. - Connect the encoder's Button pin to D5. 3. **Verify Encoder Output** - Open the Serial Monitor in the Arduino IDE. - Rotate the encoder and check the output to confirm it is functioning correctly. #### Adding a Pushbutton for Sync Mode Toggle To add a pushbutton to the Sequencer Arduino for toggling the sync mode, follow these instructions: ##### Parts Required - **Pushbutton**: Quantity 1 - **10kΩ Resistor**: Quantity 1 - **Connecting Wires** ##### Hardware Connections 1. **Connect the Pushbutton** - Connect one terminal of the pushbutton to the Arduino's 5V pin. - Connect the other terminal of the pushbutton to digital pin 4 on the Arduino. 2. **Add a Pull-Down Resistor** - Connect a 10kΩ resistor between digital pin 4 and GND. This ensures that the pin reads LOW when the button is not pressed. Summary of Connections - **Pushbutton Terminal 1** → Arduino 5V - **Pushbutton Terminal 2** → Arduino Pin 4 - **10kΩ Resistor** → Arduino Pin 4 and GND #### Sequencer Arduino 1. **Upload Script** - Disconnect the PulseCounter Arduino and connect the second Arduino (Sequencer) to your PC. - Open `Sequencer.ino` from the provided file. - Upload the script to the Arduino. ### Pin Mapping and Connections #### Connecting the Two Arduinos - **PulseCounter Arduino to Sequencer Arduino** - PulseCounter D5 (Input) ← Signal Generator - PulseCounter D9 (Output) → Sequencer D2 (Input) - **Sequencer Arduino Outputs** - Sequencer D9 (Output) → Input to the first AND gate tree - Sequencer D10 (Output) → Input to the second AND gate tree Note: The schematic shows the outputs merged due to limitations, but there should be dual outputs from the sequencer, each connecting to a separate AND gate tree. - **Shared Connections** - Both Arduinos' GND pins should be connected together to ensure a common ground. ### Gate Driver Chip Connections #### IR2110PB Gate Driver Chip 1. **Power Connections** - VCC (Pin 3) → +12V REG - VSS (Pin 12) → GND 2. **Input Connections** - LIN (Pin 11) → Arduino PWM pin (as per script) - HIN (Pin 10) → Arduino PWM pin (as per script) 3. **Output Connections** - LO (Pin 1) → Gate of the IRFP460 MOSFET - HO (Pin 7) → Gate of the second IRFP460 MOSFET - VS (Pin 6) → Source of the high-side MOSFET 4. **Bootstrap Capacitor** - Connect a 0.1µF capacitor between VB (Pin 8) and VS (Pin 6). 5. **Other Components** - D2: Place a 1N4001 diode between VB (anode) and VCC (cathode). - R2: Connect a 10Ω resistor between LO and the gate of the MOSFET. ### Schematic Overview Refer to the schematic image to visualize these connections. The IR2110PB gate driver chips control the IRFP460 MOSFETs, enabling high-power switching of the VIC (Voltage Intensifier Circuit) primaries. ### Additional Notes - **Resistor Tolerances**: The resistors can have a large tolerance. The 56Ω value is selected to preserve signal clarity. Any value ≤220Ω should be acceptable. - **Merged Outputs**: The Arduino Channel Sequencer has 2 outputs shown merged due to Scheme-It limitations. [](https://stanslegacy.com/uploads/images/gallery/2024-06/3tIVYmfAyboOM3bo-image-1719630807457.png)