Adding an “S”
meter function
Don
Cantrell, ND6T
Aside from
dressing up the display (taking up room is more like it) there is little use
for a signal strength indicator (“S” meter) unless it is accurate. Admittedly
this implementation is not accurate, merely a nod to the notion. That said, it
does work as well as a few “store-bought” rigs that I have used. Since it is
simple and easy, I will pass it on for what it's worth.
Just three
components, none critical. I ran a lead from the “hot” side of the volume
control through a diode to an available analog port on the Nano® and paralleled
a 0.1uF capacitor with a 4.7 Megohm resistor from that port to ground. The
diode can be a silicon switching diode like a 1N914 or 1N4148 but a germanium
like a 1N32 will work better for the lower strength levels.
The reason for
the inaccuracy is primarily due to lack of the usual AGC circuitry. Normally
one just measures the AGC voltage and scales it to suit. This mod is simply
using the detected audio and then using a short-period peak hold circuit to
feed the micro-controller.
The code is
poorly done at this point but it met my low expectations. It currently resides
in lines
90 through 94 in
Version 1.0 of the BITX40_VFO.ino sketch. Please feel free to change it and
pass it along.de ND6T
Thanks for the Bitx hacks Don. Where is the Version 1.0 sketch located or do you have a copy to share? Thanks David KG7WFM
ReplyDeleteDavid: Just email me at ND6T@arrl.net and let me know which sketch you would like. I now have several including 60m. 73, -Don,ND6T
DeleteWERE IS THE SKETCH?
ReplyDeleteRINALDO:EMAIL ME AT ND6T@ARRL.NET THANK YOU
Delete-DON, ND6T
Hi Don ! Is it possible to get the raduino-sketch with the "s-meter" function from you or could i dowload it somewhere ?
ReplyDeleteCurrent SW-Version here is 1.01.
Thanks de Gernot DM1VA
wht may be a good alternative for the 1n32 diode?
ReplyDeleteMenashe,
ReplyDeleteAn NTE110mp, a 1N60-5, 1N60NMP,or a 1N60P-1 should work. Or you could use a Schottky signal diode but be prepared to change the software to compensate for the different forward barrier voltage. -Don, ND6T
Hola Don me podria enviar el codigo para el s-meter rmoyam@gmail.com
ReplyDeleteGreat and I have a neat offer you: How To Become A House Renovation in house renovations
ReplyDelete