RadioBanter

RadioBanter (https://www.radiobanter.com/)
-   Equipment (https://www.radiobanter.com/equipment/)
-   -   Drake RV-75 dip switch calculator (https://www.radiobanter.com/equipment/146007-drake-rv-75-dip-switch-calculator.html)

Michael[_10_] August 15th 09 02:44 PM

Drake RV-75 dip switch calculator
 

I use this program to calculate the dip switch settings for memory
buttons A and B on my Drake RV75 remote VFO. It uses the same correct
calculation steps as described in the Drake RV75manual to arrive at
the proper dip switch settings. It will run on Linux or Unix with a
bash shell.

Michael/KS4HY

----------------

For example to calculate 28.340 MHz enter in the following...

mrawls@amanda:~ ./calculate-drake-rv75-memory-code 28340

==========================================
DESIRED FREQUENCY: 28340
BASE FREQUENCY: 28000
28000 - 200 = 27800
28340 - 27800 = 540
540 * 100 = 54000
54000 + 20000 = 74000
------------------------------------------
RV75 Memory Code = 74000
==========================================

mrawls@amanda:~
------------------------------------------------------------------------------------
Begin bash shell script for "calculate-drake-rv75-memory-code"
# =========================
#!/bin/bash
# Calc Drake RV-75 memory codes - MRawls

if [ -z $1 ]
then
echo "$0 frequency-in-MHz (example - 27405.1 MHz) "
exit
fi

FREQUENCY=`echo $1 | awk -F"." '{print$1}'`

for X in `seq 0 500 30000`
do
if [ $X -lt $FREQUENCY ]
then
BASE_FREQ=$X
fi
done

echo ""
echo "=========================================="
echo "DESIRED FREQUENCY: $1"
echo "BASE FREQUENCY: $BASE_FREQ"


CALC1=`echo "$BASE_FREQ - 200" | bc -l`
echo "$BASE_FREQ - 200 = $CALC1"

CALC2=`echo "$1 - $CALC1" | bc -l`
echo "$1 - $CALC1 = $CALC2"

CALC3=`echo "$CALC2 * 100" | bc -l`
echo "$CALC2 * 100 = $CALC3"
CALC4=`echo "$CALC3 + 20000" | bc -l | awk -F"." '{print$1}'`
echo "$CALC3 + 20000 = $CALC4"
echo "------------------------------------------"

echo "RV75 Memory Code = $CALC4"
echo "=========================================="
echo ""
# ==========================
End bash shell script



All times are GMT +1. The time now is 04:20 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
RadioBanter.com