USB PTT foot-switch

  • 5
  • Idea
  • Updated 8 months ago
that something i have in my brain for some time  to build a USB PTT foot-switch

i operate remote and already have USB studio mike and not like to rely on third party application 
only for handle my "CTS"  serial port foot-switch

so i take Arduino nano and fit it  inside on treadlite II switch 








that beta code 

//on next version will add a time-out timer  by polling ZZTX; status and force RX if TX stay on for //longer that 180 second  (JT-65 and meteor-scatter friendly)


#include <Bounce2.h>
#define PTT 2
int PTT_State = 0;

Bounce debouncer = Bounce(); 

void setup() {
  // put your setup code here, to run once:
  Serial.begin(57600);
  pinMode(PTT, INPUT_PULLUP);
  debouncer.attach(PTT);
  debouncer.interval(5); // interval in ms
}

void loop() {
  // put your main code here, to run repeatedly:
  debouncer.update();
  
  if (debouncer.read() != PTT_State){
   if (digitalRead(PTT) == LOW) {
     Serial.println("ZZTX1;");
     PTT_State = 0; 
     delay(100); }
   else  {
     Serial.println("ZZTX0;"); 
     PTT_State = 1; 
     delay(100);
     Serial.println("ZZTX0;"); }  // just in case radio missing it 
  }
}


Next on my todo list was  Native USB  radioSport  RS60CF headset
by put mini external USB sound card inside the headset shell  
so keep analog audio line as short as possible ;-)

73!  Marc   VE2OLM
Photo of Marc Lalonde

Marc Lalonde

  • 358 Posts
  • 87 Reply Likes

Posted 2 years ago

  • 5
Photo of EA4GLI - 8P9EH - Salvador

EA4GLI - 8P9EH - Salvador

  • 1758 Posts
  • 536 Reply Likes
Very cool! Thanks for sharing!
Photo of K1DBO

K1DBO

  • 447 Posts
  • 75 Reply Likes
I did something similar a while back but I used a serial port instead of USB.  You might find this:  https://community.flexradio.com/flexradio/topics/push-to-vox-version-1-0-0-is-now-available interesting. With it you can can toggle either VOX or MOX.
Photo of W7NGA

W7NGA

  • 411 Posts
  • 174 Reply Likes
Nice work Marc! I too have been integrating the Arduino with my 6500. I use the Arduino to debounce my old Vibroplex keyers and massage the dit/dash timing, and use the new USB support to decode frequency and control bandswitching, antenna switching, SteppIR configuration, and utilize i2C bus devices to perform just about anything I desire (e.g. analog voltages for old Icom antenna tuners). Great fun ...

W7NGA  dan
Seaside, Oregon
(Edited)
Photo of Marc-Andre

Marc-Andre

  • 36 Posts
  • 4 Reply Likes
Nice work Marc, this is a good idea.. let me know if you ever come down to Amos so we can meet somewere
Photo of W7NGA

W7NGA

  • 411 Posts
  • 174 Reply Likes
 Serial.println("ZZTX1;");

I can find no reference that states the TX command is supported. 
Does this actually work on a Flex Signature radio?

W7NGA dan
Seaside, Oregon
Photo of Marc Lalonde

Marc Lalonde

  • 358 Posts
  • 87 Reply Likes
HI  that native cat command for SmartSDR  ,at least it work on my 6700 whit last software

page 32 of  SmartSDR-CAT-User-Guide.pdf

but may use kenwood ts-2000 if what to 

73 Marc l. VE2OLM
(Edited)
Photo of W7NGA

W7NGA

  • 411 Posts
  • 174 Reply Likes
hmmm ... I can't find a SmartSDR CAT User-Guide 

I am using the new USB cable interface and this command doesn't appear to be supported.

I think that is the issue ... it supports a very limited subset of CAT commands.
Photo of Ria - N2RJ

Ria - N2RJ, Elmer

  • 2271 Posts
  • 904 Reply Likes
Outstanding. I am going to try it. 
Photo of Marc Lalonde

Marc Lalonde

  • 358 Posts
  • 87 Reply Likes
i take it here  www.flexradio.com/downloads/smartsdr-cat-user-guide-pdf/

since it a FTDI chip  i assume it may work directly on radio USB port
but for now i only try on my Desktop PC

for kenwood CAT emulation  it TX;  or RX;

that may tested on CAT  log..  windows  whit the test Button
Photo of W7NGA

W7NGA

  • 411 Posts
  • 174 Reply Likes
Thanks Marc. 
Photo of Marc Lalonde

Marc Lalonde

  • 358 Posts
  • 87 Reply Likes
HI  bit of reading and  "CAT" USB cable plug on radio not handle ZZTX; command  or TX; RX;

but i also not a issue since it have PTT on accessory connector (DB15)
and on mic connector on front of radio

on my case i what to use laptop / Desktop   and my radio was remote in cabinet in the basement
so have USB PTT take sense ;-)  same whit USB headset
Photo of Marc Lalonde

Marc Lalonde

  • 358 Posts
  • 87 Reply Likes
ok got my RadioSport headset from Flex today 

so i turn it into a USB headset  for use on my remote radio  
Think it the first USB RS-60  

so i take a small external USB sound card on ebay  and remove all connector 
then solder head phone wire to it  ,and use 4 pin of mini XLR for USB
noting to complex about 45 min of work    , i lost the use of build PTT but who use it really ?





first test look really good , this week-end Winter-Field day will be the real test  ;-)
(Edited)
Photo of Mark K0JM

Mark K0JM

  • 22 Posts
  • 1 Reply Like
Just built one of the foot switches this week with a cheap Chinese nano-clone. Works great! Thanks for sharing the code.