Tiny Ray Tracer Fits In 64 Bytes

Throughout human history, people try to make the biggest, the fastest, and — sometimes — the smallest. [Hellmood] falls into the latter category and proves it with a 64 byte interactive 3D raycasting application for MSDOS.

Why MSDOS? We suppose why not? The .COM file format is lean, and you can take over everything without a lot of work. If the program were huge, it wouldn’t be very impressive. There are 64 shades of gray which is odd looking these days, however there are versions that use various color palettes and each one fits in 64 bytes or less. There’s …read more

Continue reading Tiny Ray Tracer Fits In 64 Bytes→

Simulating A Speaker

Speakers are one of those components that are simple to use, but difficult to simulate. Most of us have used a simple resistor to do the job. But a speaker’s response is much more complex, and while that might be enough for a simple simulation the fidelity is nowhere near close. [Sourav Gupta] recently shared his technique for modeling speakers and it looks as though it does a credible job.

[Sourav] shows how a simple resistor and an inductor can do the job, but for better fidelity you need more components to model some mechanical effects. The final model has …read more

Continue reading Simulating A Speaker→

Simulating A Speaker

Speakers are one of those components that are simple to use, but difficult to simulate. Most of us have used a simple resistor to do the job. But a speaker’s response is much more complex, and while that might be enough for a simple simulation the fidelity is nowhere near close. [Sourav Gupta] recently shared his technique for modeling speakers and it looks as though it does a credible job.

[Sourav] shows how a simple resistor and an inductor can do the job, but for better fidelity you need more components to model some mechanical effects. The final model has …read more

Continue reading Simulating A Speaker→

Little Emulators Do 8 Bits At A Time

Have you ever wondered how many, for example, Commodore 64s it would take to equal the processing power in your current PC? This site might not really answer that, but it does show that your machine can easily duplicate all the old 8-bit computers from Commodore, Sinclair, Acorn, and others. By our count, there are 86 emulators on the page, although many of those are a host machine running a particular application such as Forth or Digger.

If you are in the US, you might not recognize all the references to the KC85, this was an East German computer based …read more

Continue reading Little Emulators Do 8 Bits At A Time→

Linux as a Library: Unikernels are Coming

If you think about it, an operating system kernel is really just a very powerful shared library that offers services to many programs. Of course, it is a very powerful library, but still — its main purpose is to provide services to programs. Your program probably doesn’t use all of the myriad services the kernel provides. Even a typical system might not fully use all the things that are in a typical kernel. Red Hat has a new initiative to bring a technology called unikernels to the forefront. A unikernel is a single application linked with just enough of the …read more

Continue reading Linux as a Library: Unikernels are Coming→

FPGA Testbenches Made Easier

You finally finish writing the Verilog for that amazing new DSP function that will revolutionize human society and make you rich. Does it work? Your first instinct, of course, is to blow it into your FPGA of choice and see if it works. If it does, that was a great idea. If it doesn’t, it was a terrible idea because — typically — it is hard to look inside the FPGA. That’s why you’ll typical simulate your logic on a desktop computer before you commit it to the FPGA. But that means you have to delay gratification long enough to …read more

Continue reading FPGA Testbenches Made Easier→

How’s a Gyro Work?

It wasn’t long ago that a gyro — or gyroscope — was an exotic piece of electronics gear. Most of us only saw them as children’s toys that would balance on your finger. That’s changed, though, thanks to microelectronics. Now your game controller, your phone, and your drone all probably use little ICs that are actually three-axis gyroscopes. Ever wonder how they work and what they do? [RCModelReviews] has a video that covers three kinds of gyros: old mechanical gyros, modern MEMS gyros, and even an exotic laser-based gyro. (YouTube, embedded below.)

Gyroscopes allow you to detect orientation by detecting …read more

Continue reading How’s a Gyro Work?→

Backyard Planetarium with Magnets

If you are a Hackaday reader, you probably like space in real life, fiction, or both. A trip to a planetarium is a great treat, but what if you could have a planetarium in your backyard? [Ecasill] thought so and used a Zip Tie domes kit to create just such a thing. It takes some sewing and a projector, but there’s a problem. The dome needs to come down if there is going to be bad weather. The answer? Magnetic dowel rods.

Because the magnets are brittle, plastic dip covers them after epoxy sticks them in place. The cloth has …read more

Continue reading Backyard Planetarium with Magnets→

What’s the Difference? Ask an Op Amp

If you’ve ever wondered why an op amp has the little plus and minus symbols on it, its because at the heart of it, the device is a differential amplifier. The problem is that — ideally, at least — it has infinite gain so it works like a comparator and that’s not what you usually want. So we put resistors around the thing to constrain it and get useful amplification out of it. [Stephen Mendes] does the analysis for you about how the standard configuration for a differential amplifier works. He assumes you know the stock formulae for the inverting …read more

Continue reading What’s the Difference? Ask an Op Amp→

A $4 Ultrasonic Theremin Looks Cheesy on Purpose

We don’t think [bleepbit] will take offense when we say the “poor man’s theremin” looks cheesy — after all, it was built in a cheese container. Actually, it isn’t a bad case for a simple device, as you can see in the picture and the video below. Unlike a traditional theremin, the device uses ultrasonics to detect how far away your hand is and modifies the sound based on that.

There are also two buttons — one to turn the sound off and another to cycle through some effects. We liked how it looked like a retro cassette, though. The …read more

Continue reading A $4 Ultrasonic Theremin Looks Cheesy on Purpose→