Welcome to the FlexRadio Community! Please review the new Community Rules and other important new Community information on the Message Board.
If you are having a problem, please refer to the product documentation or check the Help Center for known solutions.
Need technical support from FlexRadio? It's as simple as Creating a HelpDesk ticket.

v1.4 remote PTT switch

Member ✭✭
edited January 2017 in New Ideas
I really like having a PTT hand switch, and real quick this morning made one for v1.4 remote.  It uses a tiny Arduino connected via USB to send MOX CAT commands.  Initial testing works great.  The only bad part is DDUTIL is required to link a physical comm port to SmartCat.

I just need to make a nice enclosure for it :)

Here is the simple sketch ;

//CAT USB PTT Switch - W4WHL

int buttonState = 0;  // variable for reading the PTT status
int oldState = 0;

void setup() {
  Serial.begin(9600);
  pinMode(4, INPUT);  // initialize the PTT pin as an input:
}
void loop() {
  buttonState = digitalRead(4);   // read the state of the PTT Switch:
  if (buttonState != oldState) {  // If state has changed, do something
    if (buttonState == HIGH) {    // If PTT pressed Send MOX on
      // Turn on MOX
      Serial.println("ZZRX1;"); 
      oldState = buttonState;
    }
    else {
      // turn MOX off:
      Serial.println("ZZRX0;");  //If PTT released Send MOX off
      oldState = buttonState;
    }
  }
}

W4WHL

0 votes

In Review · Last Updated

Comments

  • Member ✭✭
    edited July 2016
    image

    here is the completed functional USB PTT switch.  My PTT switch jsut plugs into a 3.5mm jack built into the top of the pill bottle.  Looks funny but Works perfect!

    W4WHL
  • Member ✭✭
    edited January 2017
    I think I saw this at my yearly Dr visit! Really this would be great for remote better than a flex knob

Leave a Comment