Git Product home page Git Product logo

hfbeacon's Introduction

Arduino HF multimodes beacon library

Created by F4GOJ Christophe [email protected] & F4GOH Anthony [email protected] - October 2014

This repo forked from https://github.com/F4GOJ/HFBEACON


Installation

To use the HFBEACON library:

  • Go to https://github.com/F4GOJ/HFBEACON, click the Download ZIP button and save the ZIP file to a convenient location on your PC.
  • Uncompress the downloaded file. This will result in a folder containing all the files for the library, that has a name that includes the branch name, usually HFBEACON-master.
  • Rename the folder to HFBEACON.
  • Copy the renamed folder to the Arduino sketchbook\libraries folder.

Usage notes

The HFBEACON library instantiates a Beacon object, the user does not need to do this.

To use the HFBEACON library, the AD9850SPI and SPI libraries must also be included.

#include <HFBEACON.h>  // http://github.com/F4GOJ/HFBEACON
#include <AD9850SPI.h> // http://github.com/F4GOJ/AD9850SPI
#include <SPI.h>       // http://arduino.cc/en/Reference/SPI (included with Arduino IDE)

Functions :

rsidToggle(boolean rsidEnable)

Description

Enable RSiD in PSK, RTTY and Hell modes.

Syntax

Beacon.rsidToggle(rsidEnable);

Parameters

rsidEnable : true to enable or false to disable RSiD transmission (default is true) (boolean)

Returns

None.

Example
void setup(){
 Beacon.rsidToggle(false);
}

cwTx(long freqCw, char * stringCw, int cwWpm)

Description

Transmit a string in morse code.

Syntax

Beacon.cwTx(freqCw, stringCw, cwWpm);

Parameters

freqCw : Frequency of transmission. (long)
stringCw : String to transmit (not case sensitive) (char array)
cwWpm : Speed of transmission in words per minute. (int)

Returns

None.

Example
void loop(){
 Beacon.cwTx(10141000, "f4goj 30m bcn test f4goj", 20);
 while(1);
}

pskTx(long freq, char * stringPsk, int modePsk, int baudsPsk)

Description

Transmit a string in BPSK 31 mode.

Syntax

Beacon.pskTx(freq, stringPsk, modePsk, baudsPsk);

Parameters

freq : Frequency of transmission. (long)
stringPsk : String to transmit (char array)
modePsk : Mode (ascii code of B for BPSK and Q for QPSK) (integer)
baudsPsk : Baud rate (31, 63, 125) (integer)

Returns

None.

Example
void loop(){
 Beacon.pskTx(14070000, "f4goj 20m beacon test f4goj", 'B', 31);
 while(1);
}

rttyTx(long freqRtty, char * stringRtty)

Description

Transmit a string in RTTY 45 mode.

Syntax

Beacon.rttyTx(freqRtty, stringRtty);

Parameters

freqRtty : Frequency of transmission. (long)
stringRtty : String to transmit (not case sensitive) (char array)

Returns

None.

Example
void loop(){
 Beacon.rttyTx(14070000, "f4goj 20m beacon test f4goj");
 while(1);

wsprTx(long freqWspr, char * callWsprTx, char * locWsprTx, char * powWsprTx)

Description

Encode callsign, locator, transmit power if not done and transmit them in WSPR-2.

Syntax

Beacon.wsprTx(freqWspr, callWsprTx, locWsprTx, powWsprTx);

Parameters

freqWspr : Frequency of transmission. (long)
callWsprTx : Callsign (not case sensitive) (char array)
locWsprTx : Locator (4 characters long, not case sensitive) (char array)
powWsprTx : Transmit power (in dBm) (char array)

Returns

None.

Example
void loop(){
 Beacon.wsprTx(10140131, "f4goj", "in97", "33");
 while(1);

wsprEncode(char * callsign, char * locator, char * power)

Description

Encode callsign, locator, transmit power.

Syntax

Beacon.wsprEncode(callsign, locator, power);

Parameters

callsign : Callsign (not case sensitive) (long)
locator : Locator (4 characters long, not case sensitive) (char array)
power : Transmit power (in dBm) (char array)

Returns

Update wsprSymb[] and wsprSymbGen variables

Example
void loop(){
 Beacon.wsprEncode("f4goj", "in97", "33");
 while(1);

hfbeacon's People

Contributors

f4goj avatar hsiboy avatar

Watchers

 avatar

Forkers

jafo2128

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.