VGA Without A Microcontroller

One of the most challenging projects you could ever do with an 8-bit microcontroller is generating VGA signals. Sending pixels to a screen requires a lot of bandwidth, and despite thousands of hackers working for decades, generating VGA on an 8-bit microcontroller is rarely as good as a low-end video card from twenty years ago.

Instead of futzing around with microcontrollers, [Marcel] had a better idea: why not skip the microcontroller entirely? He’s generating VGA frames from standard logic chips and big ‘ol EEPROMs. It works, and it looks good, too.

VGA signals are just lines and frames, with RGB pixel values stuffed in between horizontal sync pulses, and frames stuffed between vertical sync pulses. If you already know what you want to display, all you have to do is pump the right bits out through a VGA connector fast enough. [Marcel] is doing this by saving images on two parallel EEPROMs, sending the output through a buffer, through a simple resistor DAC, and out through a VGA connector. The timing is handled by a few 74-series four-bit counters, and the clock is a standard 25.175 MHz crystal.

There’s not much to this build, and the entire circuit was assembled on a breadboard. Still, with the clever application of Python to generate the contents of the ROM, [Marcel] was able to build something that displays eight separate images without using a microcontroller.

 

Open Source Firmware For A Cheap Programmable Power Supply

A few months ago, someone clued us in on a neat little programmable power supply from the usual Chinese retailers. The DPS5005 is a programmable power supply that takes power from a big AC to DC wall wart and turns it into a tiny bench-top power supply. You can pick one of these things up for about thirty bucks, so if you already have a sufficiently large AC to DC converter you can build a nice 250 Watt power supply on the cheap.

[Johan] picked up one of these tiny programmable power supplies. His overall impression was positive, but like so many cheap products on AliExpress, there wasn’t a whole lot of polish to the interface. Additionally, the DPS5005 lacked the ability to be controlled over a serial port or WiFi.

This programmable power supply is built around an STM32, with the programming pads exposed and labeled on the PCB. The changes [Johan] wanted to make were all in software, leading him to develop OpenDPS, a firmware replacement for the DPS5005. Continue reading “Open Source Firmware For A Cheap Programmable Power Supply”

Better Linux Through Coloring

Cyber security is on everyone’s minds these days. Embedded devices like cameras have been used by bad guys to launch attacks on the Internet. People worry about data leaking from voice command devices or home automation systems. And this goes for the roll-your-own systems we build and deploy.

Many network-aware systems use Linux somewhere — one big example is pretty much every Raspberry Pi based project. How much do you think about security when you deploy a Pi? There is a superior security system available for Linux (including most versions you’d use on the Pi) called SELinux. The added letters on the front are for “Security-Enhanced” and this project was originally started by the NSA and RedHat. RedHat actually has — no kidding — a coloring book that helps explain some of the basic concepts.

We aren’t so sure the coloring book format is really the right approach here, but it is a light and informative read (we didn’t stay in the lines very well, though). Our one complaint is that it doesn’t really show you anything in practice, it just explains the ideas behind the different kind of protections available in SELinux. If you want to actually set it up on Pi, there’s a page on the Pi site that will help. If you have an hour, you can get a good overview of using SELinux in the video below.

Continue reading “Better Linux Through Coloring”

Punching It Down: Insulation Displacement Connectors

In my misspent youth I found myself doing clinical rotations at a local hospital. My fellow students and I were the lowest of the low on the hospital pecking order, being the ones doing the bulk of the work in the department and paying for the privilege to do so. As such, our locker facilities were somewhat subpar: a corner of a closet behind a door labeled “COMMS”.

In the room was a broken chair and a couple of hooks on the wall for our coats, along with an intriguing (to me) electrical panel. It had a series of rectangular blocks with pins projecting from it. Each block had a thick cable with many pairs of thin, colorful wires fanned out and neatly connected to the left side, and a rats nest of blue and white wires along the right side. We were told not to touch the board. I touched it nonetheless.

I would later learn that these were Type 66 punchdown blocks for the department’s phone system, and I’d end up using quite a few of them over my hacking life. Punchdown connectors were a staple of both private and public telco physical plants for decades, and belong to a class of electrical connections called insulation displacement connections, or IDC. We’ve recently looked at how crimp connections work, and what exactly is going on inside a solder joint. I thought it might be nice to round things out with a little bit about the workings of IDC.

Continue reading “Punching It Down: Insulation Displacement Connectors”

Innovating A Better Printing Platform

Just because you have a fancy new 3D printer doesn’t mean that innovation should stop there. Almost everyone has had a print go foul if the first layer doesn’t properly adhere to the printing platform — to say nothing of difficulty in dislodging the piece once it’s finished. Facing mixed results with some established tricks meant to combat these issues, [D. Scott Williamson] — a regular at Chicago’s Workshop 88 makerspace — has documented his trials to find a better printer platform.3D Printer Steel Print Plate 1

For what he had (a printer without a heated plate), painter’s tape and hairspray wasn’t cutting it, especially when it came time to remove the print as the tape wouldn’t completely come off the part. How then, to kill two birds with one stone? Eureka! A flexible metal covering for the printing plate.

Continue reading “Innovating A Better Printing Platform”

Saved By The Bel — Understanding Decibels

If you’ve hung around electronics for any length of time, you’ve surely heard of the decibel (often abbreviated dB). The decibel is a measure of a power ratio. Actually, the real measure is a bel, but you almost never see that in practice. If you are versed in metric, you won’t be surprised to learn a decibel is 1/10 of a bel. Sometimes in electronics, we deal with really large ratios, so the decibel is logarithmic to cope with this. Doubling the number of decibels doesn’t double the ratio, as you will soon see. It’s all about logarithms, and this ends up being extremely useful when measuring something like antenna or amplifier gain.

Besides antennas, decibels are often used to measure sound and light. The reason is that human ears and eyes have a logarithmic response to those quantities. Your ear, for example, has a huge dynamic range. That is to say, you can hear a whisper or a space shuttle launch. That ratio is about 1 trillion to 1, but that’s only 120 dB. This is also why potentiometers made for volume controls have a logarithmic taper. A linear pot would seem off because, for example, a tenth of a turn at one extreme will affect the apparent volume much more than a tenth of a turn at the other extreme. This holds true whether or not those knobs go up to eleven.

Continue reading “Saved By The Bel — Understanding Decibels”

Paul: A Robot And Its Ball

[Jochen Alt]’s Paul is one of the coolest robots of its type, and maybe one of the coolest robots period. Personality? Check. Omniwheels? Check. Gratuitous feats of derring-do? Check. Paul is a ball balancing robot.

Under the hood, Paul isn’t all that strange. He’s got two microcontrollers, one for taking care of the balancing and kinematics, and another that handles the LEDs, speech processor, loudspeaker, remote-control, and other frilly bits. But the mathematics! Paul is a cylinder standing up on top of a bowling ball, so the only way it can roll forwards is to lean forwards. But of course, it can’t lean too much, because it has also got to balance. It’s absolutely the least reasonable means of locomotion. We love it.

[Jochen] was nice enough to put everything up on GitHub, so you can see how it was done, even though it looks like magic. And we dare you to watch the video, embedded below, and not feel at least a pang of sympathy pain when (spoiler alert!) he falls flat on his face. Does he recover? We’d love to know!

Paul is just one of the stellar robots in the 2017 Hackaday Sci-Fi contest, so head on over there if you still don’t have your fill.

Continue reading “Paul: A Robot And Its Ball”