Programming IO board (Quick Howto)

238 views
Skip to first unread message

niels jalling

unread,
May 5, 2025, 11:07:46 PMMay 5
to Hermes-Lite
First setup pico programming environment.
I am using a Raspberry Pi4.

A very good description on how-to setup a pi pico development environment on a Raspberry Pi is here:
https://learn.arm.com/learning-paths/embedded-and-microcontrollers/rpi_pico/sdk/

When you have the HelloWorld example  blinking on your pico the next step is build one of the HL2IOBoard applications.

Download:
wget https://github.com/jimahlstrom/HL2IOBoard/archive/refs/heads/main.zip

Unzip:
unzip main.zip

Rename folder:
mv HL2IOBoard-main HL2IOBoard

Goto code build folder:
cd /HL2IOBoard/n1adj_hr50/build

Build application:
cmake ..
make

Copy application to pico:
cp main.uf2 /media/$USER/RPI-RP2/

73 de oz9ny, Niels

Dalton Williams

unread,
May 16, 2025, 11:41:17 AMMay 16
to niels jalling, Hermes-Lite
Niles and the group,

Thank you Niles for this excellent information ! ! !  I gave up on trying to use Windows and VS Code and purchased a Raspberry Pi and after months of frustration used your instructions and was successful in under an hour!!!

Now that I have successfully programed my Pico I have a question.

My code works and outputs the BCD code but changes only when I transmit or tune. I was hoping it would follow my selecting different bands when receiving without having to transmit or tune,

What am I missing?  

M:y working code is attached if anyone is interested or can help.

Thank Niles and everyone,

Dalton
W5EIM
Dalton Williams
DeFever 41 MV Easy Living
20 Years & 34,800 Miles on the water
Amateur Radio W5EIM
Capital Yacht Club Member
MTOA Member 
AGLCA Member



--
You received this message because you are subscribed to the Google Groups "Hermes-Lite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hermes-lite...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/hermes-lite/689581ef-6e1e-478d-a92f-8c0ada58ffcdn%40googlegroups.com.
Main.c

Clifford Heath

unread,
May 16, 2025, 5:54:04 PMMay 16
to Dalton Williams, niels jalling, Hermes-Lite
My code works and outputs the BCD code but changes only when I transmit or tune. I was hoping it would follow my selecting different bands when receiving without having to transmit or tune,

I think it would be a feature of your host software as to when the HL2 is told to change bands. What are you using at that end?

Clifford Heath

Mike Lewis

unread,
May 16, 2025, 6:01:05 PMMay 16
to Clifford Heath, Dalton Williams, niels jalling, Hermes-Lite

RX and TX frequencies can be sent out differently, as chosen by each app dev.  Ther can be up to 12 RX frequencies as I recall.

 

I set the rx_band = tx_band in my version of the code that generates BCD, passes though PTT, and forces Aux Rx jack for split IF on Xvtr bands 6M and higher.

 

K7MDL2/HL2_IO_BOARD_BCD: BCD and PTT outputs for the HL2 IO board designed by N2ADR. VHF band focused, modify to suit your needs.

 

Each SDR app handles the Aux RF differently.  Thetis and PiHPSDR (maybe Quick also now??) will handle it per band.

 

  • Mike K7MDL

--

You received this message because you are subscribed to the Google Groups "Hermes-Lite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hermes-lite...@googlegroups.com.

James Ahlstrom

unread,
May 19, 2025, 8:44:32 AMMay 19
to Hermes-Lite
Hello Dalton,

It is possible that your SDR software is not sending receive frequencies. Try using different SDR software to see if your code works with it. Or add printf() statements to see what is happening.

When you say it works when tuning, it looks like the Tx frequency is being sent correctly.

Jim
N2ADR

James Ahlstrom

unread,
May 19, 2025, 8:56:51 AMMay 19
to Hermes-Lite
Hello Dalton,

On second thought, that is not correct. If it works when tuning, the new Tx frequency is being sent when tuning. But if you change bands, the TX frequency will change too. So it seems that changing bands does not send the new Tx frequency. If changing bands sends the new Tx frequency, it does not mater if the Rx frequencies are sent. The changed Tx frequency will change the band in your code. See if your SDR software sends the new Tx frequency when changing bands.

Jim
N2ADR

Reply all
Reply to author
Forward
0 new messages