Discrete Logic Driving Game Development

[Caleb] is hard at work on a driving game based on 7400 series logic chips. This will be his entry in the Open 7400 Logic Competition, and it really outlines why this contest is especially tricky.

The concept behind the game is quite simple. You’re the driver of a car (the red dot at the bottom of the display square seen above) and need to navigate the curves in the road as you drive along. It’s the same game as we saw played on receipt paper back in June. [Caleb’s] using and LED matrix as the display, and we’re confident that if we grabbed our favorite microcontroller we could have this up and running on an 8×8 bi-color display in an afternoon. But doing it without the crutch of a programmable chip really brings out the clever engineer inside of you.

The circuit seen above is a Logisim proof-of-concept that [Caleb] went on to test on the breadboard. He thought he had everything figured out until he realized that his Data Flip-Flops were very occasionally not powering up in the same state as he predicted. Don’t worry, he found a solution to the problem. But we can’t wait to see what other hurdles he encounters as he pushes on toward completing the project.

ATtiny Hacks: Stopwatch Turned Race Clock

ATtiny Hacks Theme Banner

The folks over at blondihacks are gearing up for an event called “The 24 Hours Of LeMons” which is a form of low-budget endurance racing involving cheap cars, heroic repairs, wacky themes, and a lot of serious driving. The format of the race is pretty simple, the cars race around the track continuously for a set amount of time (usually 12 or 24 hours), and the goal is to complete as many laps as possible in that time.

In order to be racing that long each team has multiple drivers, and a in car timer would be especially helpful. While commercial models cost a pile of money, the team was able to source a dual clock / stopwatch with a nice big display, and hack it up with an Attiny13. The stopwatch is deactivated when the engine is off, and reactivated when the engine gets turned back on.

Now when one driver’s turn is up they come in for a pit stop where the engine is shut down for saftey reasons. When the new driver is ready to leave, the clock automaticly resets for them and they can get on with the race.

ATtiny Hacks: ATtiny45/85 Servo Library

ATtiny Hacks Theme Banner

Servo8bit is a library for AVR microcontrollers that allows you to drive servo motors without the need for a 16-bit timer. Obviously, this is quite useful for smaller chips that only have 8-bit timers and it is specifically targeted at the ATtiny45 and ATtiny85 microcontrollers. The library offers 256 steps of resolution, and can drive up to five servos at one time. Servo control pulses can be generated between 512 and 2560 microseconds and if you don’t mind increasing the time between these pulses [Liya] says it would be possible to increase the 5-servo limit.

The library is quite easy to use, but in its current state it would take just a bit of work to port to another device. It’s been written for an 8 Mhz clock signal with PortB used to drive the motors. Using find-and-replace to change the PORTB keywords to use a DEFINE variable should be easy enough, but we don’t know how hard it would be to change the clock frequency.

We wonder if it’s possible to make this a slave device, perhaps implementing a 1-wire protocol?

Interfacing With A PS/2 Mouse

[David] sent in his implementation of reading a PS/2 mouse with a PIC microcontroller and some LED displays. Of course, this follows hot on the heels of using a PIC with a PS/2 keyboard so now might be the time to start digging out your old peripherals out of your junk pile.

[David] began his project trying to figure out how to connect a mouse to his breadboard. After hacking the plastic off a PS/2 mouse extension cord, he wired everything up according to the pinout. Programming the PIC to understand PS/2 commands was a little strange. [David] is used to having his microcontrollers provide the clock signal. The PS/2 protocol is a bit strange as the peripheral sets the clock. Since PS/2 is a bidirectional protocol, the mouse also accepts commands. The host – [David]’s PIC – must send the mouse a command to start sending movement data.

Because USB keyboards and mice are backwards compatible with PS/2 ports, [David] tried out a few USB mice with a USB to PS/2 adapter. Every attempt at using a USB mouse failed. Strangely, when a Bluetooth mouse was tried (via Bluetooth to USB to PS/2), everything worked perfectly. Check out [David]’s PIC mouse demo after the break.

Continue reading “Interfacing With A PS/2 Mouse”

Pinball Machine Eats Your Quarters, Tells Time

pinball_machine_clock

[alanamon] had an old pinball machine in his basement, and thought it would be cool to rig it up to serve as a clock as well. He didn’t want it to be just any clock however, he wanted the pinball machine to be the most accurate clock in his house.

Other than telling time using the game’s scoring reels, there were two other things that he wanted to ensure with this build – that the game functioned normally when desired, and that the clock mechanism made no permanent changes to the game. To accomplish this, he dug around inside the machine and made all of his connections using clips secured to the game’s Jones plugs instead of drilling holes and soldering wires.

The clock runs off an Arduino, which gets its its time data using an old GPS receiver he had kicking around. The receiver pulls time data from GPS satellites much like this clock we featured yesterday, updating the score reels once every minute. The clock can be programmed to turn the machine on and off at a scheduled time each day, and simply turning off the Arduino will allow you to play the game in its unaltered state.

We never really contemplated using a pinball machine to tell time, but it works for us! Check out a video of his pinball clock in action after the jump.

Continue reading “Pinball Machine Eats Your Quarters, Tells Time”

Automated Humane Pest Control

rat_trap_2000

[Tobie] seems to have a bit of a rat problem.

While most people would be inclined to simply buy the oversized Victor spring-loaded rat traps and call it a day, [Tobie] is a bit more humane. To help remedy his problem while also ensuring that no rats are harmed in the process, he built the Rat Trap 2000.

Self-described as completely over the top, the Rat Trap 2000 lures the rodents into its containment area with apples and corn, securing them inside using a servo-actuated trap door. The door is triggered by an Arduino that monitors the holding pen for movement using an IR sensor. All of the action is captured on video using the web cam on his Eee-PC, as you can see in the very short video below.

This certainly isn’t the most cost-efficient way to control your vermin problems, but if you’ve got some spare parts laying around, why not? It’s far more humane than some of the other rodent control solutions we have seen, and it sure beats living with rats!

Continue reading “Automated Humane Pest Control”

Weekly Roundup 9/24/11

In case you missed them, here are the most popular posts from this past week.

Our most popular post is about a hand-made security robot that any good hacker would be proud of. This robot was built by a father-daughter team and has an interesting holonomic drive train that allows it to drive in any direction at any time.

Our next most popular post was about eight breadboard hacks that let you do more with your breadboard than you previously thought possible.

Following that is a post dealing with what you can do with a dead laptop battery. Surprisingly, not all of the cells are dead so there is still useful life in some of them.

Next we have a post about an electronic cello that uses a combination of a magnetic pickup for the bow and resistive strips for the strings. There is even a video of it being played.

Finally, for those of you looking to grow things indoors throughout the year, we have a post about a hydroponic setup.