512 Bytes Ought To Be Enough For Dinosaurs

It’s said that slow internet is worse than no internet at all, which is mainly a matter of continuously crushing all hope and sanity vs. finding peace in accepting a fate out of your control. Plus, you can easily pass the time of being catapulted back to the prehistoric ages by navigating a jumpy little creature from that same age through a field of cacti — at least if you’re using Chrome or Chromium. But neither a browser nor actually an operating system are really necessary for that, as [franeklubi] shows with a boot sector implementation of the same game.

Sure, the graphics aren’t quite on par, but compared to the original’s 3000+ lines of JavaScript, [franeklubi] managed to implement it in a few hundred lines of assembly, and was of course constrained by the 512 bytes of the boot sector itself (well, 510 plus the signature). This constraint causes a few limitations, like a slight lack of randomness in the obstacle arrangements, and a constant running speed, but it also makes it the perfect playground and starting point to delve into the world of nifty knacks and hacks, trying to squeeze every last byte.

If you want to give it a try for yourself, all you need is NASM and QEMU — and while you’re at it, why not have some Tetris along the way? We could also see this nicely combined with the real-world jumping version from a few weeks back, and turn it into a standalone arcade game. Bounce Crouch Revolution anyone?

Hackaday Podcast 051: Pointing With Your Tongue, C64 Touchpad, USB Killcord, And Audacity Does Everything

Hackaday editors Mike Szczys and Elliot Williams sort through the hacks you might have missed over the past seven days. In FPGA hacking news, there’s a ton of work being done on a newly discovered FPGA dev board. Kristina has a new column on input devices, kicking it off with tongue-actuated controllers. We wax philosophical about what data you need to backup and what you should let go. Plus Audacity is helping tune up CNC machines, copper tape is the prototyper’s friend, and fans of Open should take note of this laptop project.

Take a look at the links below if you want to follow along, and as always tell us what you think about this episode in the comments!

Take a look at the links below if you want to follow along, and as always, tell us what you think about this episode in the comments!

Direct download (60 MB or so.)

Continue reading “Hackaday Podcast 051: Pointing With Your Tongue, C64 Touchpad, USB Killcord, And Audacity Does Everything”

P-51 Cockpit Recreated With Help Of Local Makerspace

It’s surprisingly easy to misjudge tips that come into the Hackaday tip line. After filtering out the omnipresent spam, a quick scan of tip titles will often form a quick impression that turns out to be completely wrong. Such was the case with a recent tip that seemed from the subject line to be a flight simulator cockpit. The mental picture I had was of a model cockpit hooked to Flight Simulator or some other off-the-shelf flying game, many of which we’ve seen over the years.

I couldn’t have been more wrong about the project that Grant Hobbs undertook. His cockpit simulator turned out to be so much more than what I thought, and after trading a few emails with him to get all the details, I felt like I had to share the series of hacks that led to the short video below and the story about how he somehow managed to build the set despite having no previous experience with the usual tools of the trade.

Continue reading “P-51 Cockpit Recreated With Help Of Local Makerspace”

Picovoice Puts Smarts Offline In 512K Of Memory

We live in the future. You can ask your personal assistant to turn on the lights, plan your commute, or set your thermostat. If they ever give Alexa sudo, she might be able to make a sandwich. However, you almost always see these devices sending data to some remote server in the sky to do the analysis and processing. There are some advantages to that, but it isn’t great for privacy as several recent news stories have pointed out. It also doesn’t work well when the network or those remote servers crash — another recent news story. But what’s the alternative? If Picovoice has its way, you’ll just do all the speech recognition offline.

Have a look at the video below. There’s an ARM board not too different from several we have lying around in the Hackaday bunker. It is listening for a wake-up phrase and processing audio commands. All in about 512K of memory. The libraries are apparently quite portable and the Linux and Raspberry Pi versions are already open source. The company says they will make other platforms available in upcoming releases and claim to support ARM Cortex-M, Cortex-A, Android, Mac, Windows, and WebAssembly.

Continue reading “Picovoice Puts Smarts Offline In 512K Of Memory”

DefCAD Triggers HTTP 451

Depending on where you live, pointing your browser to Defcad.com yesterday may have shown you something you’d never seen before. It certainly did for me. That’s because I live in one of the two states (as of this writing) in the United States which have scrambled to block access to the online repository of firearm CAD files after they were approved for release by the US State Department.

Anyone using the internet in those states was presented with HTTP status code 451: “Unavailable For Legal Reasons”. This code was named for Ray Bradbury’s dystopian novel “Fahrenheit 451″, in which books are burned to censor the information they contain. Rather than simply returning the traditional 403 error, 451 can be used to signal that the server is willing to serve the user the information, but is being prevented from doing so by court order.

Whatever your personal feelings are on the public having unfettered access to technical information on firearms, this is still a worrying development. The First Amendment covers more than literal speech: source code and technical data is a form of expression just as much as a poem or song, and are equally protected. If the federal government believes the files that Cody Wilson’s Defense Distributed offers up are not restricted by International Traffic in Arms Regulations (ITAR), then how can a citizen of the United States not view them? The question remains unanswered and overnight a federal judge granted a restraining order to restrict the website for the remaining states.

Continue reading “DefCAD Triggers HTTP 451”

Friday Hack Chat: DMX512 Gon’ Give It To Ya

DMX512 is the standard for theatrical lighting, and it’s best described as, ‘MIDI for lights’. It’s been around since the 80s, and in the decades since it’s been used, abused, and shoved into just about everything imaginable.

For this week’s Hack Chat, we’re talking all about DMX512. What is DMX512? How does it work? What can you control with DMX512? What Open Source projects use it? There’s a wealth of information out there, and a lot of very cool tricks you can pull with this ubiquitous lighting protocol.

Our guest for this week’s Hack Chat is [Martin Searancke], owner of Dream Solutions Ltd. [Martin] was contacted early on in the development of Coca-Cola’s impressive 3D Times Square advertisement to see if Dream Solution’s LightFactory software could be used to drive this 3D screen. This software has pixel mapping and media playback capabilities and was used for the prototypes for the project. A subset of this product made it into the final installation, and is now driving a gargantuan display above Times Square in New York City.

This is a community Hack Chat, and of course we’re taking questions from the community. If you have a question you’d like to ask [Martin], add it to the discussion sheet.

join-hack-chatOur Hack Chats are live community events on the Hackaday.io Hack Chat group messaging. Our Hack Chats usually take place at noon, Pacific time on Friday, but this week is different. [Martin] is in New Zealand, so this Hack Chat is happening at 2pm Pacific, Friday, October 27th. Is that too hard for you? Here’s a time zone converter!

Click that speech bubble to the right, and you’ll be taken directly to the Hack Chat group on Hackaday.io.

You don’t have to wait until Friday; join whenever you want and you can see what the community is talking about.

We’re also looking for new Hack Chat hosts! If you’ve built something cool, you’re working on an interesting project, or you’re about to introduce a really cool product, hit us up! Email our wonderful community managers, and we’ll see if we can slot you in.

A Few Of Our Favorite Chips: 4051 Analog Mux

Raindrops on roses, and whiskers on kittens? They’re alright, I suppose. But when it comes down to it, I’d probably rather have a bunch of 4051, 4052, and 4053 analog multiplexers on the component shelf. Why? Because the ability to switch analog signals around, routing them at will, under control of a microcontroller is tremendously powerful.

Whether you want to read a capacitive-sensing keyboard or just switch among audio signals, nothing beats a mux! Read on and see if you agree.

Continue reading “A Few Of Our Favorite Chips: 4051 Analog Mux”