开云体育

bitx40/Raduino sketch version 1.3, now full documented.


Pavel Milanes Costa
 

开云体育

New Version of the sketch available,

Now with images, diagrams and adjusting tips, check out the new features.

v1.3

  • Fix for labels on second line not matching real functions (bug introduced during optimization in v1.2)
  • Fix for the diode drawn backwards in the smeter_mod.png file.
  • Fix for true calibration of the Si5351, not just a freq shift on different modes, now it applies a real calibration inside the lib (USB remains by shifting the VFO, LSB is truly calibrated)
  • We don't longer support the legacy CAL_BUTTON in A2, as every body knows how to calibrate via the FBUTTON button during runtime.
  • More code optimizations.
  • Added the image files for the AGC mod and the TX power meter.

You can check it out in the Github repository at:

73 de Pavel CO7WT.


El 22/06/17 a las 13:50, Pavel Milanes Costa escribió:

Hi to all.

Since I have now a [borrowed] real bit40v3_smd + raduino I can test and tune some things...

I have put together a test sketch based on the Allard's code version 1.15 (1.15 not 1.15.1) that has an S-meter for the RX part, I'm testing with the TX part [hardware] and playing [successfully!] with software controlled AGC...

What you get if you dare to test it:

  • Full compatibility with Allard's code.
  • Smaller code: you need to download the Si5351mcu lib, see readme and code.
  • Smeter on RX, see the simple hardware mod in the smeter-mod.png file.
  • TX power meter, is the same for the Smeter but need a hardware mod that is on test at the bench.
  • Software support for AGC (I'm tunning the hardware/software parameters, so no schematic for now: soon...)

All this mods can be incorporated on Allard's code once they are tested and requested.

Do you dare? :

73 de Pavel CO7WT.




 

Very interesting, I am looking forward to give it a try.

Any thoughts of supporting a tft display in the future?
Would be a great addition.

Thanks
VE1BWV
Joe


On Mon, Jun 26, 2017, 2:50 PM Pavel Milanes Costa <pavelmc@...> wrote:

New Version of the sketch available,

Now with images, diagrams and adjusting tips, check out the new features.

v1.3

  • Fix for labels on second line not matching real functions (bug introduced during optimization in v1.2)
  • Fix for the diode drawn backwards in the smeter_mod.png file.
  • Fix for true calibration of the Si5351, not just a freq shift on different modes, now it applies a real calibration inside the lib (USB remains by shifting the VFO, LSB is truly calibrated)
  • We don't longer support the legacy CAL_BUTTON in A2, as every body knows how to calibrate via the FBUTTON button during runtime.
  • More code optimizations.
  • Added the image files for the AGC mod and the TX power meter.

You can check it out in the Github repository at:

73 de Pavel CO7WT.


El 22/06/17 a las 13:50, Pavel Milanes Costa escribió:

Hi to all.

Since I have now a [borrowed] real bit40v3_smd + raduino I can test and tune some things...

I have put together a test sketch based on the Allard's code version 1.15 (1.15 not 1.15.1) that has an S-meter for the RX part, I'm testing with the TX part [hardware] and playing [successfully!] with software controlled AGC...

What you get if you dare to test it:

  • Full compatibility with Allard's code.
  • Smaller code: you need to download the Si5351mcu lib, see readme and code.
  • Smeter on RX, see the simple hardware mod in the smeter-mod.png file.
  • TX power meter, is the same for the Smeter but need a hardware mod that is on test at the bench.
  • Software support for AGC (I'm tunning the hardware/software parameters, so no schematic for now: soon...)

All this mods can be incorporated on Allard's code once they are tested and requested.

Do you dare? :

73 de Pavel CO7WT.




 

I think your sketch does fill in a few missing features in Allard's.
Were you planning on keeping your sketch synced with the most recent version of Allard's sketch (now v1.16)?

73 - AL? VE3RRD


Pavel Milanes Costa
 

El 28/06/17 a las 14:17, Al Duncan VE3RRD escribió:
I think your sketch does fill in a few missing features in Allard's.
Were you planning on keeping your sketch synced with the most recent version of Allard's sketch (now v1.16)?

73 - AL VE3RRD
Yes I do,

The thing is that here I have not full access (24/7) to the internet and I may be a little behind Allard's code (the time it takes to update the Allard's repository, process and update mine and then publish)

Most of the time I must be between 3 to 5 days behind ;-)

I have updated the code now, I nee to process it and update mine.

73 de Pavel CO7WT.


 

开云体育

Pavel?

What version ide are you using.?

Art



Sent from my iPhone

On Jun 26, 2017, at 11:51 AM, Pavel Milanes Costa <pavelmc@...> wrote:

New Version of the sketch available,

Now with images, diagrams and adjusting tips, check out the new features.

v1.3

  • Fix for labels on second line not matching real functions (bug introduced during optimization in v1.2)
  • Fix for the diode drawn backwards in the smeter_mod.png file.
  • Fix for true calibration of the Si5351, not just a freq shift on different modes, now it applies a real calibration inside the lib (USB remains by shifting the VFO, LSB is truly calibrated)
  • We don't longer support the legacy CAL_BUTTON in A2, as every body knows how to calibrate via the FBUTTON button during runtime.
  • More code optimizations.
  • Added the image files for the AGC mod and the TX power meter.

You can check it out in the Github repository at:

73 de Pavel CO7WT.


El 22/06/17 a las 13:50, Pavel Milanes Costa escribió:

Hi to all.

Since I have now a [borrowed] real bit40v3_smd + raduino I can test and tune some things...

I have put together a test sketch based on the Allard's code version 1.15 (1.15 not 1.15.1) that has an S-meter for the RX part, I'm testing with the TX part [hardware] and playing [successfully!] with software controlled AGC...

What you get if you dare to test it:

  • Full compatibility with Allard's code.
  • Smaller code: you need to download the Si5351mcu lib, see readme and code.
  • Smeter on RX, see the simple hardware mod in the smeter-mod.png file.
  • TX power meter, is the same for the Smeter but need a hardware mod that is on test at the bench.
  • Software support for AGC (I'm tunning the hardware/software parameters, so no schematic for now: soon...)

All this mods can be incorporated on Allard's code once they are tested and requested.

Do you dare? :

73 de Pavel CO7WT.




Pavel Milanes Costa
 

开云体育

I use the Arduino IDE 1.8.2,

But the compile engine only, I use the Geany Editor in Linux and the amake () script to handle the Geany - Arduino IDE linking for compile.

Why?

73 de Pavel CO7WT.

El 29/06/17 a las 12:12, Art Olson via Groups.Io escribió:

Pavel?

What version ide are you using.?

Art



Sent from my iPhone

On Jun 26, 2017, at 11:51 AM, Pavel Milanes Costa <pavelmc@...> wrote:

New Version of the sketch available,

Now with images, diagrams and adjusting tips, check out the new features.

v1.3

  • Fix for labels on second line not matching real functions (bug introduced during optimization in v1.2)
  • Fix for the diode drawn backwards in the smeter_mod.png file.
  • Fix for true calibration of the Si5351, not just a freq shift on different modes, now it applies a real calibration inside the lib (USB remains by shifting the VFO, LSB is truly calibrated)
  • We don't longer support the legacy CAL_BUTTON in A2, as every body knows how to calibrate via the FBUTTON button during runtime.
  • More code optimizations.
  • Added the image files for the AGC mod and the TX power meter.

You can check it out in the Github repository at:

73 de Pavel CO7WT.


El 22/06/17 a las 13:50, Pavel Milanes Costa escribió:

Hi to all.

Since I have now a [borrowed] real bit40v3_smd + raduino I can test and tune some things...

I have put together a test sketch based on the Allard's code version 1.15 (1.15 not 1.15.1) that has an S-meter for the RX part, I'm testing with the TX part [hardware] and playing [successfully!] with software controlled AGC...

What you get if you dare to test it:

  • Full compatibility with Allard's code.
  • Smaller code: you need to download the Si5351mcu lib, see readme and code.
  • Smeter on RX, see the simple hardware mod in the smeter-mod.png file.
  • TX power meter, is the same for the Smeter but need a hardware mod that is on test at the bench.
  • Software support for AGC (I'm tunning the hardware/software parameters, so no schematic for now: soon...)

All this mods can be incorporated on Allard's code once they are tested and requested.

Do you dare? :

73 de Pavel CO7WT.





 

开云体育

Pavel

Just a bit confused on the lab calibration statement. Do I understand no more manual if offset via function switch?

Art


Sent from my iPhone

On Jun 29, 2017, at 12:21 PM, Pavel Milanes Costa <pavelmc@...> wrote:

I use the Arduino IDE 1.8.2,

But the compile engine only, I use the Geany Editor in Linux and the amake () script to handle the Geany - Arduino IDE linking for compile.

Why?

73 de Pavel CO7WT.

El 29/06/17 a las 12:12, Art Olson via Groups.Io escribió:
Pavel?

What version ide are you using.?

Art



Sent from my iPhone

On Jun 26, 2017, at 11:51 AM, Pavel Milanes Costa <pavelmc@...> wrote:

New Version of the sketch available,

Now with images, diagrams and adjusting tips, check out the new features.

v1.3

  • Fix for labels on second line not matching real functions (bug introduced during optimization in v1.2)
  • Fix for the diode drawn backwards in the smeter_mod.png file.
  • Fix for true calibration of the Si5351, not just a freq shift on different modes, now it applies a real calibration inside the lib (USB remains by shifting the VFO, LSB is truly calibrated)
  • We don't longer support the legacy CAL_BUTTON in A2, as every body knows how to calibrate via the FBUTTON button during runtime.
  • More code optimizations.
  • Added the image files for the AGC mod and the TX power meter.

You can check it out in the Github repository at:

73 de Pavel CO7WT.


El 22/06/17 a las 13:50, Pavel Milanes Costa escribió:

Hi to all.

Since I have now a [borrowed] real bit40v3_smd + raduino I can test and tune some things...

I have put together a test sketch based on the Allard's code version 1.15 (1.15 not 1.15.1) that has an S-meter for the RX part, I'm testing with the TX part [hardware] and playing [successfully!] with software controlled AGC...

What you get if you dare to test it:

  • Full compatibility with Allard's code.
  • Smaller code: you need to download the Si5351mcu lib, see readme and code.
  • Smeter on RX, see the simple hardware mod in the smeter-mod.png file.
  • TX power meter, is the same for the Smeter but need a hardware mod that is on test at the bench.
  • Software support for AGC (I'm tunning the hardware/software parameters, so no schematic for now: soon...)

All this mods can be incorporated on Allard's code once they are tested and requested.

Do you dare? :

73 de Pavel CO7WT.





Pavel Milanes Costa
 

开云体育

Hi Art.

Maybe just I can't explain it wright, please correct me if I'm wrong in my statement. I'm a Spanish native OM and English is a second one to me; I will explain in deep here:

Spoiler: the calibration do work fine in the function button, just we use another more exact trick against the Si5351 clock, not just correcting the output by an offset.

In Allard's code it does not use the correction of the Si5351 lib, it just make a offset correction in Hz every time it needs to send a new freq to the Si5351. That's right and simple, as long as you don't depart to much from the calibrated frequency.

In the Raduino use case, being mono-band, with a span of about 600 Khz and our ears that aren't capable of sense a few Hz (or sub Hz) of difference, that approach is simple and fine. More over calibrating to mid band will minimize the error.

If you plan to use the Allard's code to handle other radio beside the bitx40 and it covers a few Mhz, let's say a old ham converted Furuno FS-1000 (real case, no just and example) that can cover 1 ~ 12 Mhz, that calibration trick is useless.

That is a OM friend's case, it has that radio and it converted it to ham bands, put together and Arduino + Si5351 and was using Allard's code... he calibrated iit against 7.315 kHz on 40m (Radio Catolica Mundial), then in 160, 80, 60 and 30m it was off but as much as 100'th of Hz in the worst case.

But I have the need to be mathematically correct and fix my friend error, now he calibrates against WWV in 10.000 Mhz and it's right on spot in the full range using my code.

For short: the calibrate function works by another more exact way, and the calibrate options remains on the firmware.

Please advice it the statement in thee readme/etc tell another story beside this to fix it.

73 de Pavel CO7WT
?

?
El 29/06/17 a las 16:05, Art Olson escribió:

Pavel

Just a bit confused on the lab calibration statement. Do I understand no more manual if offset via function switch?

Art


Sent from my iPhone

On Jun 29, 2017, at 12:21 PM, Pavel Milanes Costa <pavelmc@...> wrote:

I use the Arduino IDE 1.8.2,

But the compile engine only, I use the Geany Editor in Linux and the amake () script to handle the Geany - Arduino IDE linking for compile.

Why?

73 de Pavel CO7WT.

El 29/06/17 a las 12:12, Art Olson via Groups.Io escribió:
Pavel?

What version ide are you using.?

Art



Sent from my iPhone

On Jun 26, 2017, at 11:51 AM, Pavel Milanes Costa <pavelmc@...> wrote:

New Version of the sketch available,

Now with images, diagrams and adjusting tips, check out the new features.

v1.3

  • Fix for labels on second line not matching real functions (bug introduced during optimization in v1.2)
  • Fix for the diode drawn backwards in the smeter_mod.png file.
  • Fix for true calibration of the Si5351, not just a freq shift on different modes, now it applies a real calibration inside the lib (USB remains by shifting the VFO, LSB is truly calibrated)
  • We don't longer support the legacy CAL_BUTTON in A2, as every body knows how to calibrate via the FBUTTON button during runtime.
  • More code optimizations.
  • Added the image files for the AGC mod and the TX power meter.

You can check it out in the Github repository at:

73 de Pavel CO7WT.


El 22/06/17 a las 13:50, Pavel Milanes Costa escribió:

Hi to all.

Since I have now a [borrowed] real bit40v3_smd + raduino I can test and tune some things...

I have put together a test sketch based on the Allard's code version 1.15 (1.15 not 1.15.1) that has an S-meter for the RX part, I'm testing with the TX part [hardware] and playing [successfully!] with software controlled AGC...

What you get if you dare to test it:

  • Full compatibility with Allard's code.
  • Smaller code: you need to download the Si5351mcu lib, see readme and code.
  • Smeter on RX, see the simple hardware mod in the smeter-mod.png file.
  • TX power meter, is the same for the Smeter but need a hardware mod that is on test at the bench.
  • Software support for AGC (I'm tunning the hardware/software parameters, so no schematic for now: soon...)

All this mods can be incorporated on Allard's code once they are tested and requested.

Do you dare? :

73 de Pavel CO7WT.






 

开云体育

Pavel

Ok got it. I am using your code and library (mcu). The freq is spot on and when I look at the value of the lsb setting it reads -8000 ppm.?
Thanks?
Art

Sent from my iPhone

On Jun 29, 2017, at 4:36 PM, Pavel Milanes Costa <pavelmc@...> wrote:

Hi Art.

Maybe just I can't explain it wright, please correct me if I'm wrong in my statement. I'm a Spanish native OM and English is a second one to me; I will explain in deep here:

Spoiler: the calibration do work fine in the function button, just we use another more exact trick against the Si5351 clock, not just correcting the output by an offset.

In Allard's code it does not use the correction of the Si5351 lib, it just make a offset correction in Hz every time it needs to send a new freq to the Si5351. That's right and simple, as long as you don't depart to much from the calibrated frequency.

In the Raduino use case, being mono-band, with a span of about 600 Khz and our ears that aren't capable of sense a few Hz (or sub Hz) of difference, that approach is simple and fine. More over calibrating to mid band will minimize the error.

If you plan to use the Allard's code to handle other radio beside the bitx40 and it covers a few Mhz, let's say a old ham converted Furuno FS-1000 (real case, no just and example) that can cover 1 ~ 12 Mhz, that calibration trick is useless.

That is a OM friend's case, it has that radio and it converted it to ham bands, put together and Arduino + Si5351 and was using Allard's code... he calibrated iit against 7.315 kHz on 40m (Radio Catolica Mundial), then in 160, 80, 60 and 30m it was off but as much as 100'th of Hz in the worst case.

But I have the need to be mathematically correct and fix my friend error, now he calibrates against WWV in 10.000 Mhz and it's right on spot in the full range using my code.

For short: the calibrate function works by another more exact way, and the calibrate options remains on the firmware.

Please advice it the statement in thee readme/etc tell another story beside this to fix it.

73 de Pavel CO7WT
?

?
El 29/06/17 a las 16:05, Art Olson escribió:
Pavel

Just a bit confused on the lab calibration statement. Do I understand no more manual if offset via function switch?

Art


Sent from my iPhone

On Jun 29, 2017, at 12:21 PM, Pavel Milanes Costa <pavelmc@...> wrote:

I use the Arduino IDE 1.8.2,

But the compile engine only, I use the Geany Editor in Linux and the amake () script to handle the Geany - Arduino IDE linking for compile.

Why?

73 de Pavel CO7WT.

El 29/06/17 a las 12:12, Art Olson via Groups.Io escribió:
Pavel?

What version ide are you using.?

Art



Sent from my iPhone

On Jun 26, 2017, at 11:51 AM, Pavel Milanes Costa <pavelmc@...> wrote:

New Version of the sketch available,

Now with images, diagrams and adjusting tips, check out the new features.

v1.3

  • Fix for labels on second line not matching real functions (bug introduced during optimization in v1.2)
  • Fix for the diode drawn backwards in the smeter_mod.png file.
  • Fix for true calibration of the Si5351, not just a freq shift on different modes, now it applies a real calibration inside the lib (USB remains by shifting the VFO, LSB is truly calibrated)
  • We don't longer support the legacy CAL_BUTTON in A2, as every body knows how to calibrate via the FBUTTON button during runtime.
  • More code optimizations.
  • Added the image files for the AGC mod and the TX power meter.

You can check it out in the Github repository at:

73 de Pavel CO7WT.


El 22/06/17 a las 13:50, Pavel Milanes Costa escribió:

Hi to all.

Since I have now a [borrowed] real bit40v3_smd + raduino I can test and tune some things...

I have put together a test sketch based on the Allard's code version 1.15 (1.15 not 1.15.1) that has an S-meter for the RX part, I'm testing with the TX part [hardware] and playing [successfully!] with software controlled AGC...

What you get if you dare to test it:

  • Full compatibility with Allard's code.
  • Smaller code: you need to download the Si5351mcu lib, see readme and code.
  • Smeter on RX, see the simple hardware mod in the smeter-mod.png file.
  • TX power meter, is the same for the Smeter but need a hardware mod that is on test at the bench.
  • Software support for AGC (I'm tunning the hardware/software parameters, so no schematic for now: soon...)

All this mods can be incorporated on Allard's code once they are tested and requested.

Do you dare? :

73 de Pavel CO7WT.






Pavel Milanes Costa
 

开云体育


El 29/06/17 a las 16:36, Pavel Milanes Costa escribió:
Pavel

Just a bit confused on the lab calibration statement. Do I understand no more manual if offset via function switch?

Art

Now I realize your question in deep... sorry.

I removed the old (legacy) way of calibrating by shorting A2 (CAL_BUTTON) when powering on the radio in favor of the new via the FBUTTON while the radio is running.

Just that, it break old compatibility with former Raduino docs, but as far as I knows almost all people use Allard's code and knows the FBUTTON way.

73



 

开云体育

Pavel

I use the function button under settings, calibrate lsb and it reads -8000 ppl. All good? ?Can't change it. Not that I need to as it is on freq. sorry for my confusion?

Sent from my iPhone

On Jun 29, 2017, at 4:45 PM, Art Olson <olson339@...> wrote:

Pavel

Ok got it. I am using your code and library (mcu). The freq is spot on and when I look at the value of the lsb setting it reads -8000 ppm.?
Thanks?
Art

Sent from my iPhone

On Jun 29, 2017, at 4:36 PM, Pavel Milanes Costa <pavelmc@...> wrote:

Hi Art.

Maybe just I can't explain it wright, please correct me if I'm wrong in my statement. I'm a Spanish native OM and English is a second one to me; I will explain in deep here:

Spoiler: the calibration do work fine in the function button, just we use another more exact trick against the Si5351 clock, not just correcting the output by an offset.

In Allard's code it does not use the correction of the Si5351 lib, it just make a offset correction in Hz every time it needs to send a new freq to the Si5351. That's right and simple, as long as you don't depart to much from the calibrated frequency.

In the Raduino use case, being mono-band, with a span of about 600 Khz and our ears that aren't capable of sense a few Hz (or sub Hz) of difference, that approach is simple and fine. More over calibrating to mid band will minimize the error.

If you plan to use the Allard's code to handle other radio beside the bitx40 and it covers a few Mhz, let's say a old ham converted Furuno FS-1000 (real case, no just and example) that can cover 1 ~ 12 Mhz, that calibration trick is useless.

That is a OM friend's case, it has that radio and it converted it to ham bands, put together and Arduino + Si5351 and was using Allard's code... he calibrated iit against 7.315 kHz on 40m (Radio Catolica Mundial), then in 160, 80, 60 and 30m it was off but as much as 100'th of Hz in the worst case.

But I have the need to be mathematically correct and fix my friend error, now he calibrates against WWV in 10.000 Mhz and it's right on spot in the full range using my code.

For short: the calibrate function works by another more exact way, and the calibrate options remains on the firmware.

Please advice it the statement in thee readme/etc tell another story beside this to fix it.

73 de Pavel CO7WT
?

?
El 29/06/17 a las 16:05, Art Olson escribió:
Pavel

Just a bit confused on the lab calibration statement. Do I understand no more manual if offset via function switch?

Art


Sent from my iPhone

On Jun 29, 2017, at 12:21 PM, Pavel Milanes Costa <pavelmc@...> wrote:

I use the Arduino IDE 1.8.2,

But the compile engine only, I use the Geany Editor in Linux and the amake () script to handle the Geany - Arduino IDE linking for compile.

Why?

73 de Pavel CO7WT.

El 29/06/17 a las 12:12, Art Olson via Groups.Io escribió:
Pavel?

What version ide are you using.?

Art



Sent from my iPhone

On Jun 26, 2017, at 11:51 AM, Pavel Milanes Costa <pavelmc@...> wrote:

New Version of the sketch available,

Now with images, diagrams and adjusting tips, check out the new features.

v1.3

  • Fix for labels on second line not matching real functions (bug introduced during optimization in v1.2)
  • Fix for the diode drawn backwards in the smeter_mod.png file.
  • Fix for true calibration of the Si5351, not just a freq shift on different modes, now it applies a real calibration inside the lib (USB remains by shifting the VFO, LSB is truly calibrated)
  • We don't longer support the legacy CAL_BUTTON in A2, as every body knows how to calibrate via the FBUTTON button during runtime.
  • More code optimizations.
  • Added the image files for the AGC mod and the TX power meter.

You can check it out in the Github repository at:

73 de Pavel CO7WT.


El 22/06/17 a las 13:50, Pavel Milanes Costa escribió:

Hi to all.

Since I have now a [borrowed] real bit40v3_smd + raduino I can test and tune some things...

I have put together a test sketch based on the Allard's code version 1.15 (1.15 not 1.15.1) that has an S-meter for the RX part, I'm testing with the TX part [hardware] and playing [successfully!] with software controlled AGC...

What you get if you dare to test it:

  • Full compatibility with Allard's code.
  • Smaller code: you need to download the Si5351mcu lib, see readme and code.
  • Smeter on RX, see the simple hardware mod in the smeter-mod.png file.
  • TX power meter, is the same for the Smeter but need a hardware mod that is on test at the bench.
  • Software support for AGC (I'm tunning the hardware/software parameters, so no schematic for now: soon...)

All this mods can be incorporated on Allard's code once they are tested and requested.

Do you dare? :

73 de Pavel CO7WT.






Pavel Milanes Costa
 

开云体育

Hi Art.

The limits on the calibration was set to -8000 to + 8000 for my empiric values so you are getting (+) 8000 and that's top value. (My hardware needs +3670)

Try to move the dial control all way down to the left, as the code uses a function that limit the value and I noted now that can (must) be improved to show the real value on loading... as you move near the left edge the value must move down and will allow you to set the proper one.

That calibration routine has a incremental steps when in edges of the range, and I noted a bug now looking at the code in which the dial pot is not updated to the real value of the calibration when entering the procedure, I must fix that.

I will fix and check it as I'm at work and don't have the hardware at reach now.

73 and thanks for the tip/bug identification.

73 de Pavel CO7WT.

El 29/06/17 a las 16:57, Art Olson escribió:

Pavel

I use the function button under settings, calibrate lsb and it reads -8000 ppl. All good? ?Can't change it. Not that I need to as it is on freq. sorry for my confusion?

Sent from my iPhone

On Jun 29, 2017, at 4:45 PM, Art Olson <olson339@...> wrote:

Pavel

Ok got it. I am using your code and library (mcu). The freq is spot on and when I look at the value of the lsb setting it reads -8000 ppm.?
Thanks?
Art

Sent from my iPhone

On Jun 29, 2017, at 4:36 PM, Pavel Milanes Costa <pavelmc@...> wrote:

Hi Art.

Maybe just I can't explain it wright, please correct me if I'm wrong in my statement. I'm a Spanish native OM and English is a second one to me; I will explain in deep here:

Spoiler: the calibration do work fine in the function button, just we use another more exact trick against the Si5351 clock, not just correcting the output by an offset.

In Allard's code it does not use the correction of the Si5351 lib, it just make a offset correction in Hz every time it needs to send a new freq to the Si5351. That's right and simple, as long as you don't depart to much from the calibrated frequency.

In the Raduino use case, being mono-band, with a span of about 600 Khz and our ears that aren't capable of sense a few Hz (or sub Hz) of difference, that approach is simple and fine. More over calibrating to mid band will minimize the error.

If you plan to use the Allard's code to handle other radio beside the bitx40 and it covers a few Mhz, let's say a old ham converted Furuno FS-1000 (real case, no just and example) that can cover 1 ~ 12 Mhz, that calibration trick is useless.

That is a OM friend's case, it has that radio and it converted it to ham bands, put together and Arduino + Si5351 and was using Allard's code... he calibrated iit against 7.315 kHz on 40m (Radio Catolica Mundial), then in 160, 80, 60 and 30m it was off but as much as 100'th of Hz in the worst case.

But I have the need to be mathematically correct and fix my friend error, now he calibrates against WWV in 10.000 Mhz and it's right on spot in the full range using my code.

For short: the calibrate function works by another more exact way, and the calibrate options remains on the firmware.

Please advice it the statement in thee readme/etc tell another story beside this to fix it.

73 de Pavel CO7WT
?

?
El 29/06/17 a las 16:05, Art Olson escribió:
Pavel

Just a bit confused on the lab calibration statement. Do I understand no more manual if offset via function switch?

Art


Sent from my iPhone

On Jun 29, 2017, at 12:21 PM, Pavel Milanes Costa <pavelmc@...> wrote:

I use the Arduino IDE 1.8.2,

But the compile engine only, I use the Geany Editor in Linux and the amake () script to handle the Geany - Arduino IDE linking for compile.

Why?

73 de Pavel CO7WT.

El 29/06/17 a las 12:12, Art Olson via Groups.Io escribió:
Pavel?

What version ide are you using.?

Art



Sent from my iPhone

On Jun 26, 2017, at 11:51 AM, Pavel Milanes Costa <pavelmc@...> wrote:

New Version of the sketch available,

Now with images, diagrams and adjusting tips, check out the new features.

v1.3

  • Fix for labels on second line not matching real functions (bug introduced during optimization in v1.2)
  • Fix for the diode drawn backwards in the smeter_mod.png file.
  • Fix for true calibration of the Si5351, not just a freq shift on different modes, now it applies a real calibration inside the lib (USB remains by shifting the VFO, LSB is truly calibrated)
  • We don't longer support the legacy CAL_BUTTON in A2, as every body knows how to calibrate via the FBUTTON button during runtime.
  • More code optimizations.
  • Added the image files for the AGC mod and the TX power meter.

You can check it out in the Github repository at:

73 de Pavel CO7WT.


El 22/06/17 a las 13:50, Pavel Milanes Costa escribió:

Hi to all.

Since I have now a [borrowed] real bit40v3_smd + raduino I can test and tune some things...

I have put together a test sketch based on the Allard's code version 1.15 (1.15 not 1.15.1) that has an S-meter for the RX part, I'm testing with the TX part [hardware] and playing [successfully!] with software controlled AGC...

What you get if you dare to test it:

  • Full compatibility with Allard's code.
  • Smaller code: you need to download the Si5351mcu lib, see readme and code.
  • Smeter on RX, see the simple hardware mod in the smeter-mod.png file.
  • TX power meter, is the same for the Smeter but need a hardware mod that is on test at the bench.
  • Software support for AGC (I'm tunning the hardware/software parameters, so no schematic for now: soon...)

All this mods can be incorporated on Allard's code once they are tested and requested.

Do you dare? :

73 de Pavel CO7WT.