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”

Fixing Fake FTDIs

If you know where to go on the Internet, you can pick up an FTDI USB to Serial adapter for one dollar and sixty-seven cents, with free shipping worldwide. The chip on this board is an FTDI FT232RL, and costs about two dollars in quantity. This means the chips on the cheap adapters are counterfeit. While you can buy a USB to serial adapter with a legitimate chip, [Syonyk] found a cheaper solution: buy the counterfeit adapters, a few genuine chips, and rework the PCB. It’s brilliant, and an excellent display of desoldering prowess.

Why is [Syonyk] replacing non-genuine chips with the real FTDI? The best reason is FTDIgate Mk. 1, where the official FTDI driver for Windows detected non-genuine chips and set the USB PID to zero. This bricked a whole bunch of devices, and was generally regarded as a bad move. FTDIgate Mk. 2 was a variation on a theme where the FTDI driver would inject garbage data into a circuit if a non-genuine part was found. This could also brick devices. Notwithstanding driver issues, the best reason for swapping out fake chips for real ones is the performance at higher bit rates; [Syonyk] is doing work at 3 Mbps, and the fake chips just don’t work that fast.

To replace the counterfeit chip, [Syonyk] covered the pins in a nice big glob of solder, carefully heated both sides of the chip, and slid the offending chip off when everything was molten. A bit of solder braid, and the board was ready for the genuine chip.

With the new chip, the cheap USB to serial adapter board works perfectly, although anyone attempting to duplicate these efforts might want to look into replacing the USB mini port with a USB micro port.

Vintage COSMAC Elf Is Pretty Close To Original

Popular Electronics was famous for the article introducing the Altair 8800 back in 1975 (well, the cover date was 1975; it really came out in late 1974). That was so popular (no pun intended), that they ran more computer construction articles, including the SWTPC 680 late in 1975. But in 1976 a very popular article ran on building a very simple computer called the COSMAC ELF. [Youtubba] had an Altair, but always wanted a “cute” COSMAC ELF. Now, forty-something years later, he finally got around to it. He made the very detailed video about his experience, below.

Surprisingly, he didn’t have to look very hard for too many of the components as most of them were available from Digikey. He had to get compatible RAM chips, the 1802 CPU and LED displays. He also couldn’t find a look-alike crystal, so he used a fake one and a hidden oscillator. The result looks awfully close to the original. He even did a nice front panel using Front Panel Express.

Continue reading “Vintage COSMAC Elf Is Pretty Close To Original”

Banana Phone Blocks Robocalls

Despite the implementation of the National Do Not Call Registry in the US (and similar programs in other countries), many robocallers still manage to get around the system. Whether they’re operating outside the law somehow (or they simply don’t care about it) there are some ways you can take action to keep these annoying calls from coming through. [Alex] is among those to take matters into his own hands and built a specialty robocall-blocking device.

Based on a Raspberry Pi, the “Banana Phone” is able to intercept incoming calls on standard land lines or VoIP phones. After playing a short message, the caller is asked to input a four-digit code. Once the code is correctly entered, the caller is presumed to be human, added to a whitelist, and then the Pi passes them on to the recipient. There are, however, some legitimate robocallers such as emergency services regarding natural disasters or utility companies regarding outages. For these there is a global whitelist that the Pi checks against and forwards these robocalls on to the recipient automatically.

This project was originally an entry into a contest that the Federal Trade Commission put on a few years ago for ideas about how to defend against robocalls. We covered it back then, but now there are full build instructions. Even though the contest is long over, the Banana Phone is still in active development so if you have a spare Pi lying around you can still set this up yourself. There are some other interesting ways to defend against robocalls as well, like including the “line disconnected” tone in your voicemail, for example.

How To Telepathically Tell A Robot It Screwed Up

Training machines to effectively complete tasks is an ongoing area of research. This can be done in a variety of ways, from complex programming interfaces, to systems that understand commands in natural langauge. A team from MIT’s Computer Science and Artificial Intelligence Laboratory (CSAIL) wanted to see if it was possible for humans to communicate more directly when training a robot. Their system allows a user to correct a robot’s actions using only their brain.

The concept is simple – using an EEG cap to detect brainwaves, the system measures a special type of brain signals called “error-related potentials”. Simply noticing the robot making a mistake allows the robot to correct itself, and for a nice extra touch – blush in embarassment.

This interface allows for a very intuitive way of working with a robot – upon noticing a mistake, the robot is able to automatically stop or correct its behaviour. Currently the system is only capable of being used for very simple tasks – the video shows the robot sorting objects of two types into corresponding bins. The robot knows that if the human has detected an error, it must simply place the object in the other bin. Further research seeks to expand the possibilities of using this automatic brainwave feedback to train robots for more complex tasks. You can read the research paper here.

MIT’s CSAIL work on lots of exciting projects – their video microphone technology is truly astounding.

[Thanks to Adam Connor-Simmons for the tip!]

Sodium bicarbonage diode steering circuit

Soda Bicarb Diode Steering Circuit For 7-Segment Display

[Hales] has been on a mission for a while to make his own diodes and put them to use and now he’s succeeded with diodes made of sodium bicarbonate and water, aluminum tape and soldered copper. By combining 49 of them he’s put together a soda bicarb diode steering circuit for a 7-segment display capable of showing the digits 0 to 9.

He takes the idea for his diode from electrolytic capacitors. A simple DIY electrolytic capacitor has an aluminum sheet immersed in a liquid electrolyte. The aluminum and the conductive electrolyte are the two capacitor plates. The dielectric is an aluminum oxide layer that forms on the aluminum when the correct polarity is applied, preventing current flow. But if you reverse polarity, that oxide layer breaks down and current flows. To [Hales] this sounded like it could also act as a diode and so he went to work doing plenty of experiments and refinements until he was confident he had something that worked fairly well.

In the end he came up with a diode that starts with a copper base covered in solder to protect the copper from his sodium bicarbonate and water electrolyte. A piece of aluminum tape goes on top of that but is electrically insulated from it. Then the electrolyte is dabbed on such that it’s partly on the solder and partly on the aluminum tape. The oxide forms between the electrolyte and the aluminum, providing the diode’s junction. Connections are made to the soldered copper and to the aluminum.

To truly try it out he put together a steering circuit for a seven segment display. For that he made a matrix of his diodes. The matrix has seven columns, one for each segment on the display. Then there are ten rows, one for each digit from 0 to 9. The number 1, for example, needs only two segments to light up, and so for the row representing 1, there are only two diodes, i.e. two dabs of electrolyte where the rows overlap the columns for the desired segments. The columns are permanently wired to their segments so the final connection need only be made by energizing the appropriate row of diodes. You can see [Hales] demonstrating this in the video below the break.

Continue reading “Soda Bicarb Diode Steering Circuit For 7-Segment Display”