Skip to content

Instantly share code, notes, and snippets.

@m0xpd
Last active December 11, 2015 18:19
Show Gist options
  • Save m0xpd/4640603 to your computer and use it in GitHub Desktop.
Save m0xpd/4640603 to your computer and use it in GitHub Desktop.
Sending WSPR on the RPi Beacon
if Proceed == 1: # External timing code sets Proceed = 1 for WSPR
# and enters at the start of the transmission interval
sendFrequency(WSPR_freq) # setup the DDS frequency
GPIO.output(11, True) # key the Tx
time.sleep(1) # wait for 1 second : WSPR starts 1 second into the minute
for i in range(0,len(WSPR_Message)): # read each character
sendFrequency(WSPR_freq+WSPR_Message[i]*WSPR_df) # set frequency
time.sleep(0.682) # wait for 682 msec
GPIO.output(11, False) # All Done - so un-key the Tx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment