Uploaded August 2024 | Updated December 2026, 1 day ago
PDM-CW C CODE, takes a CW KEYBOARD's input, and converts it into adjustable by user, short pulses output, that "keys" the PDM-CW transmitter's SCR, dumping the stored couloumbs of electrons in a 1 - 2 uF CAP that contains @ 1 to 2 joules of energy per pulse into a self - resonant at 18Khz coil creating a SPIKE of VLF signal power with exponential decay - for testing with a Through The Earth VLF cave radio transmitter/receiver setup using sound card SDRs
c code pdm-cw app written by chatGPT
https://u.pcloud.link/publink/show?code=XZooET0Z31QA1fFwCN0KLfY7JlEzQkKqYhc7
SETUP for transmitter
cw keyboard keys PDM-CW c code app
output of app keys a REAPER SIDECHAIN GATE that sends 61khz sine wave blocks to a CLASS D audio amp, output of audio amp goes to a ferrite toroid step UP transformer, output of transformer goes to a diode(+) with ground lead to a REED RELAY, REED RELAY is holding back 5 volts through a 10 ohm resistor, when relay is activated by rectified 61kHZ sine wave blocks from PDM-CW app, it keys' the SCR which opens up the path to allow the CAPACITOR banK to discharge through the COIL EMITTER ANTENNA
twin lead speaker wire , in parallel, 16 gauge
PDM-CW C CODE, takes a CW KEYBOARD's input, and converts it into adjustable by user, short pulses output, that "keys" the PDM-CW transmitter's SCR, dumping the stored couloumbs of electrons in a 1 - 2 uF CAP that contains @ 1 to 2 joules of energy per pulse into a self - resonant at 18Khz coil creating a SPIKE of VLF signal power with exponential decay - for testing with a Through The Earth VLF cave radio transmitter/receiver setup using sound card SDRs
c code pdm-cw app written by chatGPT
https://u.pcloud.link/publink/show?code=XZooET0Z31QA1fFwCN0KLfY7JlEzQkKqYhc7
SETUP for transmitter
cw keyboard keys PDM-CW c code app
output of app keys a REAPER SIDECHAIN GATE that sends 61khz sine wave blocks to a CLASS D audio amp, output of audio amp goes to a ferrite toroid step UP transformer, output of transformer goes to a diode(+) with ground lead to a REED RELAY, REED RELAY is holding back 5 volts through a 10 ohm resistor, when relay is activated by rectified 61kHZ sine wave blocks from PDM-CW app, it keys' the SCR which opens up the path to allow the CAPACITOR banK to discharge through the COIL EMITTER ANTENNA
twin lead speaker wire , in parallel, 16 gauge



![Raspberry Pi 4 Pulse Density Modulated CW Transmitter for THROUGH THE EARTH Cave Radio Comms at 8Khz
using this PDM-CW TRANSMITTER PYTHON PROGRAM:
https://u.pcloud.link/publink/show?code=XZsdt45ZB74hUtmVwMYakpGj6aapdSP0xgry
GROK3 wrote this PDM-CW TRANSMITTER user manual PDF
https://u.pcloud.link/publink/show?code=XZhb645Z2DL9sqlUnPFPoa3bOPhscVvBTIIX
a morse code keyboard is brought up to the raspberry pi 4 desktop that when text is entered, according to the speed of wpm set by the user, two well timed signals are sent to control a Capacitive Discharge Circuits POWER supply and SCR/HV Pulse Capacitor which creates a TRANSMIT Pulse Density Modulated CW signal... the setup is as follows, for each dit the program sends one 50 μS pulse width output to Trigger the PDM-CWs SCRs GATE, releasing the stored PULSE CAP energy into the TRANSMIT COIL ANTENNA, creating a self resonant DAMPED SINE WAVE VLF signal output at around 8Khz... to preserve portable battery power, PULSE DENSITY MODULATION is used so that only 1 pulse at zero point is used for a dit, and for a DAH, only 3 pulses, spaced 1 dit length apart, at ZERO, 1D, and 2D, at whatever speed is set by the user, however, each DAH and dit timing is still preserved by the python TRANSMIT CW KEYBOARDs internal timing math so that when just one dit length of time is added to every pulse at the receiver, and used to key a midi cw software keyer, the original CW ELEMENT LENGTHS are reproduced at the receive site the first thing that happens when text is entered into the cw keyboard, is that the python program turns on GPIO pin 19 for a certain amount of time according to the current WPM speed, this time charges the HV PULSE CAP of the PDM-CW transmitter(low DC TO high DC inverter) then 1 ms before the DIT or DAH pulse is keyed by the SCR signal on GPIO PIN 18, pin 19 turns off , turning off the power to the PDM-CW transmitter so that the SCR will STOP right after it fires and the damped sine wave 8khz output drops to zero(this pin 19 cycle helps to commutate the SCR in the case of using a too low of inductance EMF kick back from the coil antenna that does not contain enough ooomph to commutate the SCR itself etc) each pulse gets the same amount of charging time so that the joules collected in the pulse capacitor are the same for each pulse according to the WPM speed being used and the length of one dit minus 1 ms.... so at slower speeds, there is more charging time for each pulse and thus more VLF magnetic EMF signal at 8khz is released per pulse
NOTE: both GPIO pins activate LEDs inside SOLID STATE RELAYs one SSR can handle 6 amps and has a TURN OFF time of .1 to 1 ms, and a TURN ON time of 2 to 4 ms the other SSR is used by pin 18 with a much faster turn on time of around 30 to 50 μS so that the SCR GATE is only triggered by the least amount of pulse width possible from pin 18
NOTE: this python GPIO pdm-cw transmitter code was written by GROK3
you can attach the linked above python code in a file and feed it to GROK3 to ask more questions about this setup and how the code works on a pi4/s GPIO pins
RECEIVER SETUP
a pick up magnetic field VLF ANTENNA is connected to the LAPTOPs mic input jack... ( NOTE, you can strengthen the RX signal substantially at the receiver if you put a cap in parallel with the antenna to resonate at the TRANSMIT VLF FREQ [8Khz] ) for each pulse received, a sidechain gate adds 1 dits worth of time to each pulse and creates a CW MIDI note output restoring the original dit length that the TRANSMITTER is using... for a dah, then, since the dah sent by the transmitter is using 3 pulses sent at ZERO, 1D, AND 2D each pulse gets 1 dit worth of time added to it by the sidechain settings and at the end of 3 dits at 1d time each, = 1 dah etc..
goes to the MIDI sidechains midi output port and keys the midi input of RECRI KEYERs CW KEYER module https://github.com/recri/keyer Raspberry Pi 4 Pulse Density Modulated CW Transmitter for THROUGH THE EARTH Cave Radio Comms at 8Khz](https://i.ytimg.com/vi/hW8iGwB9C8g/mqdefault.jpg)






