[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]
You thought it was lame until you realized it was being displayed in binary?! What else would it be in using 5 leds in a row…
Is there an API to get the kill count? That’s the most intriguing part to me.
Hm – doesn’t “counting in binary” mean that he only didn’t bother converting the data into some other form but simply outputs it to the ports of the AVR?
LOL its tens of times easier to (program something to) count in binary than in decimal… But yeah, I agree with Kyle that the interface is way more interesting.
In the quickest read of a blog post I’ve ever done, I noticed he says, “I made a program in VB that reads TF2’s console log and tracks my kills, deaths, and suicides.”
C’mon you guys, read the damned link before posting.
Where does everything need a Arduino? Seriously, this could have been done on a PC parallel port with a few LEDs and resistors….over kill IMO
He must be using “con_logfile” command and checking for his steam name on new entries on the file.
@kyle You can see from the screenshot that it reads the console .log file. This is lame stuff…
31 kills? c’mon. really? make it count higher! :-p
Hey all, this is IceColdFreezie. Here’s how it works more in depth:
The VB program reads through TF2’s console log file and checks for your name and the words Killed, Suicided, or Died and adds 1 to the appropriate counter. If you get a kill, a variable called lifeKills goes up by 1 and if you die it resets to 0. This is sent to the Arduino every time it changes, and is converted to binary and displayed on the LEDs (I don’t have a 7 segment display)
As I said in the video description, its nothing too spectacular or useful.
Also, @poot: Could you explain how that would work? It sounds cool and I’d like to simplify it all but I have no idea how to do that stuff.
5 bits? Hell, I’d need at least 10 bits to count my TF2 kills in a single game… *flex*
He should have made the arduino into an aimbot.
arduino + vb!!! oh god what have you done!
Hahaha, don’t kill me!
I’m learning C++ but i’m still a failure at it
@IceColdFreezie: See http://www.beyondlogic.org/spp/parallel.htm for a parallel port primer. Outputting a byte value to the base address of the parallel port will make that value appear on pins 2~9. Inpout32.dll (http://logix4u.net/Legacy_Ports/Parallel_Port/Inpout32.dll_for_Windows_98/2000/NT/XP.html) can be used to access the parallel port via two simple functions, P/Invoked from VB (or just about any other programming language).
Of course, parallel ports are (sadly) increasingly rarely found on PCs, though they do provide a decent number of I/O lines at sensible voltages. Using USB may well be overkill but it’s the most widely accessible port these days.
Gee, eleven wires? I cloned it a couple minutes ago with only six.
Really, though, pretty cool little thing. Might throw one together and take it to my PC gamer friend’s house.
binary counting is a 5 minute “project”. . . especially on an arduino.
@ICeColdFreezie: Use Inpout to use the parallel port. it consists of inpout32.dll for the executable but you’ll need to get the .lib to compile your own program. I’m sure it works with C/C++ and I think I saw a VB port one time. You could just directly connect the LEDs to the Parallel port pins through resistors.
People still write ‘code’ in VB? sigh
It’s interesting and kudos for furthering your knowledge base and tinkering, etc. It’s just not something I would expect to see posted here.. There’s nothing ultra spectacular about it. :/
Believe me, i’m as surprised as you are, haha.
oh my G.
i am going to make this right away, yes, yes, yes i am… NOT! there should be a category “arduino related junk” for these kind of things. sorry, but that is the (sad?) truth.
Remember back when you started out in electronics yourself. Blinking a LED was an accomplishment, counting in binary on a few LEDs a cool thing. This post must be very motivational to IceColdFreezie.
Whether or not Hack-a-Day should provide quality posts, or be the source of motivation for beginners by posting their beginner projects is something I leave up to the discretion of HaD and its readers…
To IceColdFreezie: keep playing with that Arduino despite of all off-putting comments people make about it. It is a good tool for learning and having fun, and who knows, maybe one day you’ll be whining at the uber-hackers for posting lame hacks! :-)
Whether or not it’s a “worthwhile” hack I don’t know. But, I think it’s a great use of “tools I had to hand.”
Why bother soldering up a parallel port connection (like serial ports, do computers even reliably still have these?) when you can shunt out an 8 bit value to 8 pins in 1 line of code with the direct port access (if you pick consecutive pins of course).
Given it’s still “something hanging off my computer” I think I’d go for the Arduino solution for expediency.
Ob Whine: should have used a proto-shield instead of a breadboard though…
I really don’t see how making something count in binary is cool. It seems like a step backwards, a unnecessarily harder way to do a simple task. I bet if Ford made a new car that required the driver to step out every few minutes, open the hood, and adjust a knob for the ignition timing (which had an Arduino flashing an LED whenever the timing was off) then hackaday would basically be all over it as the ultimate car for geeks.
This site used to be cool before it turned into an obnoxious rambling commercial for Arduinos.
Interesting project. Also… good job patiently putting up with the criticism.
Arduino + VB, do you see pattern here ? so familiar pattern in specific group of people
well
here’s the source
http://www.filefront.com/15246085/ICF-Arduino-Kill-Counter.rar/
if it matters to you at all
^^^LOL @ Umm… :)
It’s not the site that is crazy about arduinos it’s that people grow up with knowing only arduinos, all other sites with projects are also full of arduino stuff because that’s what people out there most often use.