Local CW keyer for remote keying

Difference between revisions from 2019/02/22 12:09 and 2016/03/20 21:20.
[http://www.remoteqth.com/img/wiki-cw-key4remote-blok.png]
[Video|http://youtu.be/_9SBgmPi6yc]
[http://www.remoteqth.com/img/wiki-cw-key4remote-9.jpg|noborder][https://remoteqth.com/img/wiki-cw-key4remote-blok.png]
[Video|https://youtu.be/_9SBgmPi6yc]
[https://remoteqth.com/img/wiki-cw-key4remote-9.jpg|noborder]
'''Principle -''' arduino keyer identifies the played characters (enabled echo feature in K3NG code) and sending to server for playing with other hardware of the cw keyer or cw daemon (contains RemoteQTH server for Raspberry PI). This configuration is '''resistant to change internet latency''' during transmission, because not transmitted separately each dit/dash, but the entire ASCII character that perfectly transmiting the server side.

'''Main functions:'''
* CW keying
* Detect keying characters and show on the LCD
* Send keying characters to USB serial (echo mode)
* CW sidetone during the PTT is ON, otherwise play audio from RX
* Sidetone volume
* Four SET/MEM switch

['''←''' Back to web page|http://remoteqth.com/index.php]page|https://remoteqth.com/index.php]

!Configure Arduino firmware

!!Master key
* Enable paddle echo in serial CLI with '''\*'''
* Or default in [firmware|http://sourceforge.net/p/k3ngarduinocwke/code/ci/master/tree/].[firmware|https://sourceforge.net/p/k3ngarduinocwke/code/ci/master/tree/]. Find this line{{byte cli_paddle_echo = 0;}} and set from 0 to 1 {{byte cli_paddle_echo = 1;}}
!!Slave key
* Disable sidetone '''\o'''
* Disable CW send echo in serial CLI with '''\:'''
** Or default in [firmware|http://sourceforge.net/p/k3ngarduinocwke/code/ci/master/tree/].[firmware|https://sourceforge.net/p/k3ngarduinocwke/code/ci/master/tree/]. Find line{{byte cw_send_echo_inhibit = 0;}} and set from 0 to 1 {{byte cw_send_echo_inhibit = 1;}}
* Disable send '''?''' after error char - disable (abt line 4655){{//default: send_the_dits_and_dahs("..--..");break;}} and add new line between define other char (abt line 4617){{case '?': send_the_dits_and_dahs("..--..");break;}}


[Example firmware settings|http://remoteqth.com/sw/_2_1_unstable.zip]settings|https://remoteqth.com/sw/_2_1_unstable.zip]



!Plug&play connecting in Linux

'''Udev rules'''
After connect Arduino nano  show IDs with type dmesg in terminal, and edit udev rules
vim /etc/udev/rules.d/99-remoteqth.rules
{{SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ATTRS{serial}=="A702R984", SYMLINK+="ttyCW0", RUN+="/etc/cw.sh"}}

'''Connection script /etc/cw.sh'''
{{#!/bin/bash
SERVER=192.168.1.1  # IP YOUR SERVER
CWDPORT=6789
killall socat
sleep 3
socat UDP:$SERVER:$CWDPORT /dev/ttyCW0,raw,echo=0 &
exit 0}}

!Connecting in Windows
!Server side
Your need server ([Raspberry PI|RemoteQTH-server]) with [CW]daemon, or next hardware arduino cw keyer connected via [Ser2Net] proxy.


!Assembly
!!Circuit diagram
*[.SVG|http://remoteqth.com/hw/cw-key4remote_11.svg]
*[.PDF|http://remoteqth.com/hw/cw-key4remote_11.pdf]*[.SVG|https://remoteqth.com/hw/cw-key4remote_11.svg]
*[.PDF|https://remoteqth.com/hw/cw-key4remote_11.pdf]
*[KiCAD source|https://remoteqth.com/download-count.php?Down=hw/remote-cw.zip]

[http://www.remoteqth.com/img/wiki-cw-key4remote-brd.png][https://remoteqth.com/img/wiki-cw-key4remote-brd.png]
* Jumper JP1 choose output between headphone and external out on P1
* K1 prepared for connection CW speed potentiometer
* RV1 set CW sidetone volume
* RV2 preset LCD contrast

[http://www.remoteqth.com/img/wiki-cw-key4remote-1.jpg][https://remoteqth.com/img/wiki-cw-key4remote-1.jpg]
✔  Components
[http://www.remoteqth.com/img/wiki-cw-key4remote-2.jpg][https://remoteqth.com/img/wiki-cw-key4remote-2.jpg]
❏ Solder J2, D1, D2
[http://www.remoteqth.com/img/wiki-cw-key4remote-3.jpg][https://remoteqth.com/img/wiki-cw-key4remote-3.jpg]
❏ All parts of backside (C1 sign wrong polarity on PCB)
[http://www.remoteqth.com/img/wiki-cw-key4remote-4.jpg][https://remoteqth.com/img/wiki-cw-key4remote-4.jpg]
❏ J1, four TACT switch
[http://www.remoteqth.com/img/wiki-cw-key4remote-5.jpg][https://remoteqth.com/img/wiki-cw-key4remote-5.jpg]
❏ LCD
[http://www.remoteqth.com/img/wiki-cw-key4remote-6.jpg][https://remoteqth.com/img/wiki-cw-key4remote-6.jpg]
❏ Insert Arduino Nano
[http://www.remoteqth.com/img/wiki-cw-key4remote-7.jpg]
[http://www.remoteqth.com/img/wiki-cw-key4remote-8.jpg][https://remoteqth.com/img/wiki-cw-key4remote-7.jpg]
[https://remoteqth.com/img/wiki-cw-key4remote-8.jpg]
----
['''←''' Back to web page|http://remoteqth.com/index.php]page|https://remoteqth.com/index.php]