Keyer circuit

Not rated 24,353

Circuit Image

A larger version of the circuit diagram can be accessed by clicking here. The circuit was created using Eagle from CadSoft, which is a free schematic and PCB layout software for small non-commercial projects. The core component of the keyer is the PIC16F877A microcontroller. This 20MHz microcontroller offers a substantial amount of I/O capabilities, including up to 8 analog-to-digital converters (ADCs) with 10-bit resolution each. Power for the microcontroller is supplied by three AA batteries connected in series, along with a power on/off switch. The sleep mode of the PIC chip minimizes current consumption to negligible levels, even when the power remains on. Capacitors C5 and C6 are utilized to decouple the VSS and VDD lines of the chip, positioned close to the pins on either side. The oscillator circuit consists of X1, C3, and C4, with a 4MHz ceramic resonator employed, which is well within the 20MHz maximum frequency rating of the chip. The lower frequency was selected to avoid layout complications on the stripboard, while still providing a throughput of one million instructions per second, sufficient for a Morse keyer application. Resistors R1 and R2 serve as the speed and weight controls, respectively. These controls are connected to the VDD line, with their tails routed to the RB1 pin of the microcontroller. RB1 is typically held at a logic high level, preventing current flow through the potentiometers and aiding in low power consumption for battery-operated devices. The RB1 pin is pulsed low to read the potentiometer values continuously during operation. Pins RB4 to RB7 are designated as inputs for the dit and dah paddles, as well as the menu and memory pushbuttons. These pins are significant because they can generate interrupts, allowing the device to wake from sleep mode, which is crucial since the PIC microcontroller enters sleep mode even between character transmissions. The transistor Q1 drives the key input of the transmitter or transceiver, which is limited to 33V and 100mA. It is assumed that the key input of the transmitter operates on a positive voltage, which is grounded when the key is pressed. If negative voltages or alternative protocols are utilized, modifications will be required in this section. Pressing the menu button activates the menu mode, which remains active for up to five seconds before timing out, with the dit signal representing 'E' for exit. Pressing the menu button again will exit the menu mode. Entering the dit-dah sequence prompts the keyer to respond with 'N', indicating a number is required. Valid entries include dit-dah-dah-dah-dah, dit-dit-dah-dah-dah, or dit-dit-dit-dah-dah, with shortcuts available as dit, dit-dit, and dit-dit-dit, respectively. These inputs will overwrite the current memory. Entering the dit-dah-dit sequence will prompt the keyer to respond with 'R', indicating record mode. Users can record messages using the paddles, and the keyer will automatically detect the end of the message, responding with 'K'. A maximum of 64 characters can be recorded. Inputting dah will change the current sidetone setting, with the keyer responding with 'Y' or 'N' based on whether the sidetone is active. The sidetone remains active during menu operations, even if turned off with the 'T' command. All pages and content are copyrighted ©2004-2014 Duncan Munro M0KGK, and all trademarks are acknowledged. For any inquiries, contact [email protected].

The circuit schematic utilizes the PIC16F877A microcontroller as the primary processing unit, which is well-suited for applications requiring efficient processing of Morse code signals. The microcontroller's architecture includes multiple I/O pins that facilitate the connection of user interface components such as the dit and dah paddles, as well as the menu and memory buttons. The use of a 4MHz oscillator ensures stable operation while minimizing potential layout issues that could arise from higher frequency components.

The power supply design, utilizing three AA batteries, is a practical choice for portable applications, and the implementation of a power switch allows for user control over device activation. The sleep mode feature of the PIC16F877A is crucial for extending battery life, as it significantly reduces power consumption during periods of inactivity.

Decoupling capacitors C5 and C6 are strategically placed to stabilize the power supply lines, minimizing noise and ensuring reliable operation of the microcontroller. The oscillator circuit, consisting of a ceramic resonator, is critical for maintaining the timing accuracy necessary for Morse code generation and decoding.

The inclusion of resistors R1 and R2 as adjustable controls for speed and weight enhances user customization, allowing operators to tailor the keyer's response to their preferences. The interrupt capability of pins RB4 to RB7 is a vital feature, enabling the device to respond promptly to user inputs, even when in a low-power state.

The output stage, driven by transistor Q1, is designed to interface with standard transmitter key inputs, ensuring compatibility with a wide range of radio equipment. This design approach provides flexibility for users who may require different voltage levels or signaling protocols.

Overall, the circuit schematic represents a comprehensive and efficient design for a Morse code keyer, integrating user-friendly features with robust electronic components to deliver reliable performance in a compact form factor.A larger version of the circuit diagram by clicking here. The circuit was drawn using Eagle from CadSoft, a schematic and PCB layout package that is free to use for small non-commercial projects. The heart of the keyer is the PIC16F877A chip. This is a 20MHz microcontroller with a generous amount of I/O capability including up to 8 A DC`s on board with resolutions of 10 bits each. Power to the chip is obtained by 3 x AA cells in series and a power on/off switch is used. Even with the power left on, the sleep mode of the PIC chip reduces current draw to negligible amounts. C5 and C6 are used to decouple the VSS and VDD lines of the chip, one on either side close to the pins.

X1, C3 and C4 form the oscillator circuit and in this case a 4MHz ceramic resonator is used which is well below the 20MHz maximum rating of the chip. The lower frequency was chosen to prevent any layout problems on the stripboard, and 4MHz still results in a throughput of one million instructions per second plenty for a morse keyer.

R1 and R2 are the speed and weight controls respectively. These are commoned on the VDD line, although the tails are taken to the RB1 pin on the chip. RB1 is normally held at logic 1 so that no current flows through the pots, assisting with the low current drain for battery operated equipment. RB1 is pulsed low to read the pots and does so continuously while operating. Pins RB4 to RB7 are the four inputs for the dit and dah paddles, and the menu and memory pushbuttons.

The significance of using these pins is that they can generate an interrupt and wake the device up from sleep mode. This is of critical importance as the PIC device is sent to sleep even between characters. Finally, Q1 drives the key input of the transmitter or transceiver limited to 33V and 100mA. It is assumed that the key input of the TX is some positive voltage which is shorted to ground by the key .

If negative voltages are used, or a different protocol, then changes are necessary to this area. Pressing the menu button invokes the menu mode. It will stay in the menu mode for up to 5 seconds, then timeout with dit meaning E for Exit. Pressing the menu button again will take it out of the menu. Key in dah-dah and the keyer will respond with N to indicate a number is needed. Valid entries are dit-dah-dah-dah-dah, dit-dit-dah-dah-dah or dit-dit-dit-dah-dah. Shortcuts are dit, dit-dit, and dit-dit-dit respectively. Records over the current memory. Key in dit-dah-dit and the keyer will respond with R to signify record mode. Record the message on the paddles and stop, the keyer will automatically recognise the end of the message and respond with K. Up to 64 characters can be recorded. Key in dah and the sidetone will be changed from its current setting. The keyer will respond with Y or N depending on whether the sidetone is on or not. The sidetone is always on during menu operations, even if switched off with T. These pages and contents are Copyright ©2004-2014 Duncan Munro M0KGK. All trademarks used herein are acknowledged. Email any queries about these pages to postmaster@duncanamps. com 🔗 External reference