Monthly Archives: October 2008

Silly Arduino Project #1: A Trivial Beacon

While waiting for my K1EL keyer kit to show up, I was twiddling my thumbs, and remembered that I had an Arduino microcontroller board sitting around. I originally bought it for an aborted robotics project, but haven’t touched it in months. I redownloaded the development environment, and a few minutes later, I had it happily blinking a Morse beacon message on pin 13, as well as typing the beacon message repeatedly out on its serial port.

It’s a trivial program, and the Arduino is capable of much, much more. When I get home, I’ll solder together a simple keying circuit and try it out on my FT-817.

Addendum:

Here’s the code running while hooked to my FT-817.


Google Earth for iPhone

There is a new Google Earth app out for the iPhone. It’s pretty cool. Grab it from the Apple App store. Nuff said.

Addendum: Okay, it wasn’t really enough said. It has a great interface, which uses the touch screen and tilt sensors in the iPhone to control the panning of the display.


Cheap Yagi

I’ve been meaning to do this for a while: toss together a cheap Yagi antenna suitable for listening to AO-51 on 70cm. If you just google for “cheap yagi”, you’ll find the link to the design. An hour, some 12 gauge aluminum (not optimal, but what I had on hand), a poplar stick, some coax and hot glue, and voila. I have an antenna! Now all I have to do is wait for something to come overhead to see how it works.

Addendum: It works pretty darned good. Maybe just a little worse than my Arrow, but that’s just a guess. I was listening to N6PAA on the QRP repeater on AO-51 just a few minutes ago, and his signal was good and strong.


CQ World Wide DX Contest

Well, this weekend is the CQ World Wide DX Contest, one of the larger contest weekends. I tuned up to 15m, around 21.259, and found HC8A booming in. Months ago, my 40m direct conversion receiver was initiated with reception of an RTTY signal from HC8N. Both are stations located on the Galapagos Islands. Nifty. Here’s a link to a brief MP3. You can also hear a Costa Rican station operating on the same frequency for the first half or so, then he moved up in frequency a bit.

HC8A, Galapagos Islands (MP3)

Contest exchanges are kind of boring (well, to be fair, REALLY boring) but contests do bring out large stations with lots of power, and allow you to hear zones of the earth that are largely quiet from inactivity.

Steamboat Ed’s Shop in high resolution…

Gigapan is a website which displays super high resolution panoramic images, acquired by a special panoramic camera rig. Today, I got a note from Ed Haas, mechanical tinkerer extraordinaire, that his workshop had been imaged. Check out the 1.7 gigapixel image (be sure to pan in and read some of the labels on things on the shelf. Very cool.

gigapan: Steamboat Ed’s Shop – Detail of Lathe (steamboat_ed_07)

Prime Number Fun

As some of you may have noticed, I occasionally like to write small programs to compute odd little mathematical curiousities. Something I hadn’t done in a long while was to use the Sieve of Eratosthenes to compute a bunch of prime numbers. I suspect that I wrote such a program very early in my exploration of computers, maybe thirty years ago. The basic algorithm is pretty straightforward, but takes O(N) space to find the primes less than N. It’s not hard to reduce the storage to N bits, and with a trivial bit of work you can reduce it to N/2 bits, and with a little more, you can reduce it to 4/15 N bits. That was fun to work out.

But last night I did something a bit different: I implemented a simple “segmented sieve”. Basically, the idea is that to generate all the primes up to N, you find all the primes up to sqrt(N), and save those. Then, you process the rest of the numbers in buffers of sqrt(N) at a time, by sieving each buffer with your saved primes. It’s a really simple idea, but makes sieving larger numbers more practical. I implemented the simplest possible version of this last night, and set it going to compute all the prime numbers up to 1E12. Here’s the log from the run:

[chessboard] % time ./bigsieve 1000000000000 > output
20580.222u 18.741s 5:43:39.10 99.9%     0+0k 0+0io 0pf+0w

And here’s the output file:

78498 primes less than 1000000
148933 primes less than 2000000
216816 primes less than 3000000
283146 primes less than 4000000
348513 primes less than 5000000
412849 primes less than 6000000
476648 primes less than 7000000
539777 primes less than 8000000
602489 primes less than 9000000
664579 primes less than 10000000
...999989 lines deleted...
37607912018 primes less than 1000000000000

The program doesn’t include any of the basic optimizations, I suspect it woudn’t be difficult to make this thing a factor of 2-4 faster without adding a ton of code. I’ll probably see if I can do that over the next few days. It’s a useless but fun project.

First Spot from over the Atlantic via WSPR…

Today, on wsprnet.org, W1BW announced that Wednesdays would be “Special Activity Days”, and that today’s special activity would be to operate on 20m instead of the more common 30m. Overall, I didn’t get as many spots as I typically get during the day on 30m, but I did manage to get a spot from GW4VBE, which counts as my first cross-Atlantic spot. To celebrate, I created a new WSPR spot map:

I really do need a better antenna.

I’m now KF6KYI/AE

Just got back from Pacificon. Had a nice time, and managed to pass the upgrade exam. I’m now an Extra class ham. Bow down and worship me! (Just kidding.) The test was a lot closer than I thought it should have been: I seemed to get a lot of questions that were unfamiliar to me, despite a couple of weeks of doing practice exams. Still, it’s all done!

First SSTV image from ISS

It’s not too exciting, but it’s a start. During a 30 degree pass, I managed to get MacRobot SSTV to decode this partial image. It’s not the greatest SSTV decoder: it seems to miss the VIS preamble almost all the time, and loses sync fairly often when noise interrupts, which when you think of it, is pretty inexcusable. I’m told the various Windows programs are better. But it’s a start, and until I write something better, it’s all I got. I’ll be trying for some more passes later today.

Addendum: During my second pass of the day, the SSTV was off, but we heard the voice of Richard Garriot answering questions (which we can’t hear) but which were very legible in response. It starts out a little scratchy, and there are relatively long bursts of static where we don’t hear the questions, but his answers are interesting. Enjoy!

Richard Garriot Speaks from the ISS (MP3)

Addendum2: Here is a link to a master repository of received SSTV images from the ISS. Check back frequently.