Iambic Firmware for the Peaberry (Release Thread)

General discussion and support for the Peaberry SDR V2.

Iambic Firmware for the Peaberry (Release Thread)

Postby W4MMP » Thu Oct 02, 2014 2:22 am

Hi,

(All information and downloads regarding the Peaberry CW/Iambic firmware is now available at: https://peaberryv2iambic.codeplex.com/ )


A new version of the Peaberry firmware is available. The firmware now supports Iambic key functions directly at the keyer port. It also has limited sound generation support at the ATU port. David's Iambino (Iambic Keyer Shield) firmware for the Arduino has been incorporated into the Peaberry firmware. The new firmware is completely backwards compatible with the original firmware. It supports the CW mode options of the previous CW firmware . If none of the CW/Iambic functions are enabled there is no difference between David's original version and this version. The iambic functions are not quite as full featured as the original Iambino firmware due to certain constraints that the Peaberry in conjunction with HDSDR present. Continuously variable speed is not available. Message memory is not available (yet). For those of you who have tried out the previous CW firmware version, operational configuration operations remain the same. Configuring the iambic features uses "magic numbers" as the previous CW version. Except for the sound feature, all iambic configuration options are stored in the Peaberry's flash memory. They remain persistent across power cycles.

Sound support. Limited sound generation support is available at the ATU port. There are two methods of sound generation available. "External Sound" generation requires an external audio oscillator be attached to the ATU port. The ATU port will be keyed at the CW rate which in turn may toggle an external audio oscillator on and off. A sample schematic is attached to this post (Thanks to Art / WB8ENE). The second method is "Internal Sound" generation. This produces a crude square wave at approximately 600Hz at the ATU port. It is left up to creative hams out there to figure out a circuit to clean up the square wave and make a more pleasing sound.
WARNING: ONLY USE THE ATU_1 (RING) CONNECTION OF THE ATU PORT. THERE IS NO ISOLATION OF ANY TYPE ON THE ATU_0 (TIP) CONNECTION. APPLYING A 12V LEVEL ON THIS PIN MAY VERY POSSIBLY FRY THE PSoC. ONLY A 4K RESISTOR IS BETWEEN THE EXTERNAL CONNECTION AND THE ATU_0 PIN OF THE PSoC. WHEN USING A 3.5 STEREO CONNECTOR WITH THE ATU PORT, I SUGGEST CLIPPING THE CENTER SOLDER CONNECTOR. YOU HAVE BEEN WARNED. . The output of ATU_1 is via a NPN transistor so it has an element of isolation. However, I highly suggest that any circuit that is attached to the ATU_1 (ring) line be isolated with an optoisolator.
When the sound option is not configured for use, the ATU port functions normally and continues to support the T1 tuner.

Please find attached the new firmware and a sample HDSDR frequency manager file. HDSDR stores its frequency manger files known as user<x>.csv at [c:]\users\<username>\My Documents\HDSDR\CSV . Rename any of the user<x>.csv files and copy the attached csv file in its place. Replacing user5.csv is handy.
NOTE: This is the first BETA release of the firmware. I suspect there may be timing issues with the iambic CW generation. I have done my best to shake things out but a thorough shake down is needed by the folks interested in trying this release.

Please read David's explanation of the available iambic options at: https://github.com/AE9RB/iambino/blob/master/README.md . It will provide the back ground for the following information.
As with the previously CW firmware release the method for setting the various configuration options is by setting HDSDR LO to a magic number.

Here is the content of my HDSDR user5.csv file:
Name LO Tune
SOUND OFF 33999998 34009998 //Turns the sound function off for either internal or external. Restores T1 ATU functions
SOUND ON - EXTERNAL33999997 34010037
SOUND ON - INTERNAL33999995 34009995
IAMBIC MODE OFF 33999992 34009992
IAMBIC MODE ON 33999991 34009991
IAMBIC BUG 34444442 34454442
IAMBIC IAMBIC 34444441 34454441
IAMBIC STRAIGHT 34444443 34454443
IAMBIC ULTIMATIC 34444444 34454444
KEYING WEIGHT 0.30 34222220 34232220
KEYING WEIGHT 0.35 34222221 34232221
KEYING WEIGHT 0.40 34222222 34232222
KEYING WEIGHT 0.45 34222223 34232223
KEYING WEIGHT 0.50 34222224 34232224
KEYING WEIGHT 0.55 34222225 34232225
KEYING WEIGHT 0.60 34222226 34232226
KEYING WEIGHT 0.65 34222227 34232227
KEYING WEIGHT 0.70 34222228 34232228
PADDLES NORMAL 34333331 34343331
PADDLES REVERSE 34333332 34343332
SPACING CHARACTER 34555551 34565551
SPACING ELEMENT 34555552 34565552
SPACING NONE 34555553 34565553
SPACING WORD 34555554 34565554
SPEED 10 WPM 34888882 34888882
SPEED 13 WPM 34888883 34888883
SPEED 15 WPM 34888884 34888885
SPEED 18 WPM 34888885 34888886
SPEED 20 WPM 34888886 34888887
SPEED 25 WPM 34888887 34888888
SPEED 30 WPM 34888888 34888889
SPEED 35 WPM 34888889 34888890
SPEED 5 WPM 34888880 34888880
SPEED 7.5 WPM 34888881 34888881
CALIBRATE IAMBIC -1% 34999994 35009994 //These will adjust the overall keying speed, if for some reason your Peaberry's clock rate is off. (Really should not need these, but...)
CALIBRATE IAMBIC -2% 34999993 35009993
CALIBRATE IAMBIC -3% 34999992 35009992
CALIBRATE IAMBIC -4% 34999991 35009991
CALIBRATE IAMBIC -5% 34999990 35009990
CALIBRATE IAMBIC +1% 34999996 35009996
CALIBRATE IAMBIC +2% 34999997 35009997
CALIBRATE IAMBIC +3% 34999998 35009998
CALIBRATE IAMBIC +4% 34999999 35009999
CALIBRATE IAMBIC +5% 34999910 35009910
CALIBRATE IAMBIC DEFAULT 34999995 35009995
MEMORY TYPE A 34444445 34454445
MEMORY TYPE DASH 34444446 34454446
MEMORY TYPE DIT 34444447 34454447
MEMORY TYPE B 34444448 34454448

oscillator_cr.png
oscillator_cr.png (3.3 KiB) Viewed 16305 times
Attachments
user5.zip
HDSDR user<x>.csv
(717 Bytes) Downloaded 673 times
Last edited by W4MMP on Sat Dec 13, 2014 4:58 pm, edited 2 times in total.
73
Ron / W4MMP
W4MMP
 
Posts: 579
Joined: Fri Jan 03, 2014 3:31 pm
Location: Lovettsville, Virginia FM19EG

Re: Iambic Firmware for the Peaberry (Release Thread)

Postby W4MMP » Thu Oct 02, 2014 5:59 pm

I forgot to mention the defaults after a firmware upload are:
WPM 18
Paddles: Normal
Iambic mode: Iambic
Spacing: Element
Weight: .25
Memory: Type B
Sound: OFF
CW Mode: OFF
Iambic Mode: OFF

NOTE: Turning Iambic Mode ON will also turn CW Mode ON.
Turning CW mode OFF will NOT turn Iambic mode OFF.

The next release will have a reset option to restore the defaults, and the CW, Iambic and sound configurations will be stored in flash.
73
Ron / W4MMP
W4MMP
 
Posts: 579
Joined: Fri Jan 03, 2014 3:31 pm
Location: Lovettsville, Virginia FM19EG

Re: Iambic Firmware for the Peaberry (Release Thread)

Postby W4MMP » Fri Oct 03, 2014 4:18 pm

Hi,

An updated version is available. This release stores all configuration parameters in flash memory. All configuration parameters are now persistent across power cycles. It also makes available a master parameter reset to reset all parameters to default. Please add the following LO magic number to your user<x>.cvs frequency file:
RESET - DEFAULTS 33999999

The firmware and source is located at: http://peaberryv2iambic.codeplex.com/ . This version is still BETA.
73
Ron / W4MMP
W4MMP
 
Posts: 579
Joined: Fri Jan 03, 2014 3:31 pm
Location: Lovettsville, Virginia FM19EG

Re: Iambic Firmware for the Peaberry (Release Thread)

Postby W4MMP » Mon Oct 06, 2014 9:04 pm

A new version of the firmware has been released. Please see: https://peaberryv2iambic.codeplex.com/

This release corrects a number of issues.
1) The bootloader is now consistent with PSoC Creator 3 SP1.
2) The bootloader now displays "LOAD" when the Peaberry is in bootloader mode (the boot jumper is in the boot position). This is to differentiate between the original firmware and the CW/Iambic Firmware.
NOTE: The verification routine of both miniprog3 and bootloader host will fail with one memory block failing. This is due to a bug in PSoC Creator 3. The firmware does in fact load and runs without error. It is only bug in the verification routine.

3) Prior to this release setting Iambic mode to OFF AND CW mode was already OFF, would turn CW mode on. This is fixed.
73
Ron / W4MMP
W4MMP
 
Posts: 579
Joined: Fri Jan 03, 2014 3:31 pm
Location: Lovettsville, Virginia FM19EG

Re: Iambic Firmware for the Peaberry (Release Thread)

Postby W4MMP » Tue Oct 07, 2014 12:24 pm

So, are we there yet ;) ??
73
Ron / W4MMP
W4MMP
 
Posts: 579
Joined: Fri Jan 03, 2014 3:31 pm
Location: Lovettsville, Virginia FM19EG

Re: Iambic Firmware for the Peaberry (Release Thread)

Postby WB8ENE » Tue Oct 07, 2014 4:11 pm

Ron,

I haven't updated the firmware in my Peaberry V2 since your original release, but I look forward to trying the latest version, possibly this weekend. I did make a few more CW contacts using HDSDR. I was using the AutoHotkey script you wrote, and I must have double hit the space bar or something, and confused it. It wouldn't go into transmit properly until I re-ran the script. This happened in the middle of a QSO, but I managed to recover quickly. I tried making a few contacts in the California QSO party on SSB, but I guess 2 watts on 20 meters wasn't quite enough to break through the QRM. I'm now considering the Hardrock-50, but want to make sure the input SWR (without the pre-amp board installed) is reasonable on 20, 30, 40, and 60 meters. I almost always use a straight key for CW, so that's why I haven't been in too much of a hurry to try out your latest releases. Thanks for all of your hard work. You are a firmware generating machine! .... ..

73,
Art WB8ENE
WB8ENE
 
Posts: 47
Joined: Fri Jan 24, 2014 12:35 pm

Re: Iambic Firmware for the Peaberry (Release Thread)

Postby W4MMP » Tue Oct 07, 2014 6:01 pm

WB8ENE wrote:Ron,

I haven't updated the firmware in my Peaberry V2 since your original release, but I look forward to trying the latest version, possibly this weekend. I did make a few more CW contacts using HDSDR. I was using the AutoHotkey script you wrote, and I must have double hit the space bar or something, and confused it. It wouldn't go into transmit properly until I re-ran the script. This happened in the middle of a QSO, but I managed to recover quickly. I tried making a few contacts in the California QSO party on SSB, but I guess 2 watts on 20 meters wasn't quite enough to break through the QRM. I'm now considering the Hardrock-50, but want to make sure the input SWR (without the pre-amp board installed) is reasonable on 20, 30, 40, and 60 meters. I almost always use a straight key for CW, so that's why I haven't been in too much of a hurry to try out your latest releases. Thanks for all of your hard work. You are a firmware generating machine! .... ..

73,
Art WB8ENE


Hi Art,
Try HDSDR control-shift-U key combo. Set HDSDR to CW mode and simply entry the key combo (in or out of transmit mode, it doesn't matter). From there on out the carrier will be generated when ever HDSDR is in transmit mode. I find it much more convenient than the AutoHotKey thing.

Yes, when you have a chance please try out the iambic mode. Naturally I'm curious get feedback from others who are more proficient with CW than I. (18WPM max on a VERY good day, for me).

As for the Hardrock-50, if their 5W driver is any indication of the quality of their equipment, I don't think you can go wrong. I have 5W driver and it is perfect. The folks there even modified the filter for me so the cut off is just above 15M.

Thanks and you are very welcome. I really do hope the new firmware has some utility for the hams with Peaberrys.
Last edited by W4MMP on Wed Oct 08, 2014 9:05 pm, edited 1 time in total.
73
Ron / W4MMP
W4MMP
 
Posts: 579
Joined: Fri Jan 03, 2014 3:31 pm
Location: Lovettsville, Virginia FM19EG

Re: Iambic Firmware for the Peaberry (Release Thread)

Postby TerryFrench » Wed Oct 08, 2014 8:21 pm

HR-50 is great. Now there's an auto-tuner option (I should be done building it as soon as I recover from a nasty cold).
This is a great piece of HW, and not hard to build. My main "work" has been to move the driver to a separate box as it cannot fit into the amp anymore once the Auto-tuner is in. :-)
Note: I don't work for them, but the Peaberry and the HardRock-50 are 2 kits with great instructions, and IMO great support.
TerryFrench
 
Posts: 106
Joined: Thu Oct 17, 2013 3:56 am
Location: Redmond, WA USA

Re: Iambic Firmware for the Peaberry (Release Thread)

Postby TerryFrench » Wed Oct 08, 2014 8:29 pm

HR-50 is great. Now there's an auto-tuner option (I should be done building it as soon as I recover from a nasty cold).
This is a great piece of HW, and not hard to build. My main "work" has been to move the driver to a separate box as it cannot fit into the amp anymore once the Auto-tuner is in. :-)
Note: I don't work for them, but the Peaberry and the HardRock-50 are 2 kits with great instructions, and IMO great support.
TerryFrench
 
Posts: 106
Joined: Thu Oct 17, 2013 3:56 am
Location: Redmond, WA USA

Re: Iambic Firmware for the Peaberry (Release Thread)

Postby W4MMP » Sat Oct 11, 2014 5:57 pm

Hi,

For those interested I am considering implementing message memory. The configuration I envision will have two memory slots. I would like opinions on what the two should contain.
The first memory slot I think most would agree should be: " CQ CQ CQ de <call sign> <call sign> <call sign> K" . What should the second contain?

Restrictions. The first implementation will only allow the user to input a call sign. It will fill in the <call sign> memory variable.

This all off the top of my head at the moment. The method for implementing this is perhaps:
Scenario 1):
1) Attach a push button switch to the ATU-0 line. Via magic numbers select memory slot one or two. A brief press of the push button will play back the memory slot.
2) To record your call sign: Press and hold the switch for 3 seconds and then using a paddle and iambic mode record your call sign.
Scenario 2)
1) Select the memory slot via a magic number. Hit the "dit" paddle to initiate play back.
2) To record you call sign, select memory store via a magic number.

For either scenario, there will be an option again via a magic number to configure the number of times a message played back before returning control to the operator.


All this is a bit tricky due to the limitations in the method for setting the configuration options in the Peaberry via HDSDR and magic numbers. I'm thinking of creating a new DLL that will interface directly with the Peaberry and still allow HDSDR to function properly. There are open source skeleton source code examples available for creating a DLL. The idea is that all the magic number stuff would be moved to the DLL with a separate Windows interface similar to and would replace the current ExtIO.DLL HDSDR requires.

Just kicking around ideas.
Thoughts?
73
Ron / W4MMP
W4MMP
 
Posts: 579
Joined: Fri Jan 03, 2014 3:31 pm
Location: Lovettsville, Virginia FM19EG

Next

Return to Peaberry SDR V2

Who is online

Users browsing this forum: No registered users and 5 guests

cron