Sourcing Electronics Components

August 9th, 2009

One challenge for the beginning electronics enthusiast is sourcing components. You can always go to the big guys but the shipping costs are usually $7-8 and the shear volume of components can be daunting. It’s always hard to justify half the cost in shipping for small orders. Sparkfun is inspirational and informative but their prices are ridiculously high IMO.

It’s very hard to find free shipping but many sources are very reasonable. It’s equally hard to find a good selection. Here are a few shops that I’ve purchased from in the past year.

Unicorn Electronics – This place seems to be less well known but there’s free shipping over $25! They don’t have everything but this is an excellent source for passives, semiconductors, connectors, etc. It can take a while to fill up your cart so be prepared to take a few days if you don’t already have a list.

Electronics Goldmine – You can get some very good deals at the goldmine but it can also be hit and miss, you really need to read the descriptions carefully. Sometimes the free gifts are good enough to offset the shipping costs. If you’re a bit crazy like me in the sifting and sorting department then the surprise boxes can be a good time suck (and they’re always a huge value).

All Electronics – Very similar to Electronics Goldmine. I happen to live within driving distance so that’s a huge plus. The storefront is exactly how you would imagine it, a bunch of shelves with boxes of random electronics, only semi-organized. A fun place to visit.

Thai Shop etc. – This is just an Ebay store but I’ve been very happy with their service, selection, and shipping costs. Stock up on those female headers and crystals. In general I’ve found it hard to source electronics components on Ebay but 5x Atmega8 for ~$9 has been a good buy from other vendors.

Futurlec – Great selection, prices, and reasonable shipping costs. The downside is that it can take forever and a day to receive your order. They’ve also botched one of two orders so far and didn’t inform me of out of stock items, instead just letting the order sit until I contacted them.

Seeed Studio – I’ve only purchased here once but they have some harder to find items at reasonable prices. Shipping is also not bad.

Modern Device – Some nice alternatives to the Arduino and a decent selection of LCDs. I also bought 5 RBBB bare boards from Wulfden for $11, not bad.

RETS – The Real Estate Transaction Standard

August 7th, 2009

The wife and I have been house hunting for a few months. There are some good sites out there but they could be better. So it got me thinking. Everything in real estate revolves around the MLS so I knew that it was just a matter of getting my hands on some raw data to entertain the idea of starting my own site.

After an evening of research it became apparent that the real estate industry has been making great strides in standardizing on a common format to share listing information. That standard is RETS, the Real Estate Transaction Standard.

RETS is a set of URLs and a simple XML format that is used to move real estate information around the internet. The format is a bit crude but it certainly gets the job done.

There are many MLS providers out there and they all support RETS. The general idea is to get the information once or twice a day and store it in your own database to access it further.

From what I understand you need to be a real estate broker to get access to the MLS but the good news is that rets.org supplies a demo RETS server with public access. The amount of data is very limited but its great to get your hands dirty. There are also many free tools and clients to get started.

I played around with PHRETS and was able to output a simple listing with photos and Realtor information. I think I used all the available data, which wasn’t much.

Next steps are to get a hold of some real MLS data. That’s it in a nutshell, we’ll see if it goes anywhere…

Javascript Decimal to Binary

July 19th, 2009

I was logging binary data in the Arduino serial monitor when I noticed that it wasn’t padding with leading zeroes. It made me wonder how hard it would be to write a decimal to binary converter in Javascript. Here’s what I ended up with, it only supports up to two bytes (any number <= 65,535):

function decimalToBinary(dec)
{
    var bit,
        bin = "",
        place = dec > 255 ? 15 : 7;
   
    while(place >= 0){
        bit = 1<<place;
        if(dec/bit >= 1){
            bin = bin + 1;
            dec -= bit;
        } else {
            bin = bin + 0;
        }
        place--;
    }
   
    return bin;
}

I also managed to hang Firefox with a bad loop while writing it in the Firebug console, I guess unresponsive scripts aren’t checked there. :P

The Whole Domain Bit

July 19th, 2009

I was trying to find a domain for this site. I started out wanting shiftedbit.com but of course it was taken. I tried many, many variations with “bit” in the name but almost all of them were unavailable.

There were two available that I considered so you may want to nab them while you can: chargedbit.com and statebit.com. I like the first since it incorporates electricity and software.