TF2 Kill Counter, Binary Style

[youtube=http://www.youtube.com/watch?v=d7Pft-GPQWU]

After getting some fun new toys for Christmas, [IceColdFreezie] set up this kill counter for Team Fortress 2. At first glance, we weren’t that impressed. It’s an Arduino and a few LEDs. Then we saw that it was counting the kills in binary. We’re not sure if it gets much geekier than that. You can download the source code and try it out yourself. Just don’t make more than 31 kills.

[via littlebirdceo]

Binary Adder Will Give You Slivers

marble_adder

A while back we looked at [Matthias’] one-pin dot matrix printer. Now we’re jumping over to his woodworking website to feast on his wooden binary adding machine. His creation uses glass marbles as the data for this device. A resolution of up to six bits can be set on the top of the adder, then dropped into the machine as one number. With each new drop, the number is added to the total stored in the machine. The device is limited to totals less than 64. If a larger number is enter, the device wraps around back to zero by dumping the 7th bit off the end. He’s even got a master clear that allows you to easily read the stored total and evacuate the “data” from the machine.

This has quite a few less wires than the last binary adder we looked at… wait, it has no wires! But we still love it. A physical representation of what is going on with binary math really helps grasp what the magic blue smoke inside those silicon chips is all about. Don’t miss his video walk through of the adding machine embedded after the break. Can’t get enough of marbles interacting with wood? He’s got a few more projects you might enjoy. Continue reading “Binary Adder Will Give You Slivers”

8-bit Binary Calculator

binary_calculator

Don’t feel like shelling out $5 for a fancy factory made calculator that won’t even do binary math? [Jeff] decided to prove his mastery of gates and his disdain for base 10 by building a binary calculator using XOR, AND, and OR chips. Calculations can be input in two ways: through digital logic headers or by three banks of DIP switches used to enter the operator and the two operands. Although limited to addition and subtraction, this is a great way to make sure you really understand digital logic. Take a look at the rough design schematics in his album. The design is modular so if you have one of each gate and a few LEDs sitting around you can give this a whirl.

Snow Leopard Ditches Real Math For Fake

snow_leopard_fake_math

We’ve always felt that hard drive manufacturers were dirty crooks because of their use of fake math to make drives sound bigger than they actually are. Here’s a quick refresher for those who need it: Because digital information consists of 1’s and 0’s (two possible settings), digital architecture revolves around powers of 2. Long ago, when nomenclature was setup for measuring data the term kilobyte was adopted to represent 2 to the 10th power bytes (base 2, aka real math). The problem here is that 2^10= 1024 and when laymen hear the root “kilo” they think 1000 which is 24 byes less (base 10, aka fake math). So, if you have a 500,000,000 byte drive, base 10 math would call that a 500GB drive, but base 2 math would call that 476.8GB.

We understand why hard drive manufacturers use the base 10 system; larger sounding drives sell better. Now we find out that OSX 10.6 Snow Leopard is using base 10 math to calculate storage space. While base 2 math is the standard storage measurement for operating systems it may at first be difficult to understand why Apple would change to a base 10 system. But think about it once more, doesn’t Apple have a lot to gain if all the storage-containing-hardware they sell sounds bigger than it actually is?

[via Gizmodo]

Update: Force Snow Leopard to calculate storage in base 2 [via Gizmodo]

Manual Protocol Analysis

packetfu

As a followup to last week’s post on automated protocol analysis, [Tod Beardsley] has written up how to start analyzing a protocol manually. He walks through several examples to show how to pull out the interesting bits in binary protocols. His first step was sending 10 identical select statements and capturing the outbound packets. He used the Ruby library PacketFu to help with the identification. It compared the ten packets and highlighted one byte that was incrementing by four with each packet, probably a counter. Looking at the response indicated a few other bytes that were also incrementing at the same rate, but at different values. Running the same query on two different days turned up what could be a timestamp. Using two different queries helped identify which byte was responsible for the statement length. While you may not find yourself buried in HEX on a daily basis, the post provides good coverage of how to think critically about it.

How-To: Binary Clock Using A Freeduino SB 2.1


Solarbotics recently released its own version of the Arduino microcontroller development board. They based their board on the Freeduino design. We thought this would be a good opportunity to review the new board as well as present a How-To about building a simple binary clock. Along the way we’ll cover some basics on attaching LEDs and switches to a microcontroller.

Continue reading “How-To: Binary Clock Using A Freeduino SB 2.1”