Increasing The Resolution Of The Electrical Grid

As a society in the USA and other parts of the world, we don’t give much thought to the twisting vines of civilization that entangle our skies and snake beneath our streets. The humming electrical lines on long poles that string our nations together are simply just there. Ever-present and immutable. We expect to flick the switch and power to come on. We only notice the electrical grid when something goes wrong and there is a seemingly myriad number of ways for things to go wrong. Lighting strikes, trees falling on lines, fires, or even too many people trying to crank on the A/C can all cause rolling blackouts. Or as we found out this month, cold weather can take down generation systems that have not been weatherized.

We often hear the electrical grid described as aging and strained. As we look to the future and at the ever-growing pressure on the infrastructure we take for granted, what does the future of the electrical grid look like? Can we move past blackouts and high voltage lines that criss-cross the country?

Continue reading “Increasing The Resolution Of The Electrical Grid”

30 FPS Flip-Dot Display Uses Cool Capacitor Trick

Most people find two problems when it comes to flip-dot displays: where to buy them and how to drive them. If you’re [Pierre Muth] you level up and add the challenge of driving them fast enough to rival non-mechanical displays like LCDs. It was a success, resulting in a novel and fast way of controlling flip-dot displays.

Gorgeous stackup of the completed display. [Pierre] says soldering the 2500 components kept him sane during lockdown.
If you’re lucky, you can get a used flip-dot panel decommissioned from an old bus destination panel, or perhaps the arrivals/departures board at a train station. But it is possible to buy brand new 1×7 pixel strips which is what [Pierre] has done. These come without any kind of driving hardware; just the magnetized dots with coils that can be energized to change the state.

The problem comes in needing to reverse the polarity of the coil to achieve both set and unset states. Here [Pierre] has a very interesting idea: instead of working out a way to change the connections of the coils between source and sink, he’s using a capacitor on one side that can be driven high or low to flip the dot.

Using this technique, charging the capacitor will give enough kick to flip the dot on the display. The same will happen when discharged (flipping the dot back), with the added benefit of not using additional power since the capacitor is already charged from setting the pixel. A circuit board was designed with CMOS to control each capacitor. A PCB is mounted to the back of a 7-pixel strip, creating modules that are formed into a larger display using SPI to cascade data from one to the next. The result, as you can see after the break, does a fantastic job of playing Bad Apple on the 24×14 matrix. If you have visions of one of these on your own desk, the design files and source code are available. Buying the pixels for a display this size is surprisingly affordable at about 100 €.

We’re a bit jealous of all the fun displays [Pierre] has been working on. He previously built a 384 neon bulb display that he was showing off last Autumn.

Continue reading “30 FPS Flip-Dot Display Uses Cool Capacitor Trick”

Audio Out Over A UART With An FTDI USB-To-TRS Cable

What is the easiest way to get audio from a WAV file into a line-level format, ready to be plugged into the amplifier of a HiFi audio set (or portable speaker)? As [Konrad Beckmann] demonstrated on Twitter, all you really need is a UART, a cable and a TRS phono plug. In this case a USB-TTL adapter based around the FTDI FT232R IC: the TTL-232R-3V3-AJ adapter with 12 Mbps USB on one end, and a 3 Mbps UART on the other end.

[Konrad] has made the C-based code available on GitHub. Essentially what happens underneath the hood is that it takes in a PCM-encoded file (e.g. WAV). As a demonstration project, it requires the input PCM files to be a specific sample rate, as listed in the README, which matches the samples to the baud rate of the UART. After this it’s a matter of encoding the audio file, and compiling the uart-sound binary.

The output file is the raw audio data, which is encoded in PDM, or Pulse-Density Modulation. Unlike Pulse-Code Modulation (PCM), this encoding method does not encode the absolute sample value, but uses binary pulses, the density of which corresponds to the signal level. By sending PDM data down the UART’s TX line, the other side will receive these bits. If said receiving device happens to be an audio receiver with an ADC, it will happily receive and play back the PDM signal as audio. As one can hear in the video embedded in the tweet, the end result is pretty good.

 

If we look at at the datasheet for the TTL-232R-3V3-AJ adapter cable, we can see how it is wired up:

When we compare this to the wiring of a standard audio TRS jack, we can see that the grounds match in both wirings, and TX (RX on the receiving device) would match up with the left channel, with the right channel unused. A note of caution here is also required: this is the 3.3V adapter version, and it lists its typical output high voltage as 2.8V, which is within tolerances for line-level inputs. Not all inputs will be equally tolerant of higher voltages, however.

Plugging random TRS-equipped devices into one’s HiFi set, phone or boombox is best done only after ascertaining that no damage is likely to result.  Be safe, and enjoy the music.