Raspberry Pi DV

The design of the Raspberry Pi version of the GMSK board is very similar to the one for the Arduino. The main difference is that the Arduino runs at 5V compared to the 3.3V for the Pi.
Raspberry Pi board

Raspberry Pi board

Broadcom kernel driver bugs

There are some problems with the Broadcom device drivers supplied for the Pi. The issue is that while the Broadcom chip can handle hardware interrupt queuing, the device driver doesn't do any queuing. This means that when the software is in an interrupt service routine, any other interrupt will be lost. Since there are a number of interrupt sources the interrupts from the RasPi DV board are often lost. In practice if only transmit or receive mode is turned on, about one out of every 50 interrupts is lost. This is WAY too many bits to lose in a D-Star stream. When contacted about the bugs, Broadcom declined to help fix the drivers. There have been a few posts in the Pi online forums here and here about the problem and what things have already been tried to fix it. So far nothing has worked.

Raspberry Pi DV adapter board

After spending months working on a custom device driver to support the RasPi DV board and to try and find workarounds for the Broadcom bugs, it was decided to try to build an adapter board to give the functionality of an Arduino to handle the interrupts. This adapter board works well with the existing RasPi DV boards that have already been built. The design was then combined to create the RasPi DV AVR board.

Raspberry Pi adapter board

Raspberry Pi adapter board

GPIO Connector pinout

The RasPi DV board connects directly to the GPIO pins of the Raspberry Pi.
Pin NumberPin Name Rev1Pin Name Rev2RasPi DV Pin Name
01 3.3 V 3.3 V
02 5V0 5V05V0
03 GPIO 0 GPIO 2
04 5V0 5V05V0
05 GPIO 1 GPIO 3
06 GND GNDGND
07 GPIO 4 GPIO 4PLLACQ
08 GPIO 14 GPIO 14
09 GND GNDGND
10 GPIO 15 GPIO 15
11 GPIO17 GPIO17COS
12 GPIO 18 GPIO 18
13 GPIO21 GPIO27COS_LED
14 GND GNDGND
15 GPIO22 GPIO22PTT
16 GPIO23 GPIO23RX_SN
17 3.3 V 3.3 V
18 GPIO24 GPIO24TXCLK
19 GPIO10 GPIO10
20 GND GNDGND
21 GPIO9 GPIO9
22 GPIO25 GPIO25RXCLK
23 GPIO11 GPIO11
24 GPIO08 GPIO08RXDATA
25 GND GND
26 GPIO07 GPIO07TXDATA

Schematics

The schematic diagrams and PCB layouts were done using Eagle CAD. They offer a limited free version of the software available for Windows, Mac and Linux. The PDFs of the schematic diagrams can be found on the downloads page.

Ordering components

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.

RasPi DV Bill of Materials

CategoryDescriptionQtyDesignatorsPriceExtVendor link
Semiconductors
CMX589AE21U1$3.700$3.700eBay
MCP6002-I/MS1U2$0.330$0.330Mouser
LD1117-331U3$0.271$0.271Mouser
IRLML20601Q3$0.149$0.149Mouser
2N70021Q5$0.034$0.034Tayda
LEDs
LED G1D1$0.051$0.051eBay
LED Y1D2$0.054$0.054eBay
LED R1D3$0.051$0.051eBay
Crystals
4.9152MHz1Y1$0.330$0.330Mouser
Capacitors
22pF (22)1C6$0.008$0.008Tayda
30pF (30)2C2, C3$0.071$0.142Mouser
470pF (471)3C1, C9, C16, C17$0.008$0.024Tayda
27nF (273)2C7, C8$0.100$0.200Mouser
.1uF (104)5C4, C10, C12, C14$0.008$0.040Tayda
1uF (105)4C5, C11, C13, C15$0.037$0.148Mouser
Resistors
200K potentiometer1Rx$0.162$0.162Tayda
50K potentiometer1Rx (alternate)$0.162$0.162Tayda
500K potentiometer1Tx$0.162$0.162Tayda
100K potentiometer1Tx (alternate)$0.162$0.162Tayda
3302R21, R23$0.008$0.016Tayda
2.7k3R22, R26, R27$0.008$0.024Tayda
47k5R5, R6, R8, R9, R10, R14$0.008$0.040Tayda
100k6R1, R3, R4, R12, R13, R25$0.008$0.048Tayda
1M2R2, R24$0.008$0.016Tayda
Connectors
2x3 conn1JP2$0.025$0.025Tayda
2x13 conn1JP1$0.187$0.187Tayda
PCB
2 sided PCB1$0.825$0.83Seeed Studio
2 sided PCB - Qty 31$9.95$9.95OSHPark
Shipping
Mouser1$0.675$0.68
Seeed1$1.000$1.00
Tayda1$0.280$0.28
Total$6.91

RasPi DV I/F Adapter Bill of Materials

CategoryDescriptionQtyDesignatorsPriceExtVendor link
Semiconductors
BS108ZL1G2Q5, Q6$0.345$0.690Mouser
ATMEGA328P-PU1U1$2.940$2.940Mouser
LEDs
LED Yellow1D1$0.017$0.017Tayda
LED Green1D2$0.017$0.017Tayda
Crystals
16.000MHz1Y1$0.085$0.085Tayda
Capacitors
30pF (30)2C6, C7$0.008$0.016Tayda
27nF (273)2C4, C5$0.008$0.016Tayda
.1uF (104)1C1$0.008$0.008Tayda
1uF (105)1C2$0.088$0.088Mouser
Resistors
1.5K1R21$0.009$0.009Tayda
2.7K3R1, R6, R17$0.009$0.027Tayda
3.3K1R22$0.009$0.009Tayda
10K4R19, R20, R23, R24$0.009$0.036Tayda
1M1R13$0.008$0.009Tayda
Connectors
2x13 conn (M)1JP2$0.130$0.130Tayda
2x13 conn (F)1JP1$0.180$0.180Tayda
28 pin DIP socket1U1$0.187$0.187Tayda
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$7.249
All text and images on ki6zum.com are copyright (c) 2010-2014 and may not be reproduced in any form without written permission.
ki6zum