The personal website of Scott W Harden

VD Labs

The VD Labs web page has been published! I hope that the new VD Labs page will be a single location where I can link to descriptions and downloads of useful radio, audio analysis, and QRSS-related software. It will eventually be the home of the next (recorded-from-scratch) version of QRSS VD, but let’s not get too far ahead of ourselves!

Since I ran out of steam from working so much on QRSS VD, I didn’t think I’d be publishing mush more “useful” software, but this one blind-sighted me. People on the Knights QRSS mailing list were talking about dividing QRSS transmissions into images which line up with the period of the transmitters repeated messages and projecting the images together in an attempt to average-out the noise, and boost the signal. It’s a simple idea, and it’s the basis behind how a lot of poor imaging devices can improve their output clarity by software (MRI anyone?). I was overwhelmed by dental school obligations the last few weeks, and it pained me so much to read what people were doing (or at least trying to do) and having to sit it out. Now that I have a free day (yay for weekends!) I sat down and wrote some code. I introduce VD Labs QRSS Stitcher and QRSS Stacker!

Converting Argo captures into continuous images:

example output:

Doing the same thing, with ultra-narrow images:

File produced:

Using QRSS Stacker to project images:

Another example output:


Hacking Together a Crystal Oven Part 2

With the last post’s promising results, I set out to finish my crystal oven prototype and affix it to my QRSS MEPT prototype. If everything works well, I’m ready to publish the final schematic and parts lists! (and make several MEPTs for people who were interested in having one). I’m not confident my approach to the heater was the best, and am already thinking of ways I could have improved on its performance, but I think this just might work! I’ll test it overnight (Styrofoam-enclosed vs. open air) and see how it does. I wonder if this is good enough to be used outside?

Minimalist Crystal Oven

So I’m working on building a crystal oven to keep my QRSS MEPT (radio transmitter) at an extremely stable frequency. Even inside a thick Styrofoam box, slight changes in my apartment temperature caused by the AC turning on and off is enough to change the crystal temperature of the transmitter, slightly modifying its oscillation frequency. For a device that vibrates exactly 10,140,070 times a second, even 3 to many or too few vibrations per second is too much. Keeping in the spirit of hacking things together with a minimum of parts, this is what I came up with!

It uses a thermistor, potentiometer, and comparator of a microcontroller (ATTiny44a) to tightly sense and regulate temperature. The heater element is a junk MOSFET I found in an old battery backup system. I simply have pass a ton of current (turned on/off by the gate) to generate heat, transferred into a piece of steel for smooth regulation. One of the unexpected advantages is that the light flickers rapidly near equilibrium, which is great because it has the ability to turn the heater on a little or a lot based upon the averaging effect of the flicker. Here is the code I wrote on the microcontroller to handle the comparator. It couldn’t be simpler!

#include <avr/io.h>
#include <util/delay.h>

int main(void)
    DDRA = 0;   // all inputs
    DDRB = 255; // all outputs

    while (1)
        if (ACSR & _BV(ACO))
            /* AIN0 is more positive than AIN1 right now */
            PORTB |= (1 << PB0);
            PORTB &= ~(1 << PB1);
            /* AIN0 is more negative than AIN1 */
            PORTB |= (1 << PB1);
            PORTB &= ~(1 << PB0);

Lost Project Revisited on HackADay

I somehow forgot about a cool project I made over a year ago! I guess dental school got in the way of my productivity. It’s a little ironic how the last post was about something I made a year ago screwing up, and this one is about something I made a year ago turning out well! Anyhow, the world’s only battery powered microcontroller based handheld prime number generator I made last year (documented here) got some new exposure this morning when it was posted on HackADay.com!

I’m absolutely amazed by how much I learned back in the days when I was working with electronics in the weeks before I began dental school. Perhaps it’s also ironic that my learning decreased dramatically once I resumed graduate school… To give you an idea of how early in my electronics exploration this project was, look at the wires… they’re made from phone cord! I had no wire at my apartment, so I had to scavenge it from whatever I could find, and I ended-up buying a 50ft phone cord at Wall-Mart (super-cheap I’d imagine) and harvesting the colored wires inside.

The code is a joke. There’s no reason for this thing to generate numbers rapidly, so I used the absolute-slowest method for detecting primes possible. The schematic is a joke too. There’s hardly enough current to ignite those LEDs! Notice how the video had to be filmed in a dark room. Ironically enough also, the crystal isn’t even being used! It’s just for show! I’m confident I never changed the ATTiny2313’s fuse bits to rely on th external crystal, so it’s probably running on the 4MHz internal RC oscillator (perhaps with the /8 fuse set by default, so 500kHz?)

Tooth as a Radio Receiver?

We’ve all heard the urban legend where someone’s tooth filling picks up radio signals, some versions claim AM radio stations’ music is heard, others that wartime Morse code is heard. Is this really possible? Well, as a dental student and an electrical engineering / RF engineering enthusiast, I can think of no one better prepared to put this myth to the test! Yeah, I’m going to put my money where my mouth is. (zing!) Myth Busters attempted to replicate this, but they concluded it was “busted”, however I think they were going about it the wrong way. Let’s back up! Here’s a quote from Lucille Ball who is often accredited for originating this urban legend:

One night I came into the Valley over Coldwater Canyon, and I heard music. I reached down to turn the radio off, and it wasn't on. The music kept getting louder and louder, and then I realized it was coming from my mouth. I even recognized the tune. My mouth was humming and thumping with the drumbeat, and I thought I was losing my mind. I thought, What the hell is this? Then it started to subside. I got home and went to bed, not sure if I should tell anybody what had happened because they would think I was crazy.
--Lucille Ball

It was noted that Lucy recently had several temporary lead fillings installed in her teeth which caused this unique phenomenon. Let’s assume this isn’t a made-up story. If this were possible, what would cause it? Without going into detail as to how (whether by galvanic corrosion or other means), we’d have to assume that RF could be absorbed by the filling (whatever type it was), and turned into electrical activity. This electrical activity was either transferred directly to the nerves (felt as tingly electric shocks, which I feel isn’t likely) or converted into mechanical energy (creating vibrations which would be hears as sound waves). The piezoelectric effect may be one method where an electrical signal could produce these vibrations. Many small speakers are called piezoelectric speakers, because they have a small crystal in them (usually quartz) which changes its dimension as electricity is applied to the crystal, creating mechanical vibrations (turned into sound waves). Tooth enamel is 98% hydroxyapatite crystal - I wonder if it could be coaxed to vibrate similarly to quartz? There’s only one way to find out!

First, I start with a jar of teeth. Yeah, this is mine. Don’t ask how I got it! They’re all nasty as heck, and require sterilization before I will touch them without gloves. There are many advantages of spending every day in a medical setting, one of which is easy access to an autoclave! After picking a tooth which I think will have a lot of enamel I can isolate, I sterilized it.

I started by sectioning the tooth mesio-distally using a slow-speed air-driven handpiece and a #2 round burr. As I cut through the enamel, you can see the darker, yellowish dentin layer showing through.

This is my test subject. It’s a maxillary left first premolar. My goal is to isolate only enamel from this tooth, take it home and experiment with it.

Although dentin is crystal too, it’s about half organic matter and I feel it’s less likely to exhibit significant piezoelectric effect. Therefore, I’m going to try to eliminate all the dentin attached to the enamel. The image above shows some yellow dentin remaining near the center of the enamel. The lingual surface of the tooth has already been removed, leaving a thin shell of the facial surface. I’ll try to be more aggressive taking out more dentin…

Oops! Enamel is strong, but brittle. This brittleness is exacerbated by the process of autoclaving. While trying to drill away dentin, a large amount of the enamel chipped off, but I think it’s enough to use for my experiment.

Here’s what I have to work with. It’s pretty thick - I imagine if I make it thinner still, it will have a better chance of vibrating. Either way, it’s a start! The view above shows the facial aspect of the tooth - just think, this was probably on someone’s mouth for 50 years, viewed by thousands of people. Now it’s in my hands, and I’m about to turn it into a radio. I love my life.

From the other side, you can see enamel gets thicker toward one side of the tooth. My plan once I go home tonight (after I spend the afternoon in oral surgery, possibly extracting some teeth) is to gator-clip leads onto different sections of this tooth and run current through it. I’m thinking half a watt of 28MHz (since I have that transmitter I made yesterday still on my workbench), amplitude-modulated to produce a 300Hz tone. If my piezoelectric tooth enamel theory holds water, the tooth will vibrate at 300Hz when I do this. I can’t wait to try it out!

Update - 3pm 8/15/2011

We had a cancellation in the student oral surgery clinic, so with my unexpected free time I decided to prepare another tooth and attempt to isolate a larger, thinner selection of enamel. I chose a maxillary left lateral incisor this time, and carefully drilled it down until it was only enamel, and pretty thin at that. Take a look!

I don’t have my calipers on me, so I can only estimate its thickness to be between 500 and 1000 microns. It’s likely still too thick to vibrate extremely well, but it will be a good starting point. We’ll see how it fairs when I apply some RF current through it tonight at home!

To add credibility to this story, here is the official description of an episode from the Gilligan’s Island Episode List wikipedia page:

Gilligan's mouth becomes a radio when a filling in a tooth is knocked loose. Just in time too, as the regular radio is broken and a monster typhoon is on its way.
"Hi-Fi Gilligan", Season 2, Episode 10, November 25, 1965

Update - 9:50 pm 8/15/2011

I’m starting to feel like I might have been played. I tried sending different types of current through flakes of enamel and nothing I did seemed to make it vibrate measurably. I tried audio level 5V square waves, audio level modulated RF 30PPV sine waves, and a few other things at all locations on the enamel, but I couldn’t get it to produce sound. I think it’s either (a) not thin enough to vibrate freely, (b) not highly piezoelectric, (c) not fed the correct frequency, for which I really need a RF sweep generator, or (d) simply not possible and I’m chasing a ghost on this one… If someone has any ideas of what to try, I’d appreciate it. If I can’t make it vibrate from electrical current, I’ll never make progress toward proving the “tooth radio” story, so I guess it ends here for now. If you have any ideas, feel free to share them with me! I’ll probably move on to bigger, better things now…

Second wind: I’m starting to think that I’m beginning this project too complexly. I know a quartz peizoelectric speaker works. I should probably start by replicating this, using a fragment of enamel rather than quartz. Also, most of the volume from a peizo speaker comes from its resonant chamber. Technically, this could be vibrating in front of me right now and I wouldn’t be able to hear or see it! I should find a crystal peizo speaker, replace the quartz with enamel, and start from there…

Update - 10:35 pm 8/15/2011

SUCCESS! I can’t believe I gave up that easily! I’d actually started moving onto another project, when I had an idea and revisited this one. So what if the piezoelectric vibration experiment didn’t work? Is it possible that RF could be turned into electrical signals that could be sensed by the mouth? Two dissimilar metals in contact may form a P-N junction, the fundamental unit of semiconductors. A simple diode would take audio-level amplitude modulated radio frequency signal and act as an envelope detector, producing electrical output corresponding to the audio used to modulate the carrier signal. A simple diode should do the same thing. Therefore, if a diode in my mouth produces a tingle of electricity upon RF exposure, and if I can figure out which dental materials are P-type and N-type, I can replicate this! First test, diode.

There’s a simple 1N914 diode with a tooth beside it for scale reference. A diode, when exposed to RF, acts a bit like a half-wave rectifier, the body acts as a lowpass filter, and the result is a small electrical current delivered upon RF exposure. The black stripe indicates the + side of the diode. I place this on my tongue, touch the other end with my hand and and let’s try keying up a transmitter…

ZAP! Even though I’m not holding the radio (as evidenced by a black/Mexican hand with nail polish), every time my wife presses the transmit button I feel a slight tingle in my mouth. This is a 5W radio a few feet away. I couldn’t even imagine what a 50,000 watt AM radio station would feel like! Now, if I can just figure out which dental materials would act like a diode, I can construct this dental device in a human tooth and measure the current produced! If I’m confident it’s sterilized, I guess I can put it in my mouth and see if I can feel it tingle. eww! I’ll cross that bridge when I come to it. Time for more research!