11:57:26 pm on 3/20/10
Menu
» Home
» About Scott
» QRSS VD
» Old Stuff
» Archive
» Contact

Categories
» C/C++
» Circuitry
» Dentistry
» DIY ECG
» General
» Linux
» Microcontrollers
» Molecular Biology
» My Website
» PHP
» Prime Numbers
» Python
» Radio
» UCF Lab
» Everything
Writings
» MD Labels
» Streamrip
» AIM Thoughts
» WindowsXP?
» Partitioning
» CD/DVD Repair
» Monitor Info
» CRT Deflection
» Venomcrack
» Flash Thing
» Heart/Brain
» Diabetes
» Triops
» Biomed

Friends
» Fred
» Kyle W
» Nick
» Louis
» Tom
» Kyle H




Archives
» March 2010
» February 2010
» January 2010
» December 2009
» September 2009
» August 2009
» July 2009
» June 2009
» May 2009
» April 2009
» March 2009
» February 2009
» January 2009
» December 2008
» November 2008
» October 2008
» September 2008
» September 2007
» December 2006
» August 2006
» January 2006
» August 2005
» July 2005
» June 2005
» May 2005
» April 2005
» March 2005
» February 2005
» January 2005
» December 2004
» November 2004
» October 2004
» September 2004
» August 2004
» July 2004
» June 2004
» May 2004
» April 2004
» March 2004
» February 2004
» January 2004
» December 2003
» November 2003
» October 2003
» September 2003
» August 2003
» July 2003
» June 2003
» May 2003
» April 2003
» March 2003
» February 2003
» January 2003
» December 2002
» November 2002
» October 2002
» September 2002
» June 2001

You are currently browsing the The Blogging Protagonist weblog archives for April, 2009.

Archive for April, 2009

« Previous Entries


A Foot in the QRSS Door
Posted by
Scott April 30th, 2009 | 5,253 words | No Comments »

I’ve been unbelievably busy over the past couple weeks. Last Thursday my boss approached me and asked if I could work over the weekend. He wanted to complete and submit a grant by the deadline (Monday at 5pm). Scientific research grants are not easy to prepare. ~40 pages of forms to fill out, biographies to design for each of the lab workers, budget appropriation plans, animal handling protocol approval forms, plus 12 pages of scientific dialogue explaining the experiment. Now, I know that it may not sound like much, but trust me – it’s a very dense (11 and 9pt Arial font, single spaced) paper which takes about 2.5 hours for me to read from start to finish. Being the only native English speaker in the laboratory, I’m expected to assist in the polishing of its dialogue, as well as thoroughly evaluate its scientific content and offer suggestions. To make a long story short, I worked really hard (really long days) on Friday, Saturday, Sunday, and Monday to accomplish this. Monday afternoon when it was done (at about 4pm) I went home and collapsed in exhaustion. I don’t know how my boss does it! He worked on it far more than I did, and over that weekend he didn’t sleep much at all. Anyway, in exchange for my over-weekend work I got Tuesday and Wednesday off.

So, what did you do on your mid-week weekend? Well, I knew in advance that I’d have two days to bask in freedom and to do whatever I wanted. I prepared ahead of time by ordering a small handful (I think 4?) of ATMEL AVR type ATTiny2313 chips from Digi-Key at $2.26 per chip. I know I could have gotten better deals elsewhere “Like $1.88 per chip from RoboticsWorld) but the truth is that I had a random assortment of items I wanted to buy, and although all these different companies offered them, I feel I saved in the long run by ordering everything from a single source, cutting down on shipping costs. I also was impressed by the delivery time! I got my boxes in the mail on Monday. Way better (and cheaper) than ordering from the UK or Hong Kong.

The first thing I did with these chips was try to program them. Unlike the embarrassingly-easy PICAXE chips which can be programmed a form of BASIC cod from 2 wires of a serial port, the AVR series of chips are usually programmed from assembly-level code. Thankfully, C code can be converted to equivalent ASM (thanks to AVR-GCC) and loaded onto these chips. The result is a much faster and more powerful coding platform than the PICAXE chips. PICAXE chips are great for rapid development or for a starting platform for microcontroller education, but I feel that I’m ready to tackle something new. Anyway, I built a straight-through parallel programmer for my ATTiny2313 chips. It was based upon the dapa configuration and connects to the appropriate pins of the ATTiny 2313. However I would recommend that you be safe (protect your parallel port and microcontrollers) by installing the proper resisters (~1k?) between the devices, but I didn’t do this. No no. I live on the wild side. I eat danger for breakfast.

I decided to dive right in to the world of digital RF transmission and should probably go to jail for it. I blatantly violated FCC regulations and simply wired my microcontroller to be able to control the power level given to a 3.579545 MHz oscillator. Check out the circuit. The antenna is the copper wire sticking vertically out of the breadboard.

These crystals release wide bands of RF not only near the primary frequency (F), but also on the harmonic frequencies (F*n where n=1,2,3…). I was able to pick up the signal on my (uber-old) scanner at its 9th harmonic (32.215905 MHz). Supposedly the harmonic output power is inversely proportional to n. Therefore the frequency I’m listening to represents only a fraction of the RF power the crystal is putting out at its primary frequency. Unfortunately the only listening device I have (currently) is the old scanner, which can only listen above 30 mhz.

Remember when I talked about the illegal part? Yeah, I detected harmonic signals being emitted way up into the high 100s of MHz. I don’t think it’s a big deal because I doubt the signal is getting very far, but I’m always concerned about irritating people (Are people trying to use Morse code at one of the frequencies? Am I jamming my neighbors’ TV reception?) so I don’t keep it on long. Once I get some more time, I’ll build the appropriate receiver circuits (I have another matched crystal) and install a low-pass filter (to eliminate harmonics) and maybe even get a more appropriate radio license (I’m still only technician). But for now, this is a proof-of-concept, and it works. Check out the output of the scanner.

Something I struggled with for half an hour was how to produce a tone with a microcontroller and the oscillator. Simply supplying power to the oscillator produces a strong RF signal, but there is no sound to it. It’s just full quieting when it’s on, and static noise when it’s off. To produce an AM tone, I needed amplitude modulation. I activated the oscillator by supplying power from the microcontroller with one pin (to get it oscillating), and fed it extra juice in the form of timer output from another pin. The fluctuation in power to the oscillator (without power-loss) produced a very strong, loud, clear signal (horizontal lines). I wrote code to make it beep. Frequency can be adjusted by modifying the timer output properties. The code in the screenshot is very primitive, and not current (doesn’t use timers to control AM frequency), but it worked. I’m sure I’ll write more about it later.



Someone Ghettoer Than Me?
Posted by
Scott April 25th, 2009 | 5,253 words | No Comments »

Apparently I’m not the only person out there who gets their kicks from ghetto-rigging electronics. I’ve been known to build integrated circuit-powered devices into empty disposable pipette boxes , construct regulated power supplies fixed to Jenga blocks , Build server-style PCs into haphazardly-decorated wooden boxes , plexiglas containers, and even gas tanks which probably isn’t even a safe thing to do , and cram printer servers into used paper boxes . Heck, even my brief excursion into wardriving relied on 100% ghettorigged equipment. Although I did use a hot glue gun to repair a broken monitor back in 2004 , I’ve underestimated the power of hot glue in the development of ghettorigged devices.

Although I’ve done a lot of random things over the years, I have to say CrazyTerabyte gets the cake. Maybe I’m being a little over-dramatic, but the truth is that while stumbling around the Internet this morning I came across First contact with ATmega8 microcontroller – part 2 in which a small circuit was held together by hot glue! [pictured] I saw this and my mouth dropped open. “That’s amazing!” It’s so simplistic, so rapid-development-style, so convenient, so shotty – it’s the very embodiment of the spirit of ghettorigging! For what it’s worth CrazyTerabyte, thank you, and I love you. You have inspired me to go home and make all of my new circuits out of hot glue. No more perf boards for me!!! (No, seriously, you think I’m joking, I’m not lol). Perf boards are great for fancy stuff, but what the heck have I ever made that was fancy? Exactly. Ghaw, I can’t wait to go home, fire up the glue gun, and make some popsicle stick houses, perhaps somehow incorporating circuitry, but I’ll figure that out when I get there…

Update: After posting this article I continued to google around for “hot glue circuit” and was amazed at the number of people used hot glue in their circuitry, 99% of which used it for terrible purposes!!! Usually they’re totally new to the world of electronics or solder and actually think that hot glue is actual glue. Hot glue is just plastic with a low melting point. It has no adhesive properties! In the image above, it’s perfect for locking resisters into place. It encompasses them all around and holds them together. The connections between the components are soldered and well-soldered at that. A poor solder joint is bad whether hot glue is there or not. Hot glue should only be used for its gross structural properties when it completely envelopes electronic components. Applying hot glue to only one side of a circuit is structurally ridiculous, but you wouldn’t believe how many people (on google imagesearch) do this! For example, check out Dr. Keith Wiley’s page where he used hot glue to fix wires to a circuit board in a quickcam [pictured below]. (btw: I didn’t know he had a Ph.D. in computer science until this moment – now I’m a little intimidated – but I’m going to hold my ground here.)

What exactly are the structural properties of this plastic? How is this benefiting the connection again? IMHO, the only thing hot glue would do when applied to a single side of a circuit is to increase the likelihood that it takes components off with it when it starts to peel away! If that weren’t ridiculous enough, look (on the next page, bottom link of his site) how the same guy uses hot glue to go over connections he soldered on the bottom of a perf board. Why? Why? Why? [buries head in hands].

This practice is amazingly popular on the internet and it scares me. Is there more to this that I don’t know? Am I stupid for thinking that applying hot glue to a single side of a circuit board is a bad idea? Am I arrogant to say so aloud?



Puxing 777 Radio Headset Schematic
Posted by
Scott April 22nd, 2009 | 5,253 words | 1 Comment »

I successfully created a speaker/microphone/transmit button circuit for the puxing 777 which probably works for all puxing radios. Instead of simply using circuits found on other websites (always for other radios), I decided to reverse-engineering an earphone/microphone headset that came with the radio to determine how it worked. I can’t claim that I’m an expert in electronics theory, but I can say that I faithfully rebuilt the circuitry within the factory-shipped headset and it worked. The result allows me to leave my handheld radio in its charger while casually listening/transmitting with a button that I made instead of having to reach around and awkwardly squeeze the transmit button on the side of the radio. Once again, I built this circuit and it was successful for me, but there may still be a better way to do it.

The microphone is a 20-cent electret microphone with no special modifications. The speaker I used is a standard 8ohm loudspeaker with no special modifications. The switch is a keyboard-style (push-to-talk) switch, and the capacitor I used is good for 10nF.

If you have any ideas for improvements, let me know! I’ll post some photos once I have my completed little “base station” set up. My ultimate goal is to turn an el-cheapo handheld VHF radio into a decent desktop transceiver by combining it with a nice antenna (located on a balcony at 30ft) and a convenient, easy-to-use switches/buttons/microphone/speaker/etc on a desktop panel.



DIY Morse Code Keyer
Posted by
Scott April 20th, 2009 | 5,253 words | 1 Comment »

Over the last couple weeks whenever I had the time I’d work on creating a little DIY morse code keyer. After 6 designs (whoa!) I came up with the winner. The youtube video describes it all I guess. Basically it just uses a bar of aluminum which rocks on a metal pin. Thumb-screws on each side of the balance point (fulcrum?) can be adjusted to modulate the distance the paddle has to go down to be activated, and how high the paddle goes up when released. A couple springs (one pull-type and one push-type) help give it a good bounce between keys. Two potentiometers (knobs) control volume and frequency. I especially like the ability to control the frequency! A capacitor inline with the speaker helps smooth the output a bit too. It’s not professional, but hey – for a couple bucks of parts I made a functional keyer and had a blast doing it. Now I guess I should learn Morse code…

And some photos…



Irreversible Geekdom
Posted by
Scott April 15th, 2009 | 5,253 words | 3 Comments »

Yes I’ve taken yet another plunge into the geek world by becoming a licensed amateur radio operator. My wife and I both took our technician exam last week (and passed), and this morning I discovered that our call signs have been processed. I’m KJ4LDF, she’s KJ4LDG. I’m a little disappointed that my call sign has an “F” in it. On the air, “F” and “S” sound similar, so I’m more likely to have people asking me to repeat it. The phonetics are Kilo, Juliet, Four, Lima, Delta, Foxtrot. Foxtrot! How lame is that? [sighs] Then let’s go to acronyms. LDF… “long distance fun”? Catchy and clever, but very gay sounding. [sighs again]. Either way, I’m glad I’ve been added to the database, and am now legally able to begin broadcasting on VHF/UHF. Beacon stuff (like I wrote about in the last post) would best involve lower frequencies, which would mean I have to take another exam to get a higher license class. Anyway, I’d better get back to work. Just wanted to share.



DIY Pointless Beacon Project
Posted by
Scott April 14th, 2009 | 5,253 words | No Comments »

I, Scott Harden, in my infinite restlessness and my limited sanity, hereby declare my next [potential] project. The idea is still in the earliest stages of development, and I have much to research (for example, I don’t even know if it’s legal) but it’s a cool idea and I want to try it. I know I’ll learn a lot from the project, and that’s what’s important, right? So, here’s the idea. I want to build an incredibly simple, low power radio transmitter that broadcasts data on a fixed frequency. Data is provided by (you guessed it) a picaxe chip! What data will it transmit? I’ll tell you! It could transmit… uh… err… um… okay it doesn’t really matter and I don’t even know, I just want to do this project! Maybe temperature and light intensity data or something. Who cares. Anyway, I want to put this whole deelibopper (temperature and light sensors, picaxe microcontroller, and transmitter) into a drybox (pictured). Once properly closed, this box will keep everything in pristine working condition by protecting against rain, heat, snow (not that we get much of that in Orlando), hurricanes, and perhaps even Florida panthers and bears (oh my). I’d make a glass (or plexiglas) window on the top so that light could get in, hitting solar panels, which trickle-charges the battery housed in the device as well. Pretty clever, huh?

My idea is to keep construction costs to a minimum because I’m throwing this away as soon as I make it. That’s right! Throwing it away. Parting with it – perhaps forever. My goal is to make it work so I can toss it in some random location (I’m thinking hidden on the roof of some building somewhere) and see how long it will run. Days? Weeks? Months? Years? How cool would it be go go to dental school, come back ~5 years from now, and have that transmitter still transmitting data. Super-awesome if you ask me. I’ve been poking around and I found someone who did something similar. They built a 40mW 10m picaxe-powered beacon (see photos and circuit diagram).

See the PICAXE chip in the center there? Remember, my ultimate goal is to learn from this project. I understand the basics of radio theory and amplitude and frequency modulation (AM and FM), but I’ve never actually built anything that does this. Yeah, I know, I could build a SoftRock radio like everyone says to do, but my educational grounding is in molecular biology. I know little about circuit-level electronics, electrical engineering, and radio theory… so my plan is to start small. This project is small enough to attack and understand, with a fun enough end result to motivate me throughout the process.



Molecules and Non-Steam Engines
Posted by
Scott April 14th, 2009 | 5,253 words | No Comments »

Early last week I did something surprising. Compelled by a newfound sense of freedom (I just graduated with my masters! yay!) and perhaps a little nostalgia, I decided to venture back into the psychotic world of CounterStrike. The game is quite old (released in 2000) but is a classic and is surprisingly well-furnished with online players. As I’m writing this, there are 33,125 (steam version) + 64,975 (version 1.6) = 98,100 players. That’s almost one hundred thousand players online this moment!

Anyone who knows me can tell you that I’m not a big fan of paying for software. In the case of Microsoft products, they’re a necessity (sorry linux people – it’s true – it’s often needed), but they’re easy to download/install illegitimately so they’re free. Counterstrike is somewhat similar. However, it’s a little more difficult than most other softwares. Because of the nature of the program (using an internet-based master server to find lists of servers to connect to, and connecting to servers requiring identification etc) any server who wants to be legitimate can block users who aren’t. In other words, with a fresh-out-of-the-box server, non-legitimate counterstrike users can’t play (they must be steam-verified). In fact, it takes a lot of work to set up a server to get around steam. These servers (called non-steam or nosteam) are few and far between, but they ARE usable.

Saturday afternoon I attempted to connect to non-steam servers with relatively good luck. There were lists of 100s of active, cracked non-steam servers I could play on, and I could log into all of them. The problem was my ping. Your ping is the time it takes for a message to travel from your PC to the server and back, usually measured in milliseconds. A low ping (fast rate of communication) is critical for fast-paced gaming. If your ping is 500 (half a second), you try to shoot at something but you’re shooting at where it was half a second ago. Pings around 30 are good. So, like I said, I could connect… but my pings were TERRIBLE! I was getting pings in the 100s, 300s, and even over 1000 (that’s more than a second!). I worked for two whole days trying to figure it out. I did everything. I concluded that only foreigners are smart enough to use nonsteam servers, as most of the cracked servers were in Russia, Western Europe, or South America. Although there were a couple (and I do mean a COUPLE) US-based nonsteam counterstrike servers, they were incredibly lame. Filled with bots (who wants to play against a robot?) and retarded kids. It was so frustrating to be so close to being able to play… but not quite… I got a couple servers to work well, but they were lame.

After two fulls days of pulling my hair out over this I cracked down and shelled-out the $19.99 to buy the stupid game in digital form (never got a box – just downloaded it from the website and created a legitimate steam ID) from www.counter-strike.net. Yeah, I cracked. I know. But, the way I look at it, I spent two full days working on this (everything from trying different wireless networks, wired networks, loading new masterserver files, etc.) for a total of at least 15 hours. If I had just dropped the twenty bucks on Friday, I would have had all of those hours of fun. And by fun I mean “more fun than going to a movie”. You see, movies are my yardstick of cost-worthiness. I know I’m trying to mentally justify myself here, but I’m thinking that going to a movie (with my wife) costs about $16 at the ticket counter and about $8 for a small soda at the snack bar (it’s scary). Movies are only ~2 hours of entertainment. Counterstrike will entertain me for many hours over the span of many days – possibly even many weeks. Therefore, purchasing a legitimate steam ID to be able to freely play counterstrike is a better return on my investment than going to a movie. So, instead of going to a movie on Sunday night, I purchased counterstrike.

I’m still pretty rusty and I don’t understand a lot of the new features (especially those related with the steam network), but if anyone wants to play with me I’d be obliged. I go by the nick “Tyrosine” and if I’m on, you can use GameTracker to find me. I’m playing Counter Strike Source and I go by the name Tyrosine. Yes, Tyrosine as in the amino acid. If you do decide to join me, you’ll have to put up with all of the spray painted signs I incessantly add throughout the levels. Yeah, that’s the molecular structure of Tyrosine. How creative.

For anyone interested here is a random clip of counter strike source being played… (I really just want to test out these new youtube embedding features!)



Capacitor + LEDs + HDD = LOLZ
Posted by
Scott April 9th, 2009 | 5,253 words | No Comments »

I was poking around the internet looking at various ways people made smooth-fading LED circuits and I came across the site of a guy who did something pretty creative that made me smile. Before I got too far, I wanted to mention that I saw a ton of plans involving fading LED intensity utilizing 555 timer ICs, but for my purposes an in-line (series) capacitor before the LED should do fine. Here’s the site which documents the project. Basically it’s a skull with red LED eyes which glow in response to hard drive activity. The capacitor makes the eyes fade in and out smoothly, as opposed to the jerky on/off flashing of standard hard drive activity LEDs. Video of the project result (.6MB XVID AVI) shows the effect. Very clever!



I Spotted an Airplane!
Posted by
Scott April 6th, 2009 | 5,253 words | No Comments »

I know this type of thing has probably been done countless times, but I’d like to provide my contribution to the world of Google Maps Anomalies. At the coordinates of 28.486942,-81.727869 I located an airplane flying over a lake in central Florida. The thing that impressed me was that the blades of the plane appear to be standing still. How fast was this image taken? This plane is moving well over a hundred miles an hour, but it’s crystal clear. You can almost make out the pilot too. How cool is that? If you want to try to see this plane yourself, go to google maps and just search for the coordinates I provided. Good luck!



Free Online Study Questions for Ham Radio Technician License
Posted by
Scott April 2nd, 2009 | 5,253 words | No Comments »

All right, here’s the scoop! I want to get my amateur radio license, but I’m a busy guy. I’ve decided to study from the pool of questions on the ARRL website. I downloaded the text version of the questions, wrote a python script to analyze it, and vwala! I generated a pretty and clean study guide that can be printed on 11 pages (double-sided), which is WAY better than the 120+ pages I would need if I printed their official PDF!

Here you can download no-nonsense questions and answers for the Technician license exam. These questions should be valid through June 30, 2010

>>> HAM RADIO LICENSE STUDY GUIDE with answers marked

>>> SELF-EXAM PDF where answers aren’t marked

>>> An ONLIE VERSION has also been provided

If you want you can see the python script I used to make these gorgeous documents.

« Previous Entries
copyright © 2006 swharden@gmail.com