Email Alarm System

I’ve been in the mood for some hardware hacking for a while. Recently at work I thought it would be nice to have a way to know if an important (emergency) email came in that required attention. These fire-drills are just part of the job. I have multiple computers and screens so an on-screen alert isn’t always effective. Audible alerts don’t work either because speakers are only connected to one computer at a time and often headphones are plugged in. I need something more independent.

My solution was to build a USB alarm system: Two rotating LED lights to get attention visually as well as a 76 db piezo buzzer which chirps when the system is activates to help get attention. The buzzer only chirps and only when the system first invokes so it’s not an annoyance. It’s enough to get attention, but not enough to bother others. It has multiple chirps so that I can potentially setup multiple alert types.

Now we can really be on the ball!
P1 Bug Report Alarm
Obligatory goofy office signage

Continue reading

iPhone 4 Teardown Analysis

iPhone 4 Teardown

iFixIt has their traditional teardown posted. After analyzing every picture, a few things are noteworthy:

Stainless Steel Antenna

The stainless steel antenna strikes me as more than just an antenna, but Apple will never admit it. The iPhones before all suffered from the same structural weakness. If dropped so that it lands on a corner or a side, the body flexed putting pressure on the glass and possibly digitizer if the impact was strong enough. This resulted in the shattered glass you sometimes see people walking around with. If the phones land on their backs or faces, they are often fine minus a tiny scratch or two. This is because the sides of earlier models were not very strong. The metal band you see on the earlier models isn’t enough to hold up to the force of a drop from 5 feet. It was a thin piece of stainless steel around what is otherwise plastic. Most of the metal in the previous phones are actually thin EMF shields, not anything structural.

I suspect this new frame also serves to strengthen the phone and prevent this type of damage.

Creative EMF Shielding

The previous iPhones pretty much just had a large EMF shield like we see in most consumer appliances. The new iPhone has a bunch of tiny EMF shields. The advantage to this approach is that they can cram more things into small nooks and crannies. Apple is clearly desperate for every nanometer of space they can get.

No Surprise Chips

Nothing inside circuitry wise is even remotely surprising. Samsung flash memory, Broadcom WiFi, Bluetooth (BCM4329), Cirrus Logic audio codec, TriQuint/Skyworks GSM/GPRS chipset, STMicro accelerometer. The new gyroscope is suspected to be STMicro, which isn’t shocking. There is a Broadcom GPS (BCM4750) chip, same as the iPad. Prior to the iPad, the iPhone 3G and 3GS used an Infineon Hammerhead GPS chip which was questionable in performance. Perhaps this will finally give the performance necessary for eventually making turn by turn directions a reality.

Battery Technology Needs To Improve

It’s becoming clear looking at the iPhone 4 that Apple made the right decision to make the battery non-removable. The hardware and extra material to make it removable would have really bulked up the phone. At this point the battery is by far the biggest single space consumer in the iPhone. Look how dense the circuitry for the phone is in comparison to the hulk sized battery. Apple crammed what a few years ago was a full PC into that sliver on the side of the phone. The rest is largely the battery with glass and LCD in front and various speakers, microphones, cameras and sensors mixed in the otherwise empty nooks.

Apple really needs to find a technology that can offer a higher power density ratio for the iPhone to get any lighter or longer battery life. Custom silicon will help them, but it’s only going to go so far and so fast. It’s becoming obvious that power is a major concern and limitation for Apple engineers. I suspect Apple spends a ton of R&D time and money trying to figure out how to deal with this limitation the best they can from the physical space requirements to power efficiency and software innovations.

Don’t be shocked if Apple either invests or just acquires a company who is doing something interesting in the battery space just like they picked up P.A Semi.

Environmental Stats

Apple hasn’t published their environmental report yet on the iPhone 4. I’m curious how the greenhouse gas emissions changed between the iPhone 3GS and iPhone 4. Several things have changed about its composition including the glass and steel frame that should make it interesting. The iPad’s slightly different (and larger) power adapter boasts an 80% efficiency rating. The iPhone 3GS is only in the 70% range. I’m curious if Apple quietly updated the adapter at all or not (I suspect not, but it’s possible).

Image courtesy iFixIt

Bad Capacitors

A few weeks ago, one of my work PC’s decided to just died on me. It was able to reboot but crashed late in the boot process. Eventually it turned out that one of the video cards (NVIDIA Geforce4 MX4000) went bad. Pulled the card and I just threw it on a shelf. The other day I looked at it and noticed 4 of the 5 capacitors on it actually vented. I took a few quick pictures of the carnage. You’ll likely want to go to the real high resolution pics to see the detail.

The alarming thing about this is that capacitors are found in a very widespread range of products. That’s why backups are important when you have critical systems.

Continue reading

Of Mice And Keyboards

It’s not a secret that I’m a keyboard snob. I’m picky with mice, but I’m clearly a keyboard snob. To give some background I once swapped the keyboard of a brand new laptop (1 week old) for the exact same keyboard manufactured by a different supplier for IBM/Lenovo because of the spring quality. Only then was the Thinkpad T43 keyboard acceptable to me. I actually found it better than the Thinkpad A31 after the swap.

I hate most keyboards that I’ve ever used. Given how much time I spend using them, I think my snobbery is justified.

Current Setup

I’ve flirted with the idea of replacing my Logitech Cordless Navigator Duo since 2006 and have yet to execute. I like this keyboard as far as the feel goes. Good spacing, great action, I can get pretty good speed/accuracy on this thing. It’s also quite comfortable despite being a little thick. However the wireless is occasionally flaky especially using a KVM. The software for “features” is crap to say the least and unusable. Now the wrist rest is cracking and creaky. To solve the battery eating problem I’ve been using rechargeable batteries, which have made it much more practical to use since the mouse is insane. The whole setup is approaching replacement time. I’ve had the same keyboard and mouse since 2003. Before anyone asks, the labels on all keys are visible, and slight wear on the space bar. The paint on the mouse is flaking a little.

I have an Apple Extended Keyboard II (M2980) stored away since I’ve always felt that was a great keyboard (second to an IBM Model M) and want to keep the option to go back to it in the future.

I’ve considered a Model M via Unicomp who now owns the design, but it wouldn’t be a daily keyboard since the noise isn’t always desirable. It’s more like the impractical garaged car you’d take out on nice weekends for a drive. I haven’t ruled this out.

I’ve also considered a Matias Tactile Pro 3 but I just wasn’t sold on it.

The Next Generation

Apple Keyboard With Numeric Keypad

I’m leaning towards the lesser known Apple Keyboard with Numeric Keypad. It’s actually offered as an option when ordering the iMac or Mac Pro and available separately. I like the newer MacBook Pro keyboard design, despite its odd appearance. The thing I never quite liked about laptop keyboards in general is the spacing, which this fixes. I really don’t mind the low key-travel design as I find it increases typing speed. Another thing I really like about this design is that it’s mostly closed, so it’s much cleaner and less prone to dust. One thing I don’t like is that it’s not very serviceable should it need cleaning (welds vs screws). The keyboard is wired, so the wireless crap is no longer an issue and KVM compatibility is much easier.

It’s a slight gamble since it’s a very different keyboard design, but it’s not that expensive and I’m pretty sure it will work out.

The big question becomes what to do about the mouse. The best I’ve seen so far in the corded mouse market is the Logitech M500, which I’m still not ecstatic about. I’d like something heavier, and ideally more than 1000 dpi. I’ve also read that the glide pads are prone to coming off. The G500 and G9x gaming mice offer the weight and higher resolution, but I’m not into the design of the mouse itself. The Performance Mouse MX seems nice and reminiscent of the discontinued MX Revolution, which was a nice weight… but it’s wireless, which means it’s not in the running.

Before anyone mentions the Apple Magic Mouse let me note it’s Bluetooth and must be paired with the computer, and is not usable with a KVM switch, which I’m not willing to give up.

Microsoft has lots of mice in their lineup, but not one that actually seems nice to me. I’ve never liked the design of their keyboards/mice. They always had this cheap plastic feel to them.

Photo copyright Apple Inc.

Apple To Use Micro USB?

I mentioned back in September 2007 that cell phone manufacturers were looking to replace their varied connectors with Micro USB meaning most cell phones would use the same chargers and accessories. MacRumors points to a Reuters report that Apple has also agreed to go Micro USB in Europe, which presumably means the US as well.

I personally doubt Apple will just ditch the 30 pin dock connector in favor of Micro USB. I suspect Apple will either bundle a Dock to Micro USB adapter instead or add a Micro USB port next to the Dock connector. Among the many reasons:

  • The dock is essentially “USB+ Firewire + Audio + Video + other”. Take a look at the pinout. It’s much more complicated to get USB audio working than to read line out. For the intents and purposes the dock is as good if not better interface.
  • The dock connector has an extensive list of implementations including many accessories and car audio systems. “Designed for iPod/iPhone” is preferred by Apple over “Designed for mp3 players”.
  • The dock is a proprietary interface, Apple collects a licensing fee for its use in accessories.

Since the dock connector is really “USB+ Firewire + Audio + Video + Other”, a USB adapter is obviously cheap and easy to produce (they already ship a USB cable with all products). Hence I suspect there will be either a Micro USB adapter, or Apple will add the port to the bottom of the iPod/iPhone since Micro USB is very small.

There is still an advantage to having Micro USB. For one charging will become more universal across cellphones. This means car manufacturers, and even airplanes can offer Micro USB to let people charge phones easily via a single ubiquitous low powered interface.

It’s also more environmentally friendly since you’ll be able to buy your own separate higher quality power adapter. No more cheap bundled power bricks known for their phantom loads. Or just charge off your computer. You’ll also be able to use the same charger and accessories with more phones.

I’m glad to see this finally happening.

Edit [6/29/2009 @ 10:00 PM EST]: Pocket-lint says Apple stated to them it will be an adapter.

Google’s Data Center Secrets

Big news today is that Google “unveiled” (more like confirmed) some data center secrets:

Custom Servers

It has been known for years that Google has been building it’s own servers rather than buy from a vendor. They have defended this as their servers are more efficient and customized for their needs than they could ever buy. They cut out things like a video card which do nothing but add a point of failure and waste power. They put a battery on the server itself rather than have a UPS for the rack they found it to be more cheaper and more efficient. They also hang the power supply away from the rest of the system itself, presumably for cooling. This actually isn’t shocking since it’s been leaked several times before, though this is the first time that I’m aware of Google speaking publicly about their design in this much detail.

Container Data Centers

Apparently since 2005 Google has been using shipping containers as data centers. It’s been known for a long time Google was interested in the idea (as were other companies) but a first that they have actually been using them for a while. 1,160 servers per container utilizing 250 kilowatts of power = 780 watts per square foot. Very impressive.

I guess it’s only a matter of time before we see commercial servers, and perhaps even some desktops with power supplies that have their own batteries.

Update [4/11/2009 @ 5:00 PM EST]: Google has a blog post up including video of the summit.

SheevaPlug Has So Much Potential In A Small Package

One of the coolest things I’ve seen announced this year so far is the Marvell SheevaPlug.

There are so many things about it that are impressive. It’s size, it’s 1.2 GHz processor, only drawing 5 watts, it’s open design, it’s low cost. At $99 for the development kit, that’s a pretty cool device. I suspect we’ll see a lot of interesting hacks take advantage of the low cost hardware. Oh and it not only supports Linux, it’s trying to improve Linux support.

This little gadget is so tempting. I can see this being a hobbyist’s best friend.

The Future Of Tablet Computing & Netbooks

Two of the biggest buzzwords in mobile computing right now (besides iPhone and Android) are Tablet Computing and Netbooks. Many people expect one of them to be the successor to laptops. I don’t think it will be quite that simple.

Tablet Computing

Modern tablet computing designs are really all based on Allan Kay’s 1968 Dynabook design. While never constructed, it’s almost obvious design has influenced many companies to make desktops and laptops that are controlled via a touchscreen. PDA’s and smartphones also follow this basic design closely, though I wouldn’t really consider these devices to be tablet computers.

A few laptops manufacturers offer a tablet variant of a laptop. One of the most popular is Lenovo’s X Series. It’s a regular laptop minus some modifications to allow for a touch display and a special hinge system. All the power of a laptop with the convenience (and cool factor) of a touch screen.

The downsides of this are obvious. Laptops aren’t that light, they are power hungry and have moving parts (hard drives in particular). They also don’t come cheap.

Netbooks

Netbooks have gained considerable ground in the past year. A netbook is really no different than a typical laptop except it’s smaller, lighter, more power efficient (thanks to a slower power efficient cpu and smaller screen) and cheaper. By focusing on a handful of terminal activities such as browsing the web and email they can scale back on most of the fancy hardware.

One of the most popular Netbooks is the ASUS Eee PC. It’s advantages over a typical laptop are it’s low cost, small size, and weight.

The downsides here are speed, small screen and small keyboard.

The Merge

CPU’s have advanced significantly in the past few years. One of the most obvious changes is multiple cores. Another less obvious but equally important evolution is power efficiency thanks to a new breed of chips like the Intel Atom.

Touchscreens have gotten significantly better. The most obvious is the iPhone’s capacitive touchscreen. As opposed to resistive touchscreens and a stylus the ability to handle multitouch revolutionizes the interface.

Solid State Storage (SSD) has also dropped in price and increased in availability. This means that storage is faster, consumes less power and more reliable in a mobile device than previous hard drive technology would allow.

Users have also evolved in computer usage. Several years ago almost everyone used an email client. Now many are using webmail only thanks to improved interfaces. Even spreadsheets and office documents can be handled with a web interface. The need for client side computing is becoming less of a necessity for many people. Wireless networks have only sped this up.

I suspect that due to these current trends tablets and netbooks will blur and move towards a new category of ultraportable computing. Obviously just small evolutionary changes could drastically change this but that’s how I interpret the current trends.

Apple today offers laptops with dual GPU’s to save power and allow for higher performance by selecting the GPU. I suspect it’s even possible to eventually see dual CPU’s where one could be selected for performance, and another for better power consumption (great for when just browsing the web).

I suspect the rumor of an Apple tablet coming Q3 will fall largely along these lines and accelerate the merge between tablet computing and netbooks. Time will tell.

Palm Pre Thoughts

The big news today seems to be the new Palm Pre. It’s a rather beautiful device, though I’m not sure it will save Palm.

  • Developer API – Palm choose to make it literally a “WebOS” (that’s what they call it). Applications are written using HTML5, CSS, JS (via WebKit) and there are API’s to access a variety of services. While cool this does have a big downside. There’s no real way to make it into the gaming platform that the iPhone is becoming. <canvas/> can only take you so far animation wise, not to mention JS isn’t really an ideal language to make a full length game. These applications are essentially widgets. That’s fine for many/most mobile apps, but not all. It also doesn’t allow you to take advantage of 3rd party libraries that aren’t on the device or written in JS.
  • Development Community – Palm is going to have a tough time building a dedicated development community. There will be lots of “widgets” ported to the device, but with the iPhone being mandatory for hot new apps, Android showing lots of potential and backing, and BackBerry being ubiquitous, how many more platforms can developers target in this economy? There’s also Windows Mobile with an established user base. They will need to sell a lot of devices to attract developers.
  • Many Features Easily Duplicated – It has copy/paste, MMS, IM, and other things many people gripe about the iPhone not having. That said, they can be implemented in a software upgrade on the iPhone leveling out the playing field quickly. Hardware wise, the removable battery and 3MP camera can’t be easily duplicated. Those are solid enhancements.
  • Background Applications – Since it’s WebOS, the “applications” are nothing more than tabs in a browser. Application switching is then nothing more than switching tabs. How will this behave in real life? Hard to say. I’m hoping each “application” is isolated into it’s own process similar to Google Chrome rather than one process. I’m not sure how they balance CPU time between competing processes.
  • Battery Life – I can’t find much on battery life. I presume that depends on application usage but it’s not prominent on the Palm site or any review I’ve seen so far.

I should note that since it’s API is essentially building widgets using web technologies, don’t expect to see a Mozilla browser anytime soon. The closest you’d get is a Fennec-like UI built on and around WebKit. It could prove to be an interesting UI experiment, but it won’t share the same technologies.

It’s ironic but so far Windows, Android and BlackBerry are the only major mobile OS’s that allow 3rd party applications to be downloaded directly to the device unrestricted. Maemo does as well, but it’s more internet tablets. iPhone while based on open source require you go through a proprietary app store. Both the iPhone and Android have a kill switch so that they can terminate software that doesn’t abide by their policies. Palm (also based on open source Linux) won’t even allow true native applications so far.

It’s a cool device, but I wouldn’t declare Palm back from the dead yet, nor would I declare them dead. Like I said, it’s competing with 3 mega platforms for not only users, but developers whose applications will bring in users.

Update [1/9/2009 @ 9:45 AM EST]:Clarified App store requirement is for iPhone and that a kill switch exists on both the iPhone and Android.

The Next Generation Of Computing

I got my current laptop in Oct 2005, though the model was released in spring/summer of that year. My Mac mini is an 1st Gen (G4 1.4GHz) from Jan 2005. Needless to say my hardware at home is getting close to the point of needing an upgrade. Due to my laptop being replaced unexpectedly I have two computers getting to that magic point at almost the same time. Not much I can do about that. I’ve been thinking about the next generation and what I want to do. Ideally I’d like to simplify my setup, and hopefully in that process get more bang for the buck. In some ways I think I will, in others I won’t.

My initial though is to eventually get a MacBook Pro once it’s truly 64bit and supports at least 8GB RAM. GPU accelerated video decoding would also be nice. I like my computers expandable and to last a while. In 3-4 years time I think I’ll want more than 3GB of RAM considering I think 2GB is the minimum today. Yes the hardware they ship today technically supports this, but Apple’s firmware doesn’t for reasons unknown. I’d also like one or more USB 3 ports, but we’ll see if that happens in the 2nd half of 2009 or not. I don’t think the lack of would be a deal killer though. I think it will take quite a while for USB 3.0 speeds to be necessary to the point of widespread adoption.

Laptops are great since they can be moved around which is handy from time to time (though I use my laptop more at my desk than anywhere else), but they do lack the power that I sometimes want. The Mac mini obviously never delivered what I really needed in that department. My thought is to build a desktop rig composed of a multi core CPU (whatever makes sense at the moment), min 4GB RAM, at least two SATA drives (primary/backup) and dual boot Windows and Linux. This beast would be pretty much for when I need some real horsepower. By building it myself I could invest a little wiser in a good case, power supply, etc. and upgrade this thing through several revisions for years to come rather than throw it all away after a few years. I can also target my $ towards components I care about.

My primary (day to day) computer would be the MacBook Pro and would likely have Parallels installed so I can run Windows if/when necessary (mainly since Quicken for Mac sucks last I checked and so I can test web pages in Windows). When I need to do something that laptops suck for due to small slow disks or just being slower, I would have the desktop rig available.

One of the downsides here is that while my current display is VGA/DVI, both of these systems would be DVI. I could either degrade the signal to VGA and use my current KVM, or upgrade to a DVI capable KVM switch which isn’t cheap (I haven’t seen less than $250 for something like a IOGEAR GCS1782). The DVI switches don’t support dual displays unless you drop some serious cash, so that’s pretty much out of the question. This adds to the complexity. Is building a KVM for DVI really that much more difficult to warrant the price difference? Or is it simply there aren’t enough in the market to drive the price down?

When should I start this? What system should I target first? Which should that system replace? Who the hell knows. I’m thinking later next year. It’s not so much a “plan” as an idea. I know I need to upgrade to more modern hardware since I won’t be able to run Mac OS X 10.6, and XP is getting to me. Both use 2.5″ ATA/100 drives which are becoming hard to find, and even when you find them are pretty small. Both are maxed out in RAM.

I’ll likely retire the Thinkpad to just for travel and other silliness, and perhaps save the G4 mac mini for some diabolical scheme. Apple even alludes to some of the possibilities on it’s site (see “Big Ideas” on the right rail of the Mac mini page).

It gets surprisingly complicated when you want it all and have it fit on your desk.