Linux Fu: Remote Execution Made Easy

If you have SSH and a few other tools set up, it is pretty easy to log into another machine and run a few programs. This could be handy when you are using a machine that might not have a lot of memory or processing power and you have access to a bigger machine somewhere on the network. For example, suppose you want to reencode some video on a box you use as a media server but it would go much faster on your giant server with a dozen cores and 32 GB of RAM.

Remote Execution

However, there are a few problems with that scenario. First, you might not have the software on the remote machine. Even if you do, it might not be the version you expect or have all the same configuration as your local copy. Then there’s the file problem. the input file should come from your local file system and you’d like the output to wind up there, too. These aren’t insurmountable, of course. You could install the program on the remote box and copy your files back and forth manually. Or you can use Outrun.

There are a few limitations, though. You do need Outrun on both machines and both machines have to have the same CPU architecture. Sadly, that means you can’t use this to easily run jobs on your x86-64 PC from a Raspberry Pi. You’ll need root access to the remote machine, too. The system also depends on having the FUSE file system libraries set up.

Continue reading “Linux Fu: Remote Execution Made Easy”

Ring The Bell For The Hackaday Prize: Three More Weeks To Enter Your Project!

We are hurtling toward the close of entries for the 2020 Hackaday Prize. You need to have your project submitted within the next three weeks, by 7:00 AM Pacific time on Monday, August 31st. Entry is easy, just start a project page over on Hackaday.io and use the “Submit project to:” button on the left sidebar to enter it in the Hackaday Prize.

There are a number of cash prizes on the line this year. In addition to a $50,000 grand prize we have four best nonprofit solution prizes of $10,000, four $3,000 honorable mention prizes, and a $5,000 wildcard prize.

Need some inspiration to help you get started? We’ve teamed with four nonprofit organizations who have highlighted real-world challenges for you to tackle. From protecting our oceans and innovating on earthen housing designs to building assistive devices and designing systems for disaster relief, there’s plenty of ground to cover here!

Once entries close at the end August, we’ll announce a slate of finalists who will continue to refine their designs for another month. Each finalist’s project entry will be reviewed in October by our panel of expert judges to identify the top winners. Of course, with these type of challenges, having more people focus on ways to help is a win in our books. So grab your engineering notebooks and get to work!

Folding Raspberry Pi Enclosure Prints In One Piece, No Screws In Sight

[jcprintnplay] has challenged himself to making Raspberry Pi cases in different ways, and his Fold-a-Pi enclosure tries for a “less is more” approach while also leveraging the strong points of 3D printing. The enclosure prints as a single piece in about 3 hours, and requires no additional hardware whatsoever.

The design requires no screws or other fasteners, and provides a mounting hole for a fan as well as some holes for mounting the enclosure itself to something. All the ports and headers are accessible, and the folding one-piece design is not just a gimmick; in a workshop situation where the Pi needs to be switched out or handled a lot, it takes no time at all to pop the Raspberry Pi in and out of the enclosure.

Microsoft’s 3D Builder has a pretty useful measurement tool for STLs.

[James] points out that the trick with a print-in-place hinge like this is leaving enough space between the parts so that the two pieces aren’t fused together, but not so much space that the print fails. He doesn’t go into detail about how much space worked or didn’t work, but an examination of the downloadable model shows that the clearance used looks like 0.30 mm, intended to be printed with a 0.4 mm nozzle.

[James] also demonstrates the value of being able to do quick iterations on a design when prototyping. In a video (embedded below) The first prototype had the hinge not quite right. In the second prototype there was a lack of clearance when closing. The third one solved both and shows the final design.

Continue reading “Folding Raspberry Pi Enclosure Prints In One Piece, No Screws In Sight”

Our Trucks Won’t Need No Batteries! Electric Trucks Look To Overhead Wires For Power

As the world grapples with the spectre of the so-called “hockey stick” graph of climate change, there have been a variety of solutions proposed to the problem of carbon emissions from sectors such as transport which have become inseparable from the maintenance of 21st century life. Sometimes these are blue-sky ideas that may just be a little bit barmy, while other times they make you stop and think: “That could just work!”.

Such an idea is that of replacing the diesel engines in trucks with electric motors powered not by batteries but from overhead cables. An electric tractor unit would carry a relatively small battery for last-mile transit, but derive its highway power by extending a pantograph from its roof to a high-voltage cable above the road. It’s extremely seductive to the extent that there have even been trials of the system in more than one country, but does it stack up to a bit of analysis?

Time’s Up For Those Big Rigs

Siemens and Scania are justifiably proud of their electrified stretch of autobahn and electric trucks in Germany.
Siemens and Scania are justifiably proud of their electrified stretch of autobahn and electric trucks in Germany.

One thing that should be obvious to all is that moving our long-distance freight around by means of an individual fossil-fuel-powered  diesel engine for every 38 tonne or so freight container may be convenient, but it is hardly either fuel-efficient or environmentally friendly The most efficient diesel engines on the road are said to have a 43% efficiency, and when hauling an single load they take none of the economies of scale afforded to the diesel engines that haul for example a freight train. Similarly they spread any pollution they emit across  the entirety of their route, and yet again fail to benefit from the economies of scale present in for example a power station exhaust scrubber. However much I have a weakness for the sight of a big rig at full stretch, even I have to admit that its day has passed.

The battery technology being pursued for passenger cars is a tempting alternative, as we’ve seen with Tesla Semi. But for all its technology that vehicle still walks the knife-edge between the gain in cost-effectiveness versus the cost of hauling around enough batteries to transport that quantity of freight. Against that the overhead wire truck seems to offer the best of both worlds, the lightness and easy refueling of a diesel versus the lack of emissions from an electric. In the idealised world of a brochure it runs on renewable wind, sun, and water power, so all our problems are solved, right? But does it really stack up?

Continue reading “Our Trucks Won’t Need No Batteries! Electric Trucks Look To Overhead Wires For Power”

ESPFLIX Brings Streaming Video To The World Of Microcontrollers

These days, if you’ve got a TV that’s a little too old to directly access streaming services, you’ve got plenty of options. Apple TV, Chromecast, and a cavalcade of Android boxes are available to help get content on your screen. However, if you’re really stuck in the past, ESPFLIX might just be for you.

Control of the system is achieved by an Apple TV remote.

Yes, that’s right – it’s an online streaming service running on an ESP32. [rossumur] has achieved this feat through a careful use of codecs, and some efficient coding strategies to make it all come together. Video is MPEG1, at just 352×192 resolution. Audio is via the SBC codec, originally intended for use with Bluetooth devices. It’s chosen here for its tiny sample buffers, making it easier to decode in the limited RAM of the ESP32. Output is via composite video, generated on the ESP32 itself.

The titles themselves consist of public domain content, running off an Amazon Web Services instance. With limited RAM on the ESP32, there’s not much buffering to be had, so [rossumur] is bankrolling an AWS Cloudfront instance which should make it possible to use ESPFLIX from most places around the world with a solid internet connection.

We’ve seen [rossumur]’s work before, with the ESP_8_BIT serving as a prelude to this project’s capabilities. Video after the break.

Continue reading “ESPFLIX Brings Streaming Video To The World Of Microcontrollers”

3D Printable Kinematic Couplings, Ready To Use

Time may bring change, but kinematic couplings don’t. This handy kinematic couplings resource by [nickw] was for a design contest a few years ago, but what’s great is that it includes ready-to-use models intended for 3D printing, complete with a bill of materials (and McMaster-Carr part numbers) for hardware. The short document is well written and illustrated with assembly diagrams and concise, practical theory. The accompanying 3D models are ready to be copied and pasted anywhere one might find them useful.

What are kinematic couplings? They are a way to ensure that two parts physically connect, detach, and re-connect in a precise and repeatable way. The download has ready-to-use designs for both a Kelvin and Maxwell system kinematic coupling, and a more advanced design for an optomechanical mount like one would find in a laser system.

The download from Pinshape requires a free account, but the models and document are licensed under CC – Attribution and ready to use in designs (so long as the attribution part of the license is satisfied, of course.) Embedded below is a short video demonstrating the coupling using the Maxwell system. The Kelvin system is similar.

Continue reading “3D Printable Kinematic Couplings, Ready To Use”

Glasgow Uses An FPGA As An Embedded Systems Multitool

Everyone who builds embedded systems wants tools to help build and debug systems faster, so it isn’t uncommon to see boards outfitted with various tools like serial port sniffers. We’ve seen a few incarnations and the latest is Glasgow. The small board uses an FPGA and claims to do the following:

  • UART with automatic baud rate determination
  • SPI or I2C
  • Read and write common EEPROMs and flash chips
  • Read and write common EPROMs including a data rescue function
  • Program AVR chips via SPI
  • Play back JTAG SVF files
  • Debug ARC and some MIPS CPUs
  • Program XC9500LX CPLDs
  • Communicate to several wireless radios and CPUs
  • Do sound synthesis
  • Read raw data from floppy drives

The revC board is the first to be relatively functional and sports 16 I/O pins operating at up to 100 MHz, although the documentation hints that 6 MHz might be the top of what’s easily accomplished. The software is written in Python and the iCE40 FPGA toolchain that we’ve talked about many times in the past.

This already looks like a useful tool and the reconfigurable nature of FPGAs makes it a good platform to expand. The documentation discusses the difficulty in debugging things for the board, so the base software offers support such as a built-in logic analyzer to help.

We have seen dev boards become bench tools, like using the iCEstick as a logic analyzer. It’s nice to see dedicated tools like this one built up around the speed and versatility of FPGAs.

Continue reading “Glasgow Uses An FPGA As An Embedded Systems Multitool”