Skip to content
/ PiDX Public

Raspberry Pi+Pixie transceiver for digital modes

License

Notifications You must be signed in to change notification settings

lu7did/PiDX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PiDX

Raspberry Pi+Pixie transceiver for digital modes

Ham radio Digital Pixie Transceiver controlled by a Raspberry Pi Zero W board

The Pixie QRPp (very low power, less than 1W output) transceiver is a very popular DIY project among hams as it is very easy to build, test and operate from the electronic standpoint, yet able to perform some actual limited communications (QSO) over the air.

Although really small power can be enough to sustain communications over great distances and therefore not being a per se limiting factor there are other factors in the basic implementation which makes difficult to carry communications except on very favorable conditions.

An explanation of how the transceiver work can be found here.

This project starts with a working Pixie transceiver (a cheap kit bought at eBay or other sellers) and to integrate it with a Raspberry Pi to provide the signal generation and other functionality.

Instead of a crystal based signal generation the Raspberry Pi itself can be used by means of the librpitx library (by Evariste Courjaud F5OEO acting as a DDS, which is thus the technical core of the project).

On reception a constant carrier at the nominal LO frequency is generated which is used to activate the Pixie Direct Conversion receiver part, upon transmision the Pixie transmitter is powered and the LO frequency is modulated based on the frequency of the incoming audio signal without any assumption on the actual nature of the modulation other than it to be digitally modulated phase or frequency modulated (no amplitude information).

The actual frequency of the modulating signal is computed from a sound stream with a simple zero crossing technique such as the one described by Hans Summers (G0UPL) for his QDX transceiver user manual.

The rest of the code deals mostly with the user interface and operating features, among others:

  • Receive over an entire ham radio band.

  • Dual VFO setup, split mode, controllable step.

  • RIT operation.

  • Frequency can be shift during transmission to implement CW.

  • Sidetone generation.

  • Transmission controlled by processor.

  • Capable of operating most digital modes with very small modifications.

  • Full or Partial Break-In in transmit.

DISCLAIMER

This is a pure, non-for-profit, project being performed in the pure ham radio spirit of experimentation, learning and sharing. This project is original in conception and has a significant amount of code developed by me, it does also being built up on top of a giant effort of others to develop the base platform and libraries used. Therefore this code should not be used outside the limits of the license provided and in particular for uses other than ham radio or similar experimental purposes. No fit for any purpose is claimed nor guaranteed, use it at your own risk. The elements used are very common and safe, the skills required very basic and limited, but again, use it at your own risk. Despite being a software enginering professional with access to technology, infrastructure and computing facilities of different sorts I declare this project has been performed on my own time and equipment.

Fair and educated warning

Raspberry Pi is a marvel.

Hamradio is the best thing ever invented.

¡So don't ruin either by connecting GPIO04 directly to an antenna!

You'll make life of others in your neighboor unsormountable, and even could get your Raspberry Pi fried in the process.

Google "raspberry pi rpitx low pass filter" to get some good advice on what to put between your Raspberry and your antenna Or go to https://www.dk0tu.de/blog/2016/05/28_Raspberry_Pi_Lowpass_Filters/ for very good and easy to implement ideas

Remember that most national regulations requires the armonics and other spurious outcome to be -30 dB below the fundamental.

Schematics

Headless operation (all controls thru CAT)

Headless operation is feasible by not connecting the Encoder, AUX switch and LCD display, however the power supply and keyer circuit are still required for proper operation.

When used in Headless mode the transceiver behaviour can still be controlled by using CAT commands see FLRig and RigCtl usage in the incoming sections.

Raspberry Pi Zero Pinout

The Raspberry Pi Zero pinout assignments are:

Alt Text

Hardware prototype

This is a snapshot of the current prototype used to develop and debug this project:

Alt Text Alt Text

Chinese Pixie MODS

A typical circuit for the kit might be:

Alt Text

Some minor modifications are needed while building the Chinese DIY Pixie kit, other versions might vary.

Components not needed

The following components needs not to be placed when building the kit

  • D2 - Diode 1N4001
  • R6 - R 100K
  • C8 - C 100nF
  • W1 - R 47K (var)
  • D3 - Diode 1N4148
  • Y1 - Cristal 7.032 MHz

Different connections (Recommended MODS)

  • Connect Pin 7 LM386 to PWM exit from interface card (sidetone) marked as Vol+ in the schematic.
  • Connect Cx=100 nF on the same place than Y1 on the kit.
  • Connect negative side of D3 diode to the interface board PTT line
  • Cut trace from R5 to KEY socket, connect both keyer legs to the socket going into GPIO15 and GPIO13.
  • Assure all three boards (interface, Pixie and Raspberry Pi) share a common ground.
  • Extract +12V from the Pixie +12V socket, feed LM7805 with it.

Alt Text

All additional interface circuitry might be constructed on a prototype perfboard or using the Manhattan technique.

Pixie Final PA heat sink

Operating with a 12V supply the final transistor might become quite hot and indeed fail if the keydown period is long enough (as it might be with FT8 or WSPR, even for slow CW). A small heatsink is recommended. Space is very limited on typical kits but a small piece of aluminum might be enough, be aware not to short either L1 nor L3 with it.

The keyer transistor Q1 will benefit from a heat sink as well if long keying times are expected.

Broadcast Interference (BCI)

At some locations the Chinese DIY Pixie kit might be subject to heavy BCI, in order to minimize try to replace R3 from 1K to 47-100 Ohms.

Increase power and other features

An interesting set of low cost modifications to increase the power, improve efficiency and other enhancements to the original DIY Kit can be found at link.

Other alternatives

Even if the Pixie schematic is used for the project the software could be used directly with other DIY or homebrew popular designs, among others:

Lots of good QRPp projects can be found at link or SPRAT magazine link.

Case 3D Design

The preliminar 3D design for a project case (with LCD) can be seen as follows

PixiePi 3D Case Design

Warning

3D STL file is an unfinished work in progress (see pending at issues)

Package requirements

  • sudo apt-get install i2c-tools libi2c-dev
  • sudo apt-get install socat
  • sudo apt-get install telnet
  • git clone git://git.drogon.net/wiringPi
  • git clone https://github.com/F5OEO/librpitx && cd librpitx/src && make
  • Enable I2C and SPI with sudo raspi-config
  • Follow instructions to download and build the HamLib package from https://sourceforge.net/projects/hamlib/files/hamlib/ (hamlib-1.0.1.tgz at this moment, check it out for latest)
  • Follow instructions to download and buid the FLRIG package from here
  • Enable PWM in your Raspberry Pi tutorial

Build

Release notes:

  • This project requires a board combining:

    • Raspberry Pi
    • Pixie Transceiver
    • Glueware simple electronics to switch transmitter, connect keyer and others.

This setup can be used with flrig as the front-end and CAT controller (headless mode), it should work with any other software supporting a Yaesu FT-817 model CAT command set.

CAT Control

CAT control can be performed over the programs of this project as they implement a limited subset of the Yaesu FT-817 CAT Command set. Commands are carried thru an internal pipe (created using the socat package, see bash/pixie.sh script for details) which looks to the controlling program just like a serial port (usually /tmp/tty0).

Operated in "headless" mode, with no tunning control or LCD display, this feature can be used to operate the transceiver.

Two alternatives has been tested:

FLRig

FLRig can be built on the Raspberry Pi and used to control the PixiePi rig just configuring it as a FT-817 with the serial port as /tmp/ttyv0. The PixiePi program must be up a running and the pipe established when this program is run. Being a graphic X-Window app FLRig is somewhat taxing on resources and might not perform well when using a Raspberry Pi Zero W, however it will run just fine on a Raspberry Pi 3 or higher.

RigCtl

RigCtl is a companion program of the HamLib library, it's main advantage is a console operation with a very low resources consumption, therefore it can be used on a Raspberry Pi Zero W to control the rig. See bash/pixie.sh in order to understand the way to configure it.

The rigctl interface is a server running in the background (rigctld) which can be accessed using a telnet interface at localhost port 4532.

See the docs/rigctl_commands.txt for a summary of the commands or visit the Hamlib page for complete documentation.

Other packages

In general the hardware can be used to implement modulation modes proposed by the rpitx package. In some cases the RF chain after the Raspberry Pi needs to be activated, the hardware on this project uses the GPIO12 line as the PTT, some programs might require this line to be activated or deactivated externally.

Work in progress, this code set is not yet functional

About

Raspberry Pi+Pixie transceiver for digital modes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published