Michael Bay and Basic Astronomy

July 4, 2011 | Astronomy, Movies | By: Mark VandeWettering

I’ve seen lots of bashing of Michael Bay and his movies this weekend. Amongst the blogging world, there seems to be almost universal contempt the flashy, soul-less combination of flashy cars and collagen injected supermodels. And yet his latest release Transformers: Dark of the Moon just claimed the all time Independence Day record, amassing 156 million dollars in its first five day weekend, including (yes) $25 or so for me and my wife.

I’m not going to argue that Michael Bay deserves more respect (while his movies are popular, they do pander to teen-boy sensibilities) or less respect (that being said, his movies are enormously popular, and do have a visual style which I can appreciate). Instead, I’m merely going to nit-pick a single annoying set of mistakes that he perpetuates in Transformers: Dark of the Moon.

There is no “dark side of the moon”, any more than there is a dark side of the Earth.

(I might reveal minor plot points in the following discussion. You’ve been warned.)

Part of the premise of TDOTM is that the Apollo 11 landing was merely done to retrieve a crashed Autobot ship. Repeated reference is made to landing on the “dark side” of the moon, or loosing radio contact because Apollo 11 is now on the “dark side”.

Argh.

I’m going to blame Pink Floyd for this, although perhaps our own penchant for viewing things like the moon without really attempting to understand what we see is at least as likely to blame.

The moon revolves around the earth in about 27.3 days (a sidereal month). The moon’s rotation is synchronized to its orbital period, so that it presents the same side toward the earth (mostly, more below). Hence, we see the same side of the moon from our vantage point on earth all the time. Hence, it makes sense to speak of the “lunar near side” (the side we can see) and the “lunar far side”, the side we cannot. The first pictures of the lunar far side were taken by the Soviet Luna 3 probe back in 1959: prior to that, we knew essentially nothing about this far side.

But note: the far side isn’t “dark”, anymore than the near side is.

If you watch the face of the moon throughout a sidereal month, you can see the phases change. During a full moon, the visible, near side of the moon is fully illuminated, and the invisible, far side is fully dark. But one half a sidereal month later, we have a so-called “new moon”. Here, the near side is in shadow, and the far side is fully illuminated. And halfway between these two times, the near and far sides are both half lit and half in shadow.

During the Apollo missions, the Command Module would periodically go into “radio darkness” as it was hidden behind the moon, but this was merely because the moon would block radio signals aimed at the craft in lunar orbit. But this had nothing to do with whether the Command Module was in sunlight or not.

Of course, someone more illustrious than me has been through all this before.

It’s a minor nit to pick. And Michael Bay has done much, much worse. But this kind of basic illiteracy annoys me just as much as the obvious car and electronic product placements we see scattered throughout the film.

And yes, I can accept talking robots from outer space, the existence of something called Energon, and that hot chicks would like Shia Labeouf, but choose instead to pick this one nit. Sue me.

Addendum: We don’t see precisely the same side all the time. The moon’s orbit is elliptical, which means that it varies in distance between us. Because its angular velocity changes, but it’s rotational velocity does not, the moon is only on average in synchronous rotation. We can see about 9% more of the moon’s surface than we would if it was perfectly synchronous.

Addendum2: If you really want to nit pick, consider the effect of the Roche Limit and what it means when Cybertron is brought into earth orbit.

Addendum3: Also, for being the “Einstein of the Autobots”, Sentinel Prime was really, really stupid.

Addendum4: Yes, I get all the jokes on Big Bang Theory.

Another Numbers Station Recording…

July 2, 2011 | Amateur Radio | By: Mark VandeWettering

I was bored, and feeling stupid. So, I was scanning around looking for numbers stations. And, if you look, you shall find. Here’s one transmitting Morse code using AM, on 5.898Mhz. Not sure what this one is, but it’s not uncommon to find numbers stations on that frequency.

Numbers Station on 5.898 Mhz, Morse Code using AM modulation

The sights and sounds of RTTY

July 2, 2011 | Amateur Radio | By: Mark VandeWettering

Over at the tymkrs blog, they’ve been learning a bit about RTTY as a digital mode, but I found their description a bit theoretical. I’d describe radio teletype (RTTY) as a popular digital mode, particularly among contesters. It encodes text as a stream of five bit code words using a system known as Baudot, and then sends these codes as two tones using frequency shift keying. On the amateur frequencies, these tones are typically 170 Hz apart, and sent at 45.45 baud.

Is that too esoteric for you? Well, here’s some sights and sounds.

First of all, here’s the sound. I recorded the following minute of audio using my SDR-IQ this morning around 14.090 Mhz, on the 20m band. There is apparently some contest going on, as I observed people exchanging sequence numbers and signal reports. I’ve left this uncompressed, so in theory, if you have any software that can decode RTTY, you can play it back and see what it says (I use fldigi).

RTTY on 20m, recorded on July 2, 2011 (WAV)

If you are using a radio which has a “waterfall” display like are common for software defined radio, you might expect to see the following: RTTY looks like two discrete tones, separated by around 170 Hz. This is the view using my SDR-IQ running Spectravue.

Spectravue doesn’t have an RTTY decoder built in, but fldigi does. If you configure it to use the stereo mixer output of your PC as input, you can use both programs together to decode the RTTY. Here’s what fldigi looks like:

You can see that fldigi has some problems with putting out garbage letters, mostly at the end of transmissions. The squelch control that it has is slow to stop the decoder, and often at the end of a transmission you’ll see a bunch of garbage characters. I’ve wondered how to tune fldigi to minimize that effect, but I haven’t figured it out yet (I’m not much of an RTTYer).

While RTTY has a long history in amateur communications (refer to (refer to Wikipedia for details) it is hardly ever done with vintage equipment anymore, with software replacing vintage teletype terminals. I see it mostly used during contesting, and hardly ever for long “rag chewing” contacts. In recent years, digital modes like PSK31 and Olivia seem to be increasing in popularity at RTTY’s expense: even W1AW has begun to shift their bulletins to PSK31.

If you are a ham, you probably know all this already: this is mostly to help inform the short wave listener or prospective ham. If you are an avid RTTYer, feel free to post your views on the mode as a comment: as I said, I’m no expert, but we’d all love to hear from anyone who is.

Magnetic Loop Antenna Theory

July 1, 2011 | Amateur Radio, electronics | By: Mark VandeWettering

I was digging around trying to find some software to help me design a magnetic loop antenna for use on VLF frequencies. I stumbled across this page, which provided a lot of interesting insights, as well as a Spice model to help you understand how they work.

Magnetic Loop Antenna Theory

The article clarified something to me which I only vaguely understood before. If you desire narrow band performance, the best way to do it is to make the antenna resonant by paralleling it with a capacitor, and using it in combination with a high impedance load to measure the voltage from the antenna. But if you desire wide band performance, then you want to use it combination with a very low impedance, which basically means that you feed it into a transimpedance amplifier which effectively shorts the antenna to ground and converts the current to a voltage.

Interesting.

I might have missed it, but while the page presents an Spice model for the antenna, it doesn’t seem to have it available for download. I’m working on putting it into LTSpice, and should have it available for download sometime in the next couple of days.

Treasure Trove of Ideas Re: Homebrew CPUS

June 30, 2011 | Homebrew CPU | By: Mark VandeWettering

Dieter Muller has an amazingly interesting collection of interesting ideas about building homebrew cpus with TTL logic. I’m sure to old school logic designers, most of these are old hat, but to the nearly crazed home experimenter, they are quite illuminating. His hints on ALU design are what brought me to the site, so I’m leaving this breadcrumb on my blog so I can find it again easily.

Dieter’s Homepage..

Recordings of High Frequency Beacons…

June 29, 2011 | Amateur Radio | By: Mark VandeWettering

It’s been quite some time since I’ve hunted for any beacons, and I’ve never really payed much attention to HF pirate beacons. Typically these are solar powered beacons which are deployed somewhere in the deserts of the American Southwest, and charge during the day and transmit simple sequences of Morse characters once the sun goes down. While they are technically illegal, the amount of power they emit is so low that they could hardly be said to interfering with anything, and besides: they are almost certainly so cheap that if you took the trouble to direction find one down, the creator could simply erect another one the following week. In any case, I found this website which details some of the beacons you can find on HF:

High Frequency Beacon – HF Underground

Armed with the list, I decided to take my trust SDR-IQ and see if I could hear some of them tonight. With just a brief scan, I determined that I could hear three of them that are in the vicinity of 4.096Mhz. I made brief minute long recordings of them, and these are still in WAV format rather than putting them through an MP3 compressor which might remove the signal entirely.

Signal around 4.089Mhz, reportedly from Death Valley
“Dasher” signal around 4.0963Mhz, from Joshua Tree National Park
“Dasher” signal around 4.0966Mhz, from Mojave National Preserve

The Death Valley signal is easier to hear, the Dasher signals were fading in and out, but should still be reasonably legible. You should be able to tell the difference in speed between them.

Here’s a screendump of Spectravue spectrum display, centered around the two Dasher beacons:

Perhaps this isn’t too exciting, but it was fun to see if I could find these. I’ll try hunting down some more of these, as well as some more unusual signals from time to time.

Short wave listeners and hams: what’s the most unusual thing you’ve heard lately? Feel free to chime in below. Bonus points for things that other SWL’s can listen for.

What is your blog’s business plan? Does it really need one?

June 27, 2011 | Blogging, Rants and Raves | By: Mark VandeWettering

It was a convenient time to renew my blog’s hosting plan over the weekend, so I made my payment and you can be assured that the brainwagon blog (which as many as a dozen of you inexplicably read) will be available for another 12 months. It got me thinking about the many bloggers I know who work on authoring and popularizing content as part of a business (or at least, a plan for business). I just spent $83 on hosting for the year, I got to thinking: what’s my business plan?

Well, the fact of the matter is, I don’t have one. It’s actually more than that: not only do I not have a plan, I have planned explicitly to not think of my blog as a business opportunity. It’s an expense, and isn’t expected to pay any financial dividends. Total costs in terms of name registration and hosting amount to about $100 a year or so.

So, why do I do it? Well, why do you plant flowers in front of your house? Sure, it probably does have some effect on the value of your house, but that’s only likely if you are going to sell your house in the near future. Yes, maybe it keeps a home owner’s association from complaining to you. But the real reason most people plant flowers is they like to garden, and it makes the place where they live a better, more beautiful place. You can thus view it as an investment of sorts, but not in the purely rational, economic sense of the word. It’s an investment in ourselves as well rounded and happy individuals.

The primary reason that I blog is entirely personal: I write about the things that interest me, and my blog serves as a diary of sorts. By reading my own posts in the “On this day…” sidebar, I can see what I was thinking about a year ago, and this often stimulates new explorations in the topics that I was interested in.

But there is another ulterior motive: I don’t see very many people blogging about these kinds of topics on a regular basis. I blog at least in part as a challenge and inspiration to others: if you’ve read my blog and found something neat, or like the approach that I take, my hope is that you will go ahead and start your own blog, on whatever topics you like.

I’m trying to inspire people to plant their own gardens on the Internet. Think of it as planting flowers.

It need not be expensive. In fact, I urge you to do it as cheaply as possible. As the saying goes, it’s no virtue to do with more what can be done with less. Every dollar you spend blogging about your interests is a dollar that you aren’t spending on what truly interests you, so minimizing the amount you spend on Internet means you can maximize what you spend on the good stuff. The $100 yearly expense I pay is about two cups of Starbucks per month, which seems entirely reasonable to me, but maybe times are tough for you, and you can’t swing that. You could do without your own domain name, and use free blog hosting like WordPress.com or Blogger, and link to videos that you host on YouTube or blip.tv. Host audio and podcasts on sites like OurMedia.

There is a slightly disturbing trend I’ve noticed where every interaction with our fellow man seems to be viewed as a business opportunity. Let’s face it: we can’t all make our livings selling our opinions to one another. I don’t view my readers as consumers or potential ad clicks. I seek to inspire and to be inspired by them. The payment I receive is in new thoughts and new ideas.

This is not meant to say that you shouldn’t monetize your blog. If you can make that model work, by all means, pursue that and good luck. But there are lots of ordinary people who seem to think that if they can’t make money on their blog, then they shouldn’t do it. My plea is ask people to think of their blog not as an economic opportunity, but an opportunity for communication, for inspiration, and for sharing.

What’s your blog’s business plan? Does it need one? I’d love to hear some different ideas (or even agreement).

Debugging an RFI problem on Field Day…

June 26, 2011 | Amateur Radio | By: Mark VandeWettering

I spent most of the week in New York, so Field Day snuck up on me without me making any serious plans. But since Jeri has been homebrewing her own SDR I’ve been thinking more about that, and thought that I would dust off my SDR-IQ receiver and at least make some recordings of the crowded bands for field day.

So, I hooked it up, downloaded the latest version of Spectravue, and fired it up. And immediately found that there was some periodic high intensity noise, about 30khz wide and at intervals of around 160khz, all up and down the range covered by the receiver. Tuning down to the bottom, I found that there was indeed a sharper louder noise peak centered around 81Khz, and that we we were seeing mostly odd (but some even) harmonics all the way up to 30Mhz.

It seemed likely that it was a local noise source, so I immediately went around the house and checked all my fluorescent fixtures to make sure they are turned off. I knew from experience that the one in my garage can emit some pretty ugly hash, but switching them all off didn’t seem to help. I remembered that I had an air purifier upstairs turned on, so I switched that off. No help. I turned off TVs (which had never presented a problem before, so I couldn’t see why they would cause an issue now) but they also didn’t help.

I strained my brain: I had never seen this kind of noise before, it was probably local. What has changed in the electrical environment of my house? I couldn’t figure it out. I mused that maybe I had some bad connection in my antenna (which is probably not adequately weather proofed with coax seal) and that it was rectifying some local noise source. I contemplated tearing it down, and putting up another antenna.

I needed a break. Carmen and I took a walk down to W6CUS’s Field Day operations near the Berkeley Marina, and then went to Home Depot and bought ourselves a new replacement screen door for our patio. When we tried to get it in the Honda, it wouldn’t fit, so I sent her home to get the Expedition and waited, mulling it over.

When I got home, I was thinking of a different problem: the design of a VLF loop antenna. I disconnected my laptop and moved to the couch, where I dug up a copy of some loop antenna design software and played with some numbers for a while.

After an hour or so, I got bored, and decided to give the SDR-IQ a try. I went back to my antenna hookup, plugged in the SDR-IQ to my laptop, and fired up Spectravue. And… miracle of miracle… the RFI was gone!

Perhaps, think I, it was something like a motor in an air conditioning unit that had switched off. But huzzah! I could at least tune around and listen. So, I put the laptop back on the table. And.. the RFI is back.

Take it off. It’s gone. Put it back. It’s on.

Alright Mark, think. What the heck is going on?

I am operating on battery power. I wasn’t before. The power supply? But it’s not even plugged in. It’s just sitting there, it’s little plug dangling on the desktop next to where I put my laptop down…

Sure enough, even proximity to the power supply was enough to bring back the hash. Then I remembered, this laptop power supply was a replacement (an OEM replacement) for the original that I had used previously. That could explain why I had never seen it before. My wife’s laptop has the same kind of power supply, so I swapped that in. Silent as a church mouse. No problem at all.

Problem solved! And with that, I could go ahead and listen (and see, using Spectravue) the traffic on Field Day. By then it was 10:00PM, a couple of hours beyond sunset, but 20M was still open:

20M on Field Day, June 25, 2011

I recorded a half an hour of the full band for later experimentation, and then moved down to 40m, where you could see both the CW and voice portions of the band.

Anyway, it points out to me that the hardest part of debugging is to figure out what is relevant and what is not, what is changed and what has not. I had a preconceived notion that since I had used this computer before, nothing related to it could possibly have anything to do with it. But of course something had changed. In retrospect, noise from switching power supplies should always be on my mind when debugging these things.

Hope everyone had a good Field Day!

The Duo Adept, another 8 bit computer built from TTL logic…

June 17, 2011 | Homebrew CPU | By: Mark VandeWettering

In a previous blog post about a year ago, I pointed you at Jack Eisenmann’s 4 bit computer built from TTL chips. It was cool, made entirely on breadboards tucked away inside a big plastic container. Or, I used to think it was cool, until I saw what he’s been up to: an 8 bit computer, complete with video interface. All done on an ungodly number of breadboards. It takes a certain kind of obsessive lunacy to make one of these, and I can appreciate it.



His web page detailing the Duo Adept..

Bit banger

June 17, 2011 | Games and Diversions, Link of the Day, Video | By: Mark VandeWettering

Anyone who has seen my projects on the Atari 2600 might reasonably conclude that I have a thing for retro computing. The saying goes “it is no virtue to do with more, what can be done with less” and I can’t think of someone whose projects have embodied that more than demo coder Linus Akesson (lft). His latest demo runs on the tiniest of tiny Atmel processors, the ATTINY15. It has just 32 bytes of memory (just the registers, really) and room for 512 instructions. Yet, lft made a cool demo that runs on it, generating both video and sound. Oh, and he’s only running it at 1.6 Mhz (yes, 1.6 Megahertz). Very cool!


More details about Bit banger, and how he did it..

Andrew Holme’s projects

June 16, 2011 | electronics, Link of the Day | By: Mark VandeWettering

Most of the websites that I link to are related to specific topics or projects. But every once in a while, you find one that has a bunch of good stuff that matches some of your esoteric interests, and you wonder how one person could do it all. Inspired by Jeri Ellsworth’s latest video showing her Spartan 6 FPGA board which reconfigures itself to generate the VFO, I thought I’d try to figure out what magic that entailed, with the idea of maybe doing something similar with my (as yet sorely underutilized) BASYS-2 board. That sent me to Andrew Holme’s project page:

Andrew Holme’s projects

He’s got some projects on Fractional-N frequency synthesizers, which I don’t think are exactly what we want, but what a treasure trove of cool projects. An experiment using core memory, a microcoded FORTH machine built from discrete logic, a homebrew spectrum analyzer, and an experimental GPS receiver! Too cool. Lots of good stuff.

Gyrator circuit in LTSpice…

June 15, 2011 | Amateur Radio | By: Mark VandeWettering

While watching TV (not very closely) I went ahead and entered the “gyrator” part of the Gyrator VLF circuit. It does indeed seem to work. No real analysis, just the circuit as I built it.

The Gyrator VLF receiver…

June 15, 2011 | Amateur Radio, Amateur Science, Astronomy, electronics | By: Mark VandeWettering

Back on June 7, there was a spectacular coronal mass ejection on the sun:



Yes, I did mention this event and gave some links to VLF receivers at the time, but I’ve been thinking about this some more.

As an astronomy/telescope buff, I have built simple telescopes for looking at the sun, but I haven’t done much of that lately, and I have only recently become interested in observing the sun’s effect on the Earth’s radio environment. I’ve also had a fairly longstanding interest in VLF communications, and so the prospect of building a radio system for monitoring radio for SIDs (Sudden Ionospheric Disturbances) seems like a good project. I recall that Mark Spencer, WA8SME whom I’ve had the pleasure of meeting at Pacificon and even chatted with via the AO-51 satellite had published some articles on designing such radios for amateur and educational construction.

The most common way to monitor for SIDs is to try to detect the signal strength of the VLF station in Cutler, ME on 24Khz. Changes in signal strength can indicate the presence of solar flare activity as the ionosphere is bombarded by high energy particles. One common circuit that lots of people use is called The Gyrator VLF circuit, which you can find here:

The Original Gyrator Circuit (PDF)

I had never really looked at this circuit very carefully before, and looking at it tonight, I realized that it was actually fairly interesting and employs a technique which I hadn’t seen before. Instead of making a tuned front end using a (fairly large, because of the low frequency) inductor, they create an equivalent circuit using two op amps and a collection of resistors. This creates an inductor with very high Q, with the side effect that is easier to make, using operational amplifiers that you can still get at Radio Shack. I’ll probably try to simulate some of the basics with LTSpice to gain some intuition as to what’s going on, but it’s a simple enough circuit that just building it would be pretty easy.

The basic circuit has undergone a couple of iterations, and now the Gyrator III schematic is recommended by the AAVSO. You can check out the details here (and surf around, the AAVSO has lots of information on this stuff).

Software Defined Radio Links

June 15, 2011 | Amateur Radio | By: Mark VandeWettering

I own an SDR-IQ software defined radio, a Funcube Dongle (more on that later) and have built a marginally operable Softrock Lite receiver, so you might say I’m interested in Software Defined Radios. But Jeri’s tinkering with her own software defined radio has rekindled my interest in homebrewing one. I was looking for Gerald Youngblood’s (AC50G) QEX article series entitled “A Software Defined Radio for the Masses”) and found that one good place to find it (and many other interesting articles) was unsurprisingly on the ARRL’s website.

Software Defined Radio

Jeri also pointed me at a an awesome presentation by Dan Tayloe, N7VE entitled “Very High Performance Image Rejecting Direct Conversion Receivers” that has lots of information that go well beyond my current understanding of receiver design and performance. Good reading, which will hopefully turn into a good project.

A Cree LED in my linear current LED Transmitter

June 15, 2011 | Amateur Radio, electronics | By: Mark VandeWettering

I was away all weekend, so I didn’t get a chance to check out my LEDs that I got from Deal Extreme last week. Tonight, I just soldered a couple of clip leads and tried it out when hooked to the linear current modulator that I built (and blogged about) before. The transmitter in this video is set to pull an average of about 10ma average through the diode, with a peak of 20ma. That’s hardly enough to really get the cree going at all (I believe this one can go all the way to 350ma or so, and about 1W of output power) but it was enough to play with.



After I filmed this, I changed the current limiting resistor from 100 ohms to 16 ohms (by ganging two 32 ohm resistors together) and wired my multimeter in series with the supply to measure the power, and as expected it was 60ma, for an output of around 150mw or so (I didn’t measure the voltage drop, but I think it’s around 2.6 volts). It was quite a bit brighter, and was detectable even without any optical assistance at the other side of my room. To go much higher, I think I should probably swap the 2N3904 that I’m using to modulate it with something a bit beefier (like the IRF510s that I have lying around) and I’ll need some 1/2 watt current limiting resistors (probably around 3 ohms).

I’ll play with this some more in the next few weeks.