The personal website of Scott W Harden
February 4th, 2011

Frequency Counter Working!

I'm ecstatic! Finally I built something that worked the first time. Well... on the 3rd attempt! The goal was to develop a minimal-cost, minimal complexity frequency counter suitable for amateur radio. Although I think I can still cut cost by eliminating components and downgrading the microcontroller, I'm happy with my first working prototype.

I haven't tested it rigorously with anything other than square waves, but I imagine that anything over 1PPV is sufficient (the input is through a bypass capacitor, internally biased right at the trigger threshold). Counting is accomplished by a 74LV8154N (dual 16-bit counter configured as 32-bit) which displays the count as four selectable bytes presented on 8 parallel pins. The heart of the device is an ATMega16 which handles multiplexing of the display and has a continuously-running 16-bit timer which, upon overflowing, triggers a reset of the counter and measurement of the output. Software isn't perfect (you can see the timing isn't accurate) but I imagine its inaccuracy can be measured and is a function of frequency such that it can be corrected via software. Here are some photos...

A PCB is DESPERATELY needed. I'll probably make one soon. Once it's a PCB, the components are pretty much drop-in and go! No wires! It'll be a breeze to assemble in 5 minutes. I wonder if it would make a fun kit? It would run on a 9V battery of course, but a calculator-like LCD (rather than LED) display would be ultra-low-current and might make a good counter for field operation (3xAAA batteries would last for months!)

UPDATE: I found out that the ATMega16 donation was from my friend Obulpathi, a fellow Gator Amateur Radio Club member! He also gave me a pair of ATMega32 chips. Thanks Obul!

Markdown source code last modified on January 18th, 2021
---
title: Frequency Counter Working!
date: 2011-02-04 21:26:26
tags: microcontroller, circuit, old
---

# Frequency Counter Working!

__I'm ecstatic!__ Finally I built something that worked the first time.  Well... on the 3rd attempt! The goal was to develop a minimal-cost, minimal complexity frequency counter suitable for amateur radio. Although I think I can still cut cost by eliminating components and downgrading the microcontroller, I'm happy with my first working prototype.

![](https://www.youtube.com/embed/heIkWcM9n0Q)

![](https://www.youtube.com/embed/EVZcyYnUipQ)

__I haven't tested it rigorously __ with anything other than square waves, but I imagine that anything over 1PPV is sufficient (the input is through a bypass capacitor, internally biased right at the trigger threshold).  Counting is accomplished by a 74LV8154N  (dual 16-bit counter configured as 32-bit) which displays the count as four selectable bytes presented on 8 parallel pins. The heart of the device is an ATMega16 which handles [multiplexing of the display](http://en.wikipedia.org/wiki/Multiplexed_display) and has a continuously-running 16-bit timer which, upon overflowing, triggers a reset of the counter and measurement of the output.  Software isn't perfect (you can see the timing isn't accurate) but I imagine its inaccuracy can be measured and is a function of frequency such that it can be corrected via software.  Here are some photos...

<div class="text-center img-border">

[![](IMG_5209_thumb.jpg)](IMG_5209.jpg)
[![](IMG_5222_thumb.jpg)](IMG_5222.jpg)
[![](IMG_5221_thumb.jpg)](IMG_5221.jpg)

</div>

__A PCB is DESPERATELY needed.__ I'll probably make one soon. Once it's a PCB, the components are pretty much drop-in and go! No wires! It'll be a breeze to assemble in 5 minutes. I wonder if it would make a fun kit? It would run on a 9V battery of course, but a calculator-like LCD (rather than LED) display would be ultra-low-current and might make a good counter for field operation (3xAAA batteries would last for months!)

_UPDATE: I found out that the ATMega16 donation was from my friend Obulpathi, a fellow Gator Amateur Radio Club member! He also gave me a pair of ATMega32 chips. Thanks Obul!_
February 3rd, 2011

Prototype Radio Receiver Improving Daily

This is the current state of my receiver. Unlike earlier designs this one uses NO VARIABLE CAPACITORS! This helps because (a) it reduces cost, (b) makes it easier to build for anyone (it's hard to hunt down identical variable capacitors), and (c) allows it to be totally voltage controlled so microchip or PC control of frequency becomes trivial. Tuning over the entire 40m band is achieved with 3 LEDs reverse biased acting as varactors (wow!). The knobs are potentiometers. The whole circuit runs on 5v.

Markdown source code last modified on January 18th, 2021
---
title: Prototype Radio Receiver Improving Daily
date: 2011-02-03 23:16:55
tags: amateur radio, old
---

# Prototype Radio Receiver Improving Daily

__This is the current state__ of my receiver. Unlike earlier designs this one uses NO VARIABLE CAPACITORS! This helps because (a) it reduces cost, (b) makes it easier to build for anyone (it's hard to hunt down identical variable capacitors), and (c) allows it to be totally voltage controlled so microchip or PC control of frequency becomes trivial. Tuning over the _entire_ 40m band is achieved with 3 LEDs reverse biased acting as varactors (wow!). The knobs are potentiometers. The whole circuit runs on 5v.

![](https://www.youtube.com/embed/ikBk_HQ48hc)
January 28th, 2011

Home-Brew Transceiver Taking Shape!

In the spirit of furthering my knowledge of AC circuity, I'm trying to build a 100% homebrew transceiver. Yeah, QRSS and ultra-weak signal, ultra-narrowband communications is still fun, but it's not the same thrill as actually engaging in real time communication with somebody! My goal is a transmitter / receiver in a box. The basic features I desire are (1) multiple bands (at least 40m, 30m, 20m), (2) FULL-band coverage, (3) direct conversion receiver, (4) 10W transmitter, (5) digital frequency display, (6) common standard components (nothing mechanical, no air variable capacitors, everything must be easily obtainable on sites like Mouser and DigiKey), (7) SMT capability, (8) inexpensive ($20 is my goal, but that's a tough goal!). My designs are changing daily, so I'm not going to waste time posting schematics every time I write on this blog, but here are some photos and videos of the product in its current state.

(I just found that last video - it was one of my favorite songs as a teenager, performed live!)

UPDATE: I got a cool dual 16-bit counter IC made by TI, a SN74LV8154N - very cheap, and can be configured as a 32-bit counter. It seemed like a better option than multiple 8-bit counters, and this chip is about $0.60 so if I can make it work I'll be happy! I breadboarded it up (see circuit diagram) and it seemed to work. I started wiring it on the perf board, but haven't written software for it yet...

UPDATE - I just found this video on youtube I never posted on my blog, so this seems like an appropriate location for it:

Markdown source code last modified on January 18th, 2021
---
title: Home-Brew Transceiver Taking Shape!
date: 2011-01-28 14:13:33
tags: circuit, microcontroller, old, amateur radio
---

# Home-Brew Transceiver Taking Shape!

__In the spirit of furthering my knowledge of AC circuity,__ I'm trying to build a 100% homebrew transceiver.  Yeah, QRSS and ultra-weak signal, ultra-narrowband communications is still fun, but it's not the same thrill as actually engaging in real time communication with somebody!  My goal is a transmitter / receiver in a box. The basic features I desire are (1) multiple bands (at least 40m, 30m, 20m), (2) FULL-band coverage, (3) direct conversion receiver, (4) 10W transmitter, (5) digital frequency display, (6) common standard components (nothing mechanical, no air variable capacitors, everything must be easily obtainable on sites like Mouser and DigiKey), (7) SMT capability, (8) inexpensive ($20 is my goal, but that's a tough goal!). My designs are changing daily, so I'm not going to waste time posting schematics every time I write on this blog, but here are some photos and videos of the product in its current state.

![](https://www.youtube.com/embed/LACpR1vIwWM)

![](https://www.youtube.com/embed/Cq-lnMONUe4)

<div class="text-center img-border">

[![](IMG_4994_thumb.jpg)](IMG_4994.jpg)
[![](IMG_5013_thumb.jpg)](IMG_5013.jpg)

</div>

![](https://www.youtube.com/embed/B-klfgb125o)

(I just found that last video - it was one of my favorite songs as a teenager, performed live!)

__UPDATE:__ I got a cool dual 16-bit counter IC made by TI, a SN74LV8154N - very cheap, and can be configured as a 32-bit counter. It seemed like a better option than multiple 8-bit counters, and this chip is about $0.60 so if I can make it work I'll be happy! I breadboarded it up (see circuit diagram) and it seemed to work. I started wiring it on the perf board, but haven't written software for it yet...

<div class="text-center img-border">

[![](IMG_5042_thumb.jpg)](IMG_5042.jpg)
[![](IMG_5039_thumb.jpg)](IMG_5039.jpg)
[![](IMG_5041_thumb.jpg)](IMG_5041.jpg)

</div>

__UPDATE__ - I just found this video on youtube I never posted on my blog, so this seems like an appropriate location for it:

![](https://www.youtube.com/embed/w2MJQakqI0M)
January 18th, 2011

A Taste of Culture

This blog has become too much about electronics. Yeah, electronics projects are good but there's more to life than electronics! Right now I'm in dental school and... [pause] oh, yeah I don't want to reflect on that. Let's talk electronics! I keep planning to eventually write what dental school is like from an honest perspective for its archival significance, but the thought of spending time writing about dental school makes my gut churn. There are so many other things to do than to reflect on "that place". My home is my escape, this website is my escape, and when I'm ready to talk, I'll talk. This is a note to myself to, at least once before I graduate, write what it's like to be in dental school. Back to tinkering. I leave you with a selection from Dvorak's Piano Quintet Number 2 (opus 81). It's not a wonderful recording, but I appreciate the performance.

EDIT: link updated in 2020 because original video is down. The referenced portion of the song is this video starting at 27:30.

Markdown source code last modified on January 18th, 2021
---
title: A Taste of Culture
date: 2011-01-18 20:47:01
---

# A Taste of Culture

__This blog has become too much about electronics.__ Yeah, electronics projects are good but there's more to life than electronics! Right now I'm in dental school and... [pause] oh, yeah I don't want to reflect on that.  Let's talk electronics!  I keep planning to eventually write what dental school is like from an honest perspective for its archival significance, but the thought of spending time writing about dental school makes my gut churn. There are so many other things to do than to reflect on "that place".  My home is my escape, this website is my escape, and when I'm ready to talk, I'll talk. This is a note to myself to, at least once before I graduate, write what it's like to be in dental school.  Back to tinkering.  I leave you with a selection from Dvorak's Piano Quintet Number 2 (opus 81). It's not a wonderful recording, but I appreciate the performance. 

![](https://www.youtube.com/embed/eFMV63zy-Xk)

EDIT: link updated in 2020 because original video is down. The referenced portion of the song is this video starting at 27:30.
January 16th, 2011

First Homebrew QSO Ever!

Today is a very special day, as it's the day I first made a contact with a radio transmitter I built completely on my own! The plans were copied from no where (although the concepts were obviously learned elsewhere), so it's somewhat of a unique design (likely because it's not very good!). I'll be the first to admit there is MUCH room for improvement, but my goal was to design and build a multi-band transmitter which would produce RF (not necessarily efficiently) at multiple bands by dropping in crystals of different frequencies.

My first QSO was with Bob, KC8MFF in West Virginia at 5pm today on 7MHz. He heard me calling CQ and replied! He gave me a 559 which made my happy. I was sending about 8 watts at the time into a Mosley Pro 67 Yagi at 180FT and receiving from a 40m dipole at 150FT at the W4DFU Gator Amateur Radio Club station in Gainesville, FL. Although he's was about 650 miles away, I hope to make a more significant contact as the band opens up later tonight. It's such an exciting feeling! The aluminum plate gets very hot (even with the fan) and there's a slight smell of smoke whenever I transmit, but it adds to the fun I guess! Here's some information about the build, though I'm confident it's less than optimal.

I'll preface this by stating that my goal was to produce an experimental platform which I could use to investigate construction techniques of small moderate-power transmitters. This is by no means a finished product! Much work (and some math) must be done to calculate the best number of turns on each coil for each band, including the RF choke on the power (resulting in class C amplifier behavior), the RF transformer, and the inductor/capacitor values of the low pass filter - all of which were determined empirically (watching output on an oscilloscope while adding/removing turns on a toroid). At 10W, it's not QRP, but it's easy to tone down to QRP (5W levels).

One of my desires was to create a transmitter which could be built at minimal cost (total value of this is probably about $10). The microcontroller (ATTiny2313) was what I had on hand ($2), the buffer chip acts as a small amplifier ($0.50), and the power amplifiers are IRF510 MOSFETs ($1). The rest of the components are junkbox, and their values aren't really significant! The power supply is a 19V 3.6A power supply from an old laptop - small, convenient, awesome! Hopefully with some tweaking I'll have a nice transmitter which I'm proud to share and have replicated...

The overall schematic represents a crystal clocking a microcontroller at the transmit frequency, where the CKOUT fuse has been set, producing 5PPV square waves. These trigger an inverting buffer which (a) amplifies the current of the signal and (b) provides an easy source of inverted signal. The two (inverse) signals then fire a pair of IRF510s in tandem, each acting as a Class C amplifier producing about 60PPV waves (not quite as square-ish). The output is low-pass filtered with a Pi filter (3 pole Chebyschev), then sent to an antenna. Nothing special has been done to match the output to the antenna, so SWR with a 50ohm load is currently a bit high, but I imagine a variable capacitor on the output LPF would give me something to adjust to improve this. I should probably go back to square 1 and re-do the math from start to finish and follow my impedance values more closely.

Future work will be invested into adding an iambic keyer property to the microcontroller, as well as a button to send CQ at various speeds. It may be interesting to clock this from a Si570 digital synthesizer, allowing me to transmit on any frequency and no longer be crystal-bound. Additionally, using the same oscillator source to power a direct conversion receiver would yield obvious benefit, allowing transmit/receive from a home-brew device at minimal cost. Currently, I'm locked into using a commercial rig as a receiver. We'll see how it goes...

Anyhow, that's that. I wanted to document this because I know I'll look back in the future and laugh at how poorly designed this project is. I'm just amazed it works, and for now this represents a gigantic step step in my learning and growth as an engineer. As poorly designed as it may be, it's something I'm very, very proud of!

Great inspiration has come from Wes Hayward's Experimental Methods in RF Design text. I've been checking it out from the library every few weeks (Interlibrary Loan, from Vanderbilt University to the University of Florida) but I finally got my own copy for Christmas. It's such a great resource! The IRF510 push-pull idea came from figure 2.101.

PS: The image below is of a MOSFET I exploded in the development process. Too much current... oops!

Markdown source code last modified on January 18th, 2021
---
title: First Homebrew QSO Ever!
date: 2011-01-16 18:39:32
tags: amateur radio, circuit, old
---

# First Homebrew QSO Ever!

__Today is a very special day,__ as it's the day I first made a contact with a radio transmitter I built completely on my own! The plans were copied from no where (although the concepts were obviously learned elsewhere), so it's somewhat of a unique design (likely because it's not very good!). I'll be the first to admit there is MUCH room for improvement, but my goal was to design and build a multi-band transmitter which would produce RF (not necessarily efficiently) at multiple bands by dropping in crystals of different frequencies.

![](https://www.youtube.com/embed/u4nI0cwSP0Q)

__My first QSO was with Bob, KC8MFF in West Virginia at 5pm today on 7MHz.__ He heard me calling CQ and replied! He gave me a 559 which made my happy. I was sending about 8 watts at the time into a Mosley Pro 67 Yagi at 180FT and receiving from a 40m dipole at 150FT at the W4DFU Gator Amateur Radio Club station in Gainesville, FL.  Although he's was about 650 miles away, I hope to make a more significant contact as the band opens up later tonight. It's such an exciting feeling! The aluminum plate gets very hot (even with the fan) and there's a slight smell of smoke whenever I transmit, but it adds to the fun I guess!  Here's some information about the build, though I'm confident it's less than optimal.

<div class="text-center img-border">

[![](IMG_4946_thumb.jpg)](IMG_4946.jpg)

</div>

__I'll preface this by stating__ that my goal was to produce an _experimental platform_ which I could use to _investigate_ construction techniques of small moderate-power transmitters. This is by no means a finished product! Much work (and some math) must be done to calculate the best number of turns on each coil for each band, including the RF choke on the power (resulting in class C amplifier behavior), the RF transformer, and the inductor/capacitor values of the low pass filter - all of which were determined empirically (watching output on an oscilloscope while adding/removing turns on a toroid). At 10W, it's not QRP, but it's easy to tone down to QRP (5W levels). 

<div class="text-center">

[![](30m_40m_80m_transmitter_10watt_aj4vd_thumb.jpg)](30m_40m_80m_transmitter_10watt_aj4vd.jpg)

</div>

One of my desires was to create a transmitter which could be built at minimal cost (total value of this is probably about $10). The microcontroller (ATTiny2313) was what I had on hand ($2), the buffer chip acts as a small amplifier ($0.50), and the power amplifiers are IRF510 MOSFETs ($1). The rest of the components are junkbox, and their values aren't really significant! The power supply is a 19V 3.6A power supply from an old laptop - small, convenient, awesome! Hopefully with some tweaking I'll have a nice transmitter which I'm proud to share and have replicated...

<div class="text-center img-border">

[![](IMG_4928_thumb.jpg)](IMG_4928.jpg)

</div>

__The overall schematic__ represents a crystal clocking a microcontroller at the transmit frequency, where the CKOUT fuse has been set, producing 5PPV square waves. These trigger an inverting buffer which (a) amplifies the current of the signal and (b) provides an easy source of inverted signal. The two (inverse) signals then fire a pair of IRF510s in tandem, each acting as a Class C amplifier producing about 60PPV waves (not quite as square-ish). The output is low-pass filtered with a Pi filter (3 pole Chebyschev), then sent to an antenna. Nothing special has been done to match the output to the antenna, so SWR with a 50ohm load is currently a bit high, but I imagine a variable capacitor on the output LPF would give me something to adjust to improve this. I should probably go back to square 1 and re-do the math from start to finish and follow my impedance values more closely.

<div class="text-center img-border">

[![](IMG_4939_thumb.jpg)](IMG_4939.jpg)

</div>

__Future work will be invested into__ adding an iambic keyer property to the microcontroller, as well as a button to send CQ at various speeds. It may be interesting to clock this from a Si570 digital synthesizer, allowing me to transmit on any frequency and no longer be crystal-bound. Additionally, using the same oscillator source to power a direct conversion receiver would yield obvious benefit, allowing transmit/receive from a home-brew device at minimal cost. Currently, I'm locked into using a commercial rig as a receiver. We'll see how it goes... 

<div class="text-center img-border">

[![](IMG_4940_thumb.jpg)](IMG_4940.jpg)

</div>

__Anyhow,__ that's that. I wanted to document this because I know I'll look back in the future and laugh at how poorly designed this project is. I'm just amazed it works, and for now this represents a gigantic step step in my learning and growth as an engineer. As poorly designed as it may be, it's something I'm very, very proud of!

__Great inspiration__ has come from Wes Hayward's [Experimental Methods in RF Design](http://www.amazon.com/Experimental-Methods-Design-Wes-Hayward/dp/087259923X/ref=sr_1_1?ie=UTF8&s=books&qid=1295289709&sr=8-1) text. I've been checking it out from the library every few weeks (Interlibrary Loan, from Vanderbilt University to the University of Florida) but I finally got my own copy for Christmas. It's such a great resource! The IRF510 push-pull idea came from figure 2.101.

__PS:__ The image below is of a MOSFET I exploded in the development process. Too much current... oops!

<div class="text-center img-border">

[![](mosfet_die_thumb.jpg)](mosfet_die.jpg)

</div>
Pages