Linux Fu: Keep In Sync

Once upon a time, computers were very expensive and you were lucky to have shared access to one computer. While that might seem to be a problem, it did have one big advantage: all of your files were on that computer.

Today, we all probably have at least a desktop and one laptop. Your phone is probably a pretty good computer by most standards. You might have multiple computers and a smattering of tablets. So what do you do to keep your files accessible everywhere? Why not run your own peer-to-peer synchronization service? Your files are always under your control and encrypted in motion. There’s no central point of failure. You can do it with one very slick piece of Open Source software called syncthing. It runs on Windows, Linux, Mac, BSD, and Solaris. There are also Android clients. We haven’t tested it, but one caveat is that the unofficial iOS support sounds a little spotty.

The joke about the cloud — that it’s just other people’s servers — is on point here. Some people don’t like their files sitting on a third-party server. Even if your files are encrypted or you don’t care, you still have the problem of what happens if you can’t reach the server — may be on an airplane with no WiFi — or the server goes down. Sure, Google and Microsoft don’t go dark very often, but they can and do. Even if you build your own cloud, it runs on your servers. Syncthing is serverless: it simply makes sure that all files are up-to-date on all your end devices. Continue reading “Linux Fu: Keep In Sync”

Back To Video Basics With An ESP32 VGA Display

In a world where standards come and go with alarming speed, there’s something comforting about VGA. It’s the least common denominator of video standards, and seeing that chunky DB15 connector on the back of a computer means that no matter what, you’ll be able to get something from it, if you can just find a VGA cable in your junk bin.

But that’s the PC world; what about microcontrollers? Can you coax VGA video from them? Yes, you can, with an ESP32, a handful of resistors, and a little bit of clever programming. At least that’s what [bitluni] has managed to do in his continuing quest to push the ESP32 to output all the signals. For this project, [bitluni] needed to generate three separate signals – red, green, and blue – but with only two DACs on board, he had to try something else. He built external DACs the old way using R/2R voltage divider networks and addressed them with the I2S bus in LCD mode. He needed to make some compromises to fit the three color signals and the horizontal and vertical sync pulses into the 24 available bits, and there were a few false starts, but the video below shows that he was able to produce a 320×240 signal, and eventually goosed that up to a non-native 460×480.

It’s a pretty impressive hack, and we learned a lot about both the ESP32 and the VGA standard by watching the video. He’s previously used the ESP32 to build an AM radio station and to output composite PAL video, and even turned his oscilloscope into a vector display with it. They’re all great learning projects too.

Continue reading “Back To Video Basics With An ESP32 VGA Display”

Software Defined Television On An ESP32

Composite video from a single-board computer? Big deal — every generation of Raspberry Pi has had some way of getting composite signals out and onto the retro monitor of your choice. But composite video from an ESP32? That’s a thing now too.

There are some limitations, of course, not least of which is finding a monitor that can accept a composite input, but since [bitluni]’s hack uses zero additional components, we can overlook those. It really is as simple as hooking the monitor up to pin 25 and ground because, like his recent ESP32 AM radio station, the magic is entirely in software. For video, [bitluni] again uses his I²S tweaks to push a lot of data into the DAC really fast, reproducing the sync and image signals in the 0-1 volt range of the PAL composite standard. His code also supports the NTSC standard, but alas because of frequency limitations in the hardware it’s monochrome only for both standards, at least for now. He’s also got a neat trick to improve performance by running the video signal generation and the 3D-rendering on separate cores in the ESP32. Check out the results in the video below.

It looks like the ESP32 is getting to be one of those “Is there anything it can’t do?” systems. Aside from radio and video, we’ve seen audio playback, vector graphics, and even a Basic interpreter easter egg.

Continue reading “Software Defined Television On An ESP32”

Sync Your Pocket Synth With Ableton

The Teenage Engineering Pocket Operators are highly popular devices — pocket-sized synthesizers packed full of exciting sounds and rhythmic options. They’re also remarkably affordable. However, this comes at a cost — they don’t feature MIDI connectivity, so it can be difficult to integrate them into a bigger digital music setup. Never fear, little-scale’s got your back. This Max patch allows you to synchronize an Ableton Link network to your Pocket Operators.

little-scale’s trademark is creating useful software and hardware devices using cheap, off-the-shelf hardware wherever possible. The trick here is a simple Max patch combined with a $2 USB soundcard or Bluetooth audio adapter. It’s all very simple: the Pocket Operators have a variety of sync modes that sync on audio pulses, essentially a click track. They use stereo 3.5mm jacks on board, generally using one channel for the synth’s audio and one channel for receiving sync pulses. It’s a simple job to synthesize suitable sync pulses in Ableton, and then pump them out to the Pocket Operators through the Bluetooth or USB audio output.

The Pocket Operators sync at a rate of 2 PPQN — that’s pulses per quarter note. little-scale says that KORG volcas & monotrons should also work with this patch, as they run at the same rate, but it’s currently untested. If you happen to try this for yourself, let us know if it works for you. Video below the break.

We’ve seen pocket synths on Hackaday before, with this attractive mixer designed for use with KORG Volcas.

Continue reading “Sync Your Pocket Synth With Ableton”

Roomba And Virtual Walls Make Up This Theme Family Halloween Costume

It figures. You spend a ton of time making a cool set of costumes and then you can’t get your kid to pose for a picture. It’s okay though, we still get the point. This themed set of costumes dresses the little one as a Roomba vacuuming robot while mom and dad are suited up as virtual walls (modules that are used to keep the bot from falling down stairs, etc.). It’s fun and unique, but had it not been for some additional electronics this would have been relegated to a links post. For safety sake each costume was outfitted with a ring of LEDs. As a challenge, the lights were given the ability to sync up patterns with each other.

Each costume has a circular frame at the top with a set of RGB LED strings attached. To get them to display synchronized patterns an IR transmitter/receiver board was designed and ordered from OSHPark. Each costume has four of these modules so no matter where the wearers are facing it should not break communications. A demo of the synchronized light rings can be seen after the break

Continue reading “Roomba And Virtual Walls Make Up This Theme Family Halloween Costume”

Hard Resetting Your Ford Touch System The Easy Way


[Jeff Clymer] owns a Ford Focus, and while he’s generally happy with the car, the “My Ford Touch/Sync” system can be buggy at times. He spends a lot of time in the car each day, so when the entertainment center locks up as it is frequently known to do, he has to turn off the car and pull a fuse to reset the system. Since pulling a fuse while on the road is pretty impractical, he decided to install a reset button, making system reboots a breeze.

He started by disassembling various fuses until he found one with an easy to remove fusible link. Once it was in pieces, he soldered a pair of wires to the fuse terminals and connected everything to a normally closed momentary pushbutton switch. After adding an inline fuse holder and reinserting the original fuse, he installed the button into the back of his glove box

Now instead of physically removing the fuse each time his stereo locks up, he can simply push a button and be on his way. Here’s hoping a software fix is coming for [Jeff’s] car sooner rather than later!

SNES Controller Dock For Dell Streak

The Dell Streak is an Android tablet. [Collin Meyer] wanted to use an original SNES controller to play emulated games on the device. What he came up with is a controller that is a dock for he handheld.

Several things have to come together to make this happen. The Streak uses a standard PDMI dock that connects to a computer via a USB connection. [Collin] repurposed a sync cable by connecting a couple of pins on the dock connector which forces the device to use USB host mode. From there he used a Teensy microcontroller to convert the SNES controller into a USB device (very similar to this hack). The Teensy and shortened sync cable find a new home inside the SNES controller body and, in the video after the break, it looks like he used something like sugru to add a bit of support for the Streak.

Continue reading “SNES Controller Dock For Dell Streak”