How to add flair to a webpage that shows your project data

posted Jan 27th 2012 10:58am by
filed under: software hacks

This temperature display may not knock your socks off, but it’s a simple demonstration of how you can used vector graphics as a web readout for data (translated). [Luca] wrote this four page tutorial to help others, he makes it look really easy, and the sky’s the limit on eye candy once you get he basics in place.

The first step is to create the dynamic SVG (vector graphic) file using Inkscape that will be used by the webpage. This starts with a static background, in this case the grey parts of the thermometer which will not change. Over the top the blue parts were added, with just a bit of XML editing to give those parts a hook which will be used in the next step. The demo above will have a moving blue bar and changing numeric output to match data coming in from a temperature sensor.

An SVG file is just a text file that is rendered as a graphic when loaded. [Luca] shows you how to used the identifiers set up when making the graphic to dynamically change the size and value of the blue parts with server-side PHP before sending the graphic to the browser. With that in place you just need to give the PHP file access to the data. He shows how to use the Pachube API but you could just as easily get this via serial or otherwise.

Synthesize with a hard drive

posted Jan 27th 2012 9:01am by
filed under: musical hacks

If you’d like a pseudo-mechanical way of producing a droning synthesizer sound, [gijs] is your man. He made a small synthesizer out of nothing but an old hard drive and a few components.

Whenever a disk platter is spun manually, the spindle motor inside the drive produces a few out of phase sine waves on its connections. [gijs]‘ synthesizer compares and amplifies these sine waves and sends them out to a speaker. The result is a strange droning chiptune-esque arpeggio.

The circuit for the build is soldered directly to the hard drive enclosure Manhattan style. Because the output of the spindle motor produces out of phase sine waves, [gijs] thought it would be a good idea if he could capitalize on some phase interference to alter the timbre of his synth. The entire build is mounted to a wall with hinges to one side so the speaker can be moved around. It isn’t much of a change, but we can here some wave forms cancelling each other out.

Check out the video of the build after the break. There’s also a few audio samples available on the project page.

Read the rest of this entry »

@publictextbox is a Twitter enabled phone booth

posted Jan 27th 2012 8:01am by
filed under: misc hacks

In the interests of open communication in shared spaces, [dan] made a public text box that serves as a terminal to the @publictextbox twitter account. We could see something like this being useful in a hackerspace or other hang out to announce to the world the happenings of the resident makers and builders.

The software setup is very simple and can run on just about any old computer you might have lying disused in a corner. The app is built with Processing, and the code is extremely simple and easily modifiable. Even though the case is a lovely cardboard number, the Twitter Box can be dressed up as any imaginable form. We’d love to see a nice TARDIS blue, but we’ll leave that up to [dan].

You can check out the demo of the Twitter phone box after the break. Alternatively, you could re-tweet this post and take part in a load test for the @publictextbox.

Read the rest of this entry »




Sixty4Racer an 8×8 Game

posted Jan 27th 2012 6:01am by
filed under: arduino hacks, led hacks

[Pete] has a cool new tutorial creating a re-imagining of the Atari classic “River Raid” for the PIX-6T4 micro controller based game system. The PIX is a netduino on a larger board featuring 2 analog controllers, a speaker, an sd card and an 8×8 monochrome LED display. With a resolution that low, it may make the good ole VCS look like a 360, but there is still a lot to learn about making a game at this low of a level.

The tutorial [Pete] has put together covers concept, gameplay, progression goals, screen handling and a boat load of code to show how it all goes together. Though this is for a C# based system many of the basics apply to just about any system you can imagine. So if you’re looking to learn how to handle graphics in C, sprite animation, collision, or randomly putting levels together out of tile blocks then you should take a look.

Join us after the break for a quick video.

Read the rest of this entry »

Analog Joypad for your Retro PC

posted Jan 26th 2012 2:01pm by
filed under: how-to, news, peripherals hacks

Part of the fun with old computers is playing some old school games, and while you could play them with a keyboard it is much more fun with a joystick. You can get old joysticks all day long on auction sites, but you have to watch out. Some are digital, which wont work for many games on many systems. Some were cheap to begin with and probably worn out, and many are flight sticks … ever play pac-man with a giant flight stick?

What I really wanted was a game pad like device for my 1986 Apple //c , using one of the modern thumbstick analog controllers. Using a thumbstick out of an old XBOX(1) controller, some generic parts from Radio Shack, and a little bit of effort , I ended up with exactly what I wanted.

Join us after the break and I will show you how to get there!

Read the rest of this entry »

Program a microcontroller over the Internet

posted Jan 26th 2012 12:36pm by
filed under: Software Development

If you’ve ever wanted to program a microcontroller “in the cloud,” you might want to head over to Inventor Town, an online IDE that allows you to write and compile firmware for the MSP430 series of microcontrollers.

After logging in with your Google account, you’re presented with a ‘My Projects’ page. From there, you can make as many projects as you like for the MSP430x2231 or ~x2211 microcontrollers. The online editor has the vital keyword highlighting feature, but sadly not many of the more advanced text editor features, like a red underlined syntax errors. After you’ve written your code, press the compile button, download your .HEX file and upload to your board.

We’re surprised we haven’t seen something like this before. To us, this seems like the ideal basis for a github-style microcontroller code-sharing website. Any enterprising ATtiny fans want to take a crack at this one?

Thanks [Rob] for sending this one in.




[Sprite_tm]‘s three-component FM transmitter

posted Jan 26th 2012 11:36am by
filed under: ATtiny hacks, radio hacks

When the Regency TR-1 transistor radio came out onto the market in the 1950s, it was hailed as a modern marvel of microelectronics. With only four transistors and a handful of other components, the TR-1 was a wonder of modern engineering. [Sprite_tm] may have those old-timers beat, though. He built an FM transmitter with the lowest parts count of any transmitter ever.

Like most of [Sprite_tm]‘s builds, it’s an unimaginably clever piece of work. [Sprite] overclocked the internal RC oscillator of an ATtiny45 to 24 MHz. After realizing the PLL running at four times the frequency of the oscillator was right in the middle of the FM band, he set about designing a tiny FM transmitter.

[Sprite_tm] remembered his work on MONOTONE and made a short song for hit ATtiny. The firmware for the build takes the notes from his song and varies the 96 MHz PLL frequency a tiny bit, thereby serving as a tiny FM transmitter.

Does it work? Well, if you want to compare it to a Mister Microphone, the range is incredibly limited. That being said it works. It’s an FM transmitter built out of a microcontroller and a battery, and that’s very impressive. Check out [Sprite_tm]‘s demo after the break.

Read the rest of this entry »

Jam a remote helicopter

posted Jan 26th 2012 6:01am by
filed under: toy hacks

The Syma S107 IR is a popular little remote controlled helicopter. When a friend of [Michael]‘s started flying one around the office he decided to try and jam the signal, creating a no fly zone. Luckily some people on the internet have already decoded the IR signals used by the flying menace. From there, a quick browsing of Mouser to source some LEDs, and to whip up some code for a TI MSP430 was all that was left.

The software on the micro controller is set to broadcast a “thrust off” signal, but [Michael] admits he is not 100% sure if the helicopter is actually receiving that, or if the signal from the no fly zone is mixing with the remote’s signal, causing garbage to be received. Either way when the helicopter gets in range of the no fly zone pad it drops from the air.

Things didn’t go perfectly though, overestimating the current capabilities of the MSP was causing the micro controller to reset and crash the debugger. But a simple rearrangement of how the signals are sent quickly solved this problem.

Join us after the break for a quick video.

Read the rest of this entry »

Hack a Day serves up fresh hacks each day, every day from around the web as well as hacking related news.

Send us your hacks










     




Hacks

Resources