开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Calibration route


Jack Purdum
 

Interesting. When I put a scope on my Nano, it reads HIGH without a digitalWrite() call, which prevents the pin from floating. That said, mine is a clone, so perhaps there is a difference. As a rule, I do usually follow an INPUT_PULLUP for pinMode() with a digitalWrite(), but do that as a documentation courtesy. I'd be interested to know what someone sees with a "real" Nano.

Jack, W8TEE



From: DJ2AG <ya_duck@...>
To: [email protected]
Sent: Monday, March 27, 2017 10:41 AM
Subject: Re: [BITX20] Calibration route

Unfortunately the Arduino Digital Pin Tutorial is somewhat misleading ?in that it highlights the Pullup setup for older Arduino Versions in a box and only describes in the text how to do it the new way.
The correct way to enable internal pullup, as Jack has written is:?
pinMode(CAL_BUTTON, INPUT_PULLUP);
but it has to be followed by a
digitalWrite(CAL_BUTTON,HIGH);
to actually connect the internal?pullup resistor to 5V.





 

Perhaps the calibrate wire got shorted (to the 12v heatsink on the IRF510?) and blew the IO cell. ?Perhaps that IO cell is inside the mega328 ?in the Raduino's Nano is now sinking lots of extra current, dragging down the main 12v supply. ?The low 12v supply could cause problems with the audio amp. ?That's about the only reason I can see for these two problems to show up simultaneously.


On Sun, Mar 26, 2017 at 06:09 pm, College Professor Simon Thompson wrote:

Everything was working until I tried to calibrate the Bitx40. I grounded the red wire from the Raduino, the calibration routine launched, I zero beat the received frequency, disconnected the ground path. And then the radio stated to motorboat, and the screen will not stop displaying "Calibration: Set to Zero Beath: XXXX" and then the message changes to "Calibration: Set Offest: XXXX," and then the radio starts motor boating and there is a shrill tone coming out of the speaker. I disconnected everything, the reloaded the sketch and library, and reconnected everything, but the same message comes up when I restart it.

?


College Professor Simon Thompson
 

开云体育

Hi

My radio is drawing 150 mA when it is not keyed; it draws 350 mA when it is keyed, but that current flow does not change when I speak into the mic.?

The radio is running off a large car battery and the voltage is about 12.8 volts.

I tried to run 5 volts in into the Raduino via a resistor as suggested, but that had no effect.

The Raduino responds when I turn the tuning pot; the problem is that it never leaves that calibration offset screen.

I tried reloading a clean version of the sketch. It was verified and it uploaded with no problem.


On Mar 27, 2017, at 8:52 AM, Jerry Gaffke via Groups.Io <jgaffke@...> wrote:

Perhaps the calibrate wire got shorted (to the 12v heatsink on the IRF510?) and blew the IO cell. ?Perhaps that IO cell is inside the mega328 ?in the Raduino's Nano is now sinking lots of extra current, dragging down the main 12v supply. ?The low 12v supply could cause problems with the audio amp. ?That's about the only reason I can see for these two problems to show up simultaneously.


On Sun, Mar 26, 2017 at 06:09 pm, College Professor Simon Thompson wrote:

Everything was working until I tried to calibrate the Bitx40. I grounded the red wire from the Raduino, the calibration routine launched, I zero beat the received frequency, disconnected the ground path. And then the radio stated to motorboat, and the screen will not stop displaying "Calibration: Set to Zero Beath: XXXX" and then the message changes to "Calibration: Set Offest: XXXX," and then the radio starts motor boating and there is a shrill tone coming out of the speaker. I disconnected everything, the reloaded the sketch and library, and reconnected everything, but the same message comes up when I restart it.


?



 

I still think the pin used for calibration is damaged. And I think if you reassign another pin for calibration and upload it, it will work again. You just need to work around the I/O pin not receiving the signal to stop calibration mode.

What Jerry was talking about with shorting against the heatsink, is what happened to mine and his solution was go around to another I/O pin. And it worked perfectly. I just have to remember that code change when I compile another version.


 

That's very promising, those currents you measured are about right. ?Nothing's burning up. ?But I now have no idea why your audio started motorboating/skreeching at the same time as it got stuck in calibration mode. ?Very curious.


If you can compile and load a sketch to the Raduino, you could switch the calibration mode sense from A2 over to A0 as previously suggested. ?

Alternately, you could completely disable the check for calibration mode by replacing one line down at the top of the loop function (it's a zero, not the letter oohh):

old: ? ? ? if (digitalRead(CAL_BUTTON) == LOW && mode == MODE_NORMAL){

new: ? if (0){


If you don't want to go to a different calibration pin, you could just?


On Mon, Mar 27, 2017 at 10:48 am, College Professor Simon Thompson wrote:

My radio is drawing 150 mA when it is not keyed; it draws 350 mA when it is keyed, but that current flow does not change when I speak into the mic.?

?


College Professor Simon Thompson
 

开云体育

Hi everyone

Thank you to everyone who helped me try to solve the problem with my transceiver. I am happy, and grateful, to report that changing the code as suggested by some and uploading the altered sketch, in conjunction with moving the input wire to position 8, has fixed the problem.?

Now, I will see if I can make some contacts.

On Mar 27, 2017, at 12:45 PM, Jerry Gaffke via Groups.Io <jgaffke@...> wrote:

That's very promising, those currents you measured are about right. ?Nothing's burning up. ?But I now have no idea why your audio started motorboating/skreeching at the same time as it got stuck in calibration mode. ?Very curious.


If you can compile and load a sketch to the Raduino, you could switch the calibration mode sense from A2 over to A0 as previously suggested. ?

Alternately, you could completely disable the check for calibration mode by replacing one line down at the top of the loop function (it's a zero, not the letter oohh):

old: ? ? ? if (digitalRead(CAL_BUTTON) == LOW && mode == MODE_NORMAL){

new: ? if (0){


If you don't want to go to a different calibration pin, you could just?


On Mon, Mar 27, 2017 at 10:48 am, College Professor Simon Thompson wrote:

My radio is drawing 150 mA when it is not keyed; it draws 350 mA when it is keyed, but that current flow does not change when I speak into the mic.?
?



 

Did the audio motorboating/squealing also clear up? ?I'd be very surprised if moving the calibrate wire over to a new pin fixed the audio. ?Anyways, good job! ?It can be difficult and discouraging at times to get something like this sorted out.

Jerry, KE7ER


On Mon, Mar 27, 2017 at 06:11 pm, College Professor Simon Thompson wrote:

Thank you to everyone who helped me try to solve the problem with my transceiver. I am happy, and grateful, to report that changing the code as suggested by some and uploading the altered sketch, in conjunction with moving the input wire to position 8, has fixed the problem.?

?


College Professor Simon Thompson
 

开云体育

The motor boating is gone. The audio is now rather good.

Yes, last night I was pretty discouraged, but I woke up this morning and had a careful read of the suggestions, and when I got home from work this afternoon, put the fixes in to effect. The radiuino fired up perfectly, and the motorboating and other noises were gone. It wasn’t exactly the squealing or howling of feedback; it was more like a single tone that was continuously interrupted by the motor boating.

On Mar 27, 2017, at 6:42 PM, Jerry Gaffke via Groups.Io <jgaffke@...> wrote:

Did the audio motorboating/squealing also clear up? ?I'd be very surprised if moving the calibrate wire over to a new pin fixed the audio. ?Anyways, good job! ?It can be difficult and discouraging at times to get something like this sorted out.

Jerry, KE7ER


On Mon, Mar 27, 2017 at 06:11 pm, College Professor Simon Thompson wrote:

Thank you to everyone who helped me try to solve the problem with my transceiver. I am happy, and grateful, to report that changing the code as suggested by some and uploading the altered sketch, in conjunction with moving the input wire to position 8, has fixed the problem.?
?



 

Good to hear. ?But not clear how the calibrate wire could fix both, that motorboating might re-appear. ?If it does, jiggle the wires from board to pot, see if it's a loose connection like Graham had. ?/g/BITX20/message/24102? ? Also, would be interesting to know if the motorboating varies in volume when you twiddle the volume control.?


On Mon, Mar 27, 2017 at 07:35 pm, College Professor Simon Thompson wrote:

The motor boating is gone. The audio is now rather good.

?


Simon Thompson
 

开云体育

Yes, the motor boating varied in volume, but it seemed to me that the motor boating did not. I have a vague sense that the motor boating might have been somehow related to the relay nearest the antenna. When I pressed on it with my finger, the tone varied in pitch. The relay did not seem to be operating; I didn’t hear any clicking, but it was involved in the noise somehow.

The motor boating is completely gone; I cannot hear anything but what I would expect to hear from receiver.

I made my first QSO with it; VE7ECK, who lives a couple of blocks away. He said I was off frequency, so I will have to learn more about the correct procedure for calibrating the radio. When I tried a few minutes ago, the offset number varied, but it didn’t actually correspond to a frequency change in the VFO. The number would go up to something like +5000 and down to something like -5000, but the frequency never changed, so I am not actually able to calibrate the receiver. It’s probably something simple I am overlooking, but I will figure it out.

On Mar 27, 2017, at 7:57 PM, Jerry Gaffke via Groups.Io <jgaffke@...> wrote:

Good to hear. ?But not clear how the calibrate wire could fix both, that motorboating might re-appear. ?If it does, jiggle the wires from board to pot, see if it's a loose connection like Graham had. ?/g/BITX20/message/24102? ? Also, would be interesting to know if the motorboating varies in volume when you twiddle the volume control.?


On Mon, Mar 27, 2017 at 07:35 pm, College Professor Simon Thompson wrote:

The motor boating is gone. The audio is now rather good.
?



Simon Thompson
 

开云体育

The tone varied in volume, the motorboating did not. Sorry for the confusion.

On Mar 27, 2017, at 8:46 PM, Simon Thompson <simonthompson67@...> wrote:

Yes, the motor boating varied in volume, but it seemed to me that the motor boating did not. I have a vague sense that the motor boating might have been somehow related to the relay nearest the antenna. When I pressed on it with my finger, the tone varied in pitch. The relay did not seem to be operating; I didn’t hear any clicking, but it was involved in the noise somehow.

The motor boating is completely gone; I cannot hear anything but what I would expect to hear from receiver.

I made my first QSO with it; VE7ECK, who lives a couple of blocks away. He said I was off frequency, so I will have to learn more about the correct procedure for calibrating the radio. When I tried a few minutes ago, the offset number varied, but it didn’t actually correspond to a frequency change in the VFO. The number would go up to something like +5000 and down to something like -5000, but the frequency never changed, so I am not actually able to calibrate the receiver. It’s probably something simple I am overlooking, but I will figure it out.
On Mar 27, 2017, at 7:57 PM, Jerry Gaffke via Groups.Io <jgaffke@...> wrote:

Good to hear. ?But not clear how the calibrate wire could fix both, that motorboating might re-appear. ?If it does, jiggle the wires from board to pot, see if it's a loose connection like Graham had. ?/g/BITX20/message/24102? ? Also, would be interesting to know if the motorboating varies in volume when you twiddle the volume control.?


On Mon, Mar 27, 2017 at 07:35 pm, College Professor Simon Thompson wrote:

The motor boating is gone. The audio is now rather good.
?