ADF7021 radio board for the Raspberry Pi

A very inexpensive D-Star hotspot for the Pi can be built using a radio module from Analog Devices and a simple interface board. This project was just an experiment and there are no plans to offer boards or kits for sale.

Because the frequency chosen by Analog Devices for the onboard crystal is not optimized for D-Star, the standard 4800bps is slightly off. In practice this means that the newer ICOM radios like the ID-31, ID-51, ID-5100 and ID-7100 are going to have trouble receiving. Any of the older ICOM radios such as the 91AD, 92AD, 80AD, 800H, 880H, 2820, U82, V82 and 2200 seem to work well. Using a mobile radio is not a great idea because the lowest power setting may overload the 7021 receiver and require an attenuator. Changing out the tiny surface mount crystal on the radio module to a 14.7456MHz version and updating the 7021 initialization values should make it work well for the newer ICOM radios.

ADF7021 evaluation module mounted

Project genesis

The original idea for the project was based on some messages posted by Satoshi Yasuda 7M3TJZ/AD6GZ, perhaps as far back as 2006 or 2007. He briefly mentioned doing some simple tests with 7021 chip/evaluation module and was able to receive DStar data. There is also a brief mention of the Moe Wheatly AE4JY Digital Voice Transceiver (DVX) Project back in 2007 which also uses the 7021 chip.

Sample DV Stream received by ADF7021
Japanese forum discussion (Google translation)

ADF7021 evaluation module

The Analog Devices' ADF7021 device is the chip used in the DV Access Point Dongle (DVAP).

Analog Devices produces a number of evaluation modules for the 7021 chip. These modules are available from many electronic part suppliers such as Mouser and Digikey. The list price is $50.40.
The D-Star experiments were done with the DBZ3 model which is configured for 431MHz-470MHz.

adf7021

2013-2014 project brought back to life

Fast forward to 2013. There has been some fantastic Work done by Guus van Dooren PE1PLM with his DVMega project to produce a simple prototype AND the necessary firmware.

adfprototype

Jonathan Naylor's D-Star Repeater software supports the new ADF7021 projects staring with the 20140117 beta release. "Added the DVMEGA hardware. Speaking of new hardware, Guus PE1PLM is working on some new hardware which sounds very exciting, I am happy to include explicit support for it within my software. This is the first version so it is possible that more changes will be made, but feedback has been good so far."

Adapter board

The ADF7021 evaluation board is designed to operate at 3.3V, the same voltage level used on the Pi GPIO pins. Since the GPIO pins on the Pi are not fast enough to handle communicating with the eval board, a microcontroller such as the ATmega328 chip is needed. The ATmega328 chip needs to run at 5V so much of the circuitry on the adapter board is dedicated to shifting the signal voltage levels from 3.3v to 5v to 3.3v again.

An adapter board was designed to plug directly into the Pi and includes the Atmga328 chip to act like an Arduino UNO. The adapter board presents a standard serial interface to the Pi connector so the software thinks it is talking to a standard device over a serial port.

adf7021

Firmware

The links to the firmware files can be found on the downloads page.

The easiest way to program the ATmega328 chip is to use the one on an Arduino UNO board. Since the UNO board already comes with the bootloader installed, it is easy to use the Arudino tools to program the firmware. Then the chip just needs to be moved from the UNO to the adapter board.

The hardware design of the adapter board includes a connection to a GPIO pin to simulate the Arduino programming RESET pin. See the instructions here to configure the Pi to use the Arduino environment natively on the Pi.

Software

The G4KLX DStar Repeater software already has the changes needed to support the 7021 based boards. Us the configuration examples here to set up the modem settings.

Operation

As long as there is 5V supplied by the Pi, the Power LED will be on. The Status LED will turn on whenever the firmware is transmitting OR receiving an audio stream. It should remain off when the board is in listening mode.

Schematic

The schematic diagram and PCB layout was done using Eagle CAD. They offer a limited free version of the software available for Windows, Mac and Linux. The PDF of the schematic diagram and links to the Eagle files can be found on the downloads page.

Bill of Materials

For the most part, all the parts are available from either Mouser and/or Tayda Electronics. The PCBs can come from a service such as OSH Park or Seeed Studio.The prices below are based on purchasing enough parts in bulk to make kits for at least 10 boards. Buying the parts for just a single board would cost quite a few dollars more. The pricing for the resistors and capacitors is based on buying at least multiples of 100 at a time. The pricing for parts at Tayda assumes using 15% discount they regularly post on their Facebook page.

CategoryDescriptionRev 0.2 designatorQtyPriceExtVendor link
Semiconductors
MCP1700-3302E/TOIC11$0.370$0.370Mouser
BS108ZL1GQ1, Q2, Q3, Q4, Q5, Q66$0.345$2.070Mouser
ATMEGA328P-PUU11$2.940$2.940Mouser
EVAL-ADF7021DBZ3JP1, JP21$54.400$54.400Mouser
LEDs
LED YellowD11$0.017$0.017Tayda
LED GreenD21$0.017$0.017Tayda
Crystals
16.000MHzY11$0.085$0.085Tayda
Capacitors
30p (30)C6, C72$0.008$0.016Tayda
27n (273)C4, C52$0.008$0.016Tayda
.1u (104)C1, C32$0.008$0.016Tayda
1u (105)C21$0.088$0.088Mouser
Resistors
1.5KR4, R9, R14, R214$0.009$0.036Tayda
2.7KR1, R6, R173$0.009$0.027Tayda
3.3KR5, R12, R18, R224$0.009$0.036Tayda
10KR2, R3, R7, R8, R10, R11, R15, R16, R19, R20, R23, R2412$0.009$0.108Tayda
1MR131$0.009$0.009Tayda
Connectors
2x7 connJP1, JP21$0.042$0.042Tayda
2x13 connJP11$0.130$0.130Tayda
28 pin DIP socketU11$0.094$0.094Tayda
PCB
2 sided PCB1$0.825$0.825Seeed Studio
2 sided PCB - Qty 31$6.067$6.067OSHPark
Shipping
Mouser1$0.675$0.680
Seeed1$1.000$1.000
Tayda1$0.280$0.280
Total without radio$8.902
Total with radio$63.302
All text and images on ki6zum.com are copyright (c) 2010-2014 and may not be reproduced in any form without written permission.
ki6zum