piHPSDR, Version 2.0

piHPSDR, Version 2.0

Having built my interpretation of John Melton's magnificent piHPSDR earlier, I wanted to make a few small changes. -And this is how my "version 2.0" came to be.

Please note that this offering is not intended to be a construction manual in any way; -It will just highlight a few views, etc. of my unit.

The "wiring diagram" that is included below is applicable to both my v.1 as well as v.2. This diagram was generated so that I could easily keep track of the needed connections.


GREAT project!!! Thanks to John Melton!

New version 2 has the following differences compared to version 1 [Some of the features have been added to both versions; see (**) below]

- Version 2 can easily swap the RPi MICRO-SD card without disassembly (It is neccessary to disassemble version 1, in order to access the micro-SD)

- More compact design version 2 compared to version 1

- Version 2 is lower cost than version 1 (Due to choice of cases, encoders)

- Version 2 USB, Ethernet, etc. cables do not stick out beyond the screen when these ports are being used, compared to version 1 (Noticeably cleaner design, due to version 2 offering a more central location in version 2, compared to version 1)

- Version 2 is easier to pick up and handle, due to lack of cable-clutter, which will not cause concern of stressing the cables

- The HDMI port is directly available in version 2, but not version 1

- Both of my versions have a transmit (toggle) button on unit base (**)

- Both of my versions have a microphone jack for transmit audio (**)

- Both of my versions have Toggling PTT function via the microphone jack (**)

- Both of my versions have a powered speaker built in for receive audio (**)

- Both of my versions have a 5 VDC input jack (Mini-USB ports are not used for power) (**) (No multi- Mini-USB cables and plugs are needed)

- Version 2 interconnect cables are embedded into the package (Cleaner design)

- Version 2 VFO employs uses a thumb roller vs. optical encoder

- Scott (WU2O) has a great page that shows well detailed construction and hints page here: http://wu2o.dyndns.org/wu2o_pi_4.html



The above is after the DISPLAY and the BASE cases have been attached together. The controls have been mounted at this point.


Early stages of version 2 construction. (Most of the controls have been wired.)


The audio components have been installed and tested; -Note the mic jack at the lower-right. The red wire is the tap-to-toggle the TRANSMIT-RECEIVE action.


The interconnect ribbon cable, etc. are in place; -The blue USB cable should have been BLACK. (Oh, well.) I was happy to be able to hide the ribbon cable INSIDE the unit; -This makes the system a lot cleaner-looking. (My version 1 had the ribbon interconnect cable outside, as there was no way to keep it inside.)


I had discovered that virtually ALL of the micro-USB connection and feed situations caused a small loss of voltage! I tried many cables and power supplies, and finally gave up using the unsightly micro-USB connections entirely! The above image shows the DC power feed that I used on both of my piHPSDR units. Very smooth, plus it allows me to hide these wires inside the unit for a little cleaner look.


The Raspberry PI snap-in cover is in place; Note the presently unused but available micro-USB, etc. ports. The HDMI port is also available and active!


The left side of the base has a 5 volt DC power connector as well as a mic jack that is not only the audio input for SSB transmit, but allows a toggle-to-transmit function. Note the easy access for the micro-SD card on the side of the display housing.


The piHPSDR is complete and operational. I have since replaced the BLACK-ON-WHITE labels with a much nicer looking GOLD ON BLACK.


Another view of the front of version 2. (This time with RX2 enabled.)


This shows my settings of the GPIO portion of piHPSDR. Nothing at all critical, nothing tricky!


The piHPSDR will transmit SSB nicely. This method is NOT a conventional PTT, as one must tap-to-transmit, and tap again to switch-to-receive. (It is surprisingly easy to get used to.) This same toggle-transmit is available via a keyboard. By tapping the SPACE BAR.


Another view of the left side; The GOLD-ON-BLACK labels have now replaced the original black and white ones.


A view of the front panel and the small desk-mic that I am using. The mic has a small momentary button that toggles the TRANSMITTER-TOGGLE function. The front panel RED button is in parallel with the small BLACK button on the mic.


The nicely accessible USB, etc. connectors are shown. The speaker is a small but powerful mini-boom box style.


The following shows the top and bottom sides of a GPIB interconnect board that I had found to be convenient. I did have to add the jumpers (as seen on the right) to the bottom side of this board; I added only what was needed.


The following hen-scratching that represents most of my resulting connection needs between the interconnect board and the several controls in the piHPSDR base.




Added notes.

piHPSDR v1.1.3-beta 2-22-17, by: John Melton, g0orx

The update can be downloaded and installed using the instructions at: https://github.com/g0orx/pihpsdr/blob/master/release/documentation/pihpsdr-install.pdf

There is an updated user manual at:

https://github.com/g0orx/pihpsdr/blob/master/release/documentation/piHPSDR-Controller-Users-Guide.pdf

This release fixes several bugs including:

- Pressing RIT+ and RIT- together causes a system fault.

- VOX not not being enabled or causing a system fault.

- External PTT not changing VFO to red.

- External PTT causing system fault.

It also supports output of both receivers to a common audio output device ont he Raspberry Pi which would allow you to have one receiver on the left channel and the other receiver on the right channel, or both receivers on both channels. See page 18 of the User Manual.


UPDATE and/or INSTALL the piHPSDR app

(1) Install the piHPSDR app:

- Begin by using a standard Windows computer, follow the following steps.

- Download latest Raspbian image from https://www.raspberrypi.org/downloads/raspbian/

- Unzip image

- Place an SD-card into a USB SD-card adapter into a USB port in the Windows computer. (With a spare SD card installed in the adapter.)

- Load the image to SD-memory card, using Win32DiskImager on Windows. (Or, dd on Linux)

- Remove the SD card from the USB SD-card adapter, when complete.

- Insert the SD card into the Raspberry PI computer.

- Plug a mouse and keyboard into the Raspberry PI. (If no keyboard and mouse is available, you can connect to the TinkerBoard using SSH from another system. (ssh linaro@)

- Boot the Raspberry PI, being sure to have an active Ethernet plugged into the Raspberry PI. - It will use DHCP to get an IP address.

- Note that the display will work, but initially may not be the correct size, and the touch screen may not be working.

- Update the system with the following command in any terminal app that is found in the Raspberry PI:

sudo apt-get update && sudo apt-get dist-upgrade && sudo apt-get install -f

- This will take some time to complete; Respond with a Y to any questions.

- Reboot the Raspberry PI, when this update is complete.


(2.) Install the piHPSDR app

- Open a terminal window on the RPi or connect to the Raspberry Pi. (Or use ssh from another system)

- In the home directory (/home/pi) download the binary package. This will overwrite any existing file with the same name. If you want to keep the previous version then you should rename the existing pihpsdr.tar file before performing the wget command:

wget -N https://github.com/g0orx/pihpsdr/raw/master/release/pihpsdr.tar

- The /home/pi directory should now contain the pihpsdr.tar file.

- Extract (unzip) the pihpsdr.tar file. -This will create directory pihpsdr:

tar xvf pihpsdr.tar

- Setup the system for piHPSDR, using the terminal app in the Raspberry PI, enter the following two commands, followed by a (CR), or return key:

cd pihpsdr

./install.sh

- The first time you run install.sh it will install fftw3 and the screensave. You will be asked several questions to which you should simply hit the return key to accept the default answer.

- The system is now ready to run piHPSDR.

- You are now ready to run the application by double tapping (clicking) on the desktop icon.

- Using a touch screen it is sometimes hard to do a double click so you can also start piHPSDR by tapping on Menu and then tapping on Other and then tapping on piHPSDR.


(3.) Disable Raspberry PI Screen Blanking

- Using a mouse or the touchscreen:

- Select Menu->Preferences->Screensaver

- On the Display Modes tab set the Mode to Disable Screen Saver


(4.) Auto start piHPSDR when the system is booted

- If you want to set up the system so that pihpsdr starts automatically when the system is booted do the following from either an ssh connection or a terminal window screen:

nano ~/.config/lxsession/LXDE-pi/autostart

- Add the following line to the end of the file:

@/home/pi/pihpsdr/start_pihpsdr.sh

- And save the file.

- The next time you boot the system it will start the piHPSDR app.


(5.) Updating piHPSDR

- You can update the piHPSDR with the latest version of the software by repeating step 2 above. It will overwrite the pihpsdr binary and the shared libraries. Running the install.sh script will copy the updated libraries.

- It will not overwrite or remove the FFTW3 wisdom file (wdspWisdom) or the radio configuration files which are stored as text files with the name made of the radio’s MAC address and the suffix .props (i.e. 00-04-A3-6A-1E-60.props).

(Updated 7-19-2017)




A very POOR partial parts list follow. I believe the numbers are eBay item numbers, if you care to search. (Sorry for the mess)

Feb 01, 2017 ORDER TOTAL US $4.49 Free shipping. 6 inch 40-Pin 2x20-Pin 2.54-Pitch Female 40Wire IDC Flat Ribbon Cable, FR-4006 azsales2010 ( 232194019326 )

Feb 07, 2017 US $3.99 + US $0.99 shipping. Order 4PCS 2.1mm x 5.5mm Male + Female Panel Mount DC Power Plug Socket Jack Connector 1 item sold by aply20 ( 182099736621 )

01, 2017 US $0.99 + US $2.77 shipping Order 3.5mm Female Stereo Audio Jack Connector panel mount - Pack of 5 View order 1 item sold by mdflyelectronics ( 381489125219 )

Jan 01, 2017 ORDER TOTAL US $2.58 + US $0.68 shipping. Order 4pcs Black Metal Dome Volume Tone Control Knob Electric Push-on Guitar Bass WB 1 item sold by wonderfulbuying36588 ( 302126610336 )

Dec 07, 2016 ORDER TOTAL US $5.99 + US $2.55 shipping. Order Rotary Encoder Breakout Board. 1 item sold by wide.hk ( 131710310284 )

Dec 07, 2016 ORDER TOTAL US $4.50 10pcs 12mm Dia 6mm Rotary Encoder Switch With Key Switch Electronic Components. 1 item sold by whitesibirien ( 121372361714 )

Dec 07, 2016 ORDER TOTAL US $13.99 + US $8.49 shipping. Order MDT-255B ABS Plastic Box Sloped Desktop Enclosure Hobby Electronic Project Case 1 item sold by bora_bt MDT-255B ABS Plastic Box Sloped Desktop Enclosure Hobby Electronic Project Case ( 161418539539 )

Dec 02, 2016 ORDER TOTAL US $6.90. Order DIY Proto HAT Shield for Raspberry Pi 2 Model B / B+ / A+ ( Red) F17254 1 item sold by fmt-model ( 272219065774 )

Dec 02, 2016 ORDER TOTAL US $0.99 + US $1.98 shipping. Order Mini 2.5-5V 2X3W Audio Class D Amplifier Board for Arduino Raspberry pi Mega UNO 1 item sold by e_goto ( 121043965077 )

Dec 02, 2016 ORDER TOTAL US $9.87. Order Raspberry Pi 3 Compatible PI3/PI2 model B HAT/Hole plate,prototyping board, FA 1 item sold by faaqii ( 361735734136 )


Well, that is about it for now! 73; -Mike- K0JTA

(Updated 7-19-2017)