-
Notifications
You must be signed in to change notification settings - Fork 3
/
settings.h
74 lines (62 loc) · 3.19 KB
/
settings.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/***********************************************************************************
* Use serial console Output for debugging and development
*
* Change if needed
************************************************************************************/
// Comment out if you do not want Serial console output
// Comment out DEVMODE in a production environment as it will degrade performance!
#define DEVMODE
// Your own HAM call. Change it
#define MYCALL "MYCALL"
// The power of your transmission in dBm.
// for the si5351 this should be set to 10 (=10 milliwatts).
#define DBMPOWER 10
// If you have a valid GPS lock, the software will make this HIGH twice for 20ms
// You could connect a LED to it.
// Set LED_PIN to 0 if you do not want to use a pin
#define LED_PIN LED_BUILTIN
// If you have an Arduino on 16MHz, set this to 10672
// If you have an Arduino on 8MHz, set this to 5336
#define WSPR_CTC 5336
// Frequency of the SI5351 Oscillator in Hertz
// for example #define SI5351FREQ 26000000 if you have a 26MHz XO
// Use 0 if you have a 25MHz Oscillator
#define SI5351FREQ 0
/***********************************************************************************
* All Si5351 chips have an accuracy error
* Use the example calibration program in the etherkit si5351 library to get that correction
* Or use a frequency counter or reliable VFO to check frequency accuracy.
*
* Correction is in hundreths of Herz.
* It won't work if you don't calibrate your si5351
************************************************************************************/
// Change this value!
#define SI5351_CORRECTION 11000
/***********************************************************************************
* wspr SETTINGS
*
* Change if needed
************************************************************************************/
// WSPR will transmit only on the even minutes for two minutes. So there are 30 possible slots in one hour
// Fill in your favourite frequencies below. Use 0 is you do not want to transmit in that slot.
//
// If you leave this unchanged, you will get WSPR transmissions on 10, 20 and 40 meter band
// every 12 minutes.
static const unsigned long long freqArray[6] = {
28126124ULL, // minute 0,12,24,36,48 => 10 meter band WSPR transmission
0ULL, // minute 2,14,26,38,50 => no transmission
14097100ULL, // minute 4,16,28,40,52 => 20 meter band WSPR transmission
0ULL, // minute 6,18,30,42,54 => no transmission
7040060ULL, // minute 8,20,32,44,56 => 40 meter band WSPR transmission
0ULL // minute 10,22,34,46,58 => no transmission
};
/***********************************************************************************
* GPS SETTINGS
*
* Change if needed
************************************************************************************/
// GPS Serial device
// I recommend using the ATMGM336H GPS, which is well available, cheap and has proven to be reliable
// We use SoftwareSerial so these pin numbers are basically free to choose
static const int Rx = 8, Tx = 7; // Arduino pins to connect to Tx and Rx of the GPS
static const uint32_t GPSBaud = 9600; // GPS BAUD rate. Modern GPS usually 9600, older ones might use 4800.