Raspberry Pi Real-Time HAT

New Part Day: Raspberry Pi HAT For IEEE1588 Precision Time Protocol

The new Real-Time HAT by InnoRoute adds IEEE1588 PTP support in hardware to a Raspberry Pi 4 nestled beneath. Based around a Xilinx Artix-7 FPGA and a handful of gigabit Ethernet PHY devices, the HAT acts as network-passthrough, adding accurate time-stamps to egress (outgoing) packets and stripping time-stamps from the ingress (incoming) side.

This hardware time-stamping involves re-writing Ethernet packets on-the-fly using specialised network hardware which the Raspberry Pi does not have. Yes, there are software-only 1588 stacks, but they can only get down to 10s of microsecond resolutions, unlike a hardware approach which can get down to 10s of nanoseconds.

1588 is used heavily for applications such as telecoms infrastructure, factory equipment control and anything requiring synchronisation of data-consuming or data-producing devices. CERN makes very heavy use of 1588 for its enormous arrays of sensors and control equipment, for all the LHC experiments. This is the WhiteRabbit System, presumably named after the time-obsessed white rabbit of Alice In Wonderland fame. So, if you have a large installation and a need for precisely controlling when stuff happens across it, this may be just the thing you’re looking for.

IEEE1588 PTP Synchronisation

The PTP client and master device ping a few messages back and forth between themselves, with the network time-stamper recording the precise moment a packet crosses the interface. These time-stamps are recorded with the local clock. This is important. From these measurements, the time-of-flight of the packet and offset of the local clock from the remote clock may be calculated and corrected for. In this way each client node (the hat) in the network will have the same idea of current time, and hence all network packets flowing through the whole network can be synchronised.

The beauty of the system is that the network switches, wiring and all that common infrastructure don’t need to speak 1588 nor have any other special features, they just need to pass along the packets, ideally with a consistent delay.

The Real-Time HAT configures its FPGA via SPI, straight from Raspberry Pi OS, with multiple applications possible, just by a change on the command line. It is possible to upload custom bitstreams, allowing the HAT to be used as a general purpose FPGA dev board should you wish to do so. It even stacks with the official PoE HAT, which makes it even more useful for hanging sensors on the end of a single wire.

Of course, if your needs are somewhat simpler and smaller in scale than a Swiss city, you could just hack a GPS clock source into a Raspberry Pi with a little soldering and call it a day.

Review: Mini AMG8833 Thermal Camera

In our ceaseless quest to bring you the best from the cheaper end of the global electronics markets, there are sometimes gadgets that we keep an eye on for a while because when they appear they’re just a little bit too pricey to consider cheap.

Today’s subject is just such a device, it’s a minimalist infra-red camera using the 8 pixel by 8 pixel Panasonic AMG8833 thermal sensor. This part has been around for a while, but even though any camera using it has orders of magnitude less performance than more accomplished models it has remained a little too expensive for a casual purchase. Indeed, these mini cameras were somewhere above £50 ($70) when they first came to our attention, but have now dropped to the point at which they can be found for somewhere over £30 ($42). Thirty quid is cheap enough for a punt on a thermal camera, so off went the order to China and the expected grey parcel duly arrived.

The interface on this camera is about as simple as it gets.
The interface on this camera is about as simple as it gets.

It’s a little unit, 40 mm x 35 mm x 18 mm, constructed of two laser-cut pieces of black plastic held together by brass stand-offs that hold a PCB between them, and on the front is a cut-out for the sensor while on the rear is one for the 35mm OLED display.At the side on the PCB is a micro USB socket which serves only as a power supply. It’s fair to say that this is a tiny unit.

Applying power from a USB battery bank, the screen comes up with a square colour thermal picture and a colour to temperature calibration stripe to its left. The colours adapt to the range of temperatures visible to the sensor, and there is a crosshair in the centre of the picture for which the temperature in Celsius is displayed below the picture. It’s a very straightforward and intuitive interface that requires no instruction, which is handy because the device has none. Continue reading “Review: Mini AMG8833 Thermal Camera”

Hackaday Podcast 088: Flywheel Trebuchet, Thieving Magpies, Hero Engines, And Hypermiling

Hackaday editors Elliot Williams and Mike Szczys riff on the hardware hacks that took the Internet by storm this week. Machining siege weapons out of aluminum? If they can throw a tennis ball at 180 mph, yes please! Welding aficionados will love to see the Hero Engine come together. We dive into the high-efficiency game of hypermiling, and spin up the polarizing topic of the Sun Cycle. The episode wouldn’t be complete without hearing what the game of Go sounds like as a loop sequencer, and how a variable speed cassette player can be abused for the benefit of MIDI lovers the world over.

Take a look at the links below if you want to follow along, and as always, tell us what you think about this episode in the comments!

Take a look at the links below if you want to follow along, and as always, tell us what you think about this episode in the comments!

Direct download (60 MB or so.)

Continue reading “Hackaday Podcast 088: Flywheel Trebuchet, Thieving Magpies, Hero Engines, And Hypermiling”

Teleconferencing Like It’s 1988: Connecting Vintage Hardware To Zoom

Hang up your car phone and toss that fax machine in the garbage. Even back in the late 80s it was possible to do away with these primitive technologies in favor of video conferencing, even though this technology didn’t catch on en masse until recently. In fact, Mitsubishi released a piece of video conferencing equipment called the VisiTel that can be put to use today, provided you can do a bit of work to get it to play along nicely with modern technology.

[Alex] was lucky enough to have one of these on hand, as soon as it was powered up he was able to get to work deciphering the messaging protocol of the device. To do this he showed the camera certain pictures with known properties and measured the output waveforms coming from the device, which were AM modulated over an RJ9 connection which he had changed to a 3.5 mm headphone jack.

It communicates in a series of pictures instead of sending an actual video signal, so [Alex] had a lot of work to do to properly encode and decode the stream. He goes into incredible detail on his project page about this process and is worth a read for anyone interested in signal processing. Ultimately, [Alex] was able to patch this classic piece of technology into a Zoom call and the picture quality is excellent when viewed through the lens of $399 80s technology.

We have been seeing a lot of other hacks around video conferencing in the past six months as well, such as physical mute buttons and a mirror that improves eye contact through the webcam.

Altair 8800 Again Project

[Dirk] posted a video (you can see below) titled, “Mystery Retro Project Start.” That turned out to be the first of a multipart series on his Altair 8800 Again simulator. The front panel appears to be laser cut and in some future video episodes, we expect to see him simulate the CPU with a Teensy.

There have been plenty of 8800 clones ranging from projects that recreate the original PCBs, to those that just run a Raspberry Pi inside. The middle ground will use an Arduino or some other small CPU to simulate the 8080 CPU.

Continue reading “Altair 8800 Again Project”

Prolific Videos Show Altair 8800 Recreation

The January 1975 issue of Popular Electronics introduced the Altair 8800 and hit the newsstands in December of 1974, so it is only natural that around the New Year people start thinking about the old computer. [Shadowtron] did more than think about it. He ordered some replica PCBs and is building a new one. Even better, he’s posted an amazing number of videos (up to number 56 as I write this) detailing his progress. You can find part 1, below.

The boards are from Trailing Edge Technology. There’s a backplane board (about $100) as well as a few boards to fit it available for about $30 each — unpopulated, of course.

Continue reading “Prolific Videos Show Altair 8800 Recreation”

Cooking A Turkey With 880 AA Batteries

Cooking a turkey right is serious business this time of year. With major holidays on the line, there’s no room for error – any mistake can leave guests disgruntled and starving. [Stephen Farnsworth] took a risk, though, and attempted to cook a turkey using AA batteries.

The allure of the AA for such a task is precisely because it’s such a poor choice. Designed for portability rather than high power output, it was never designed to be the energy source for a major cooking job. To get things over the line, [Steve] busted out the math to figure out how many batteries would be required. This involved computing cooking efficiencies, battery thermal performance, and the specific heat of the bird itself. With the numbers coming together a 300W slow cooker was put on duty, in order to avoid over-draining the batteries.

With 880 AAs loaded into a custom carrier, [Steve] hooked up the power meter and the cooker and kept a close eye on the temperatures. After a couple of hours, the battery pack started to heat up, so additional cooling was brought in to avoid fire. At just before the six hour mark, the turkey was cooked through and ready to eat. Estimates are that the batteries still had plenty of capacity to keep going for a few hours yet, too.

It’s not a fast or effective way to cook a turkey, but it’s certainly achievable. We fully expect [Steve] to submit the coin-cell turkey cook-off next year, too. Remember, a little engineering always helps, especially in the kitchen. Video after the break.

Continue reading “Cooking A Turkey With 880 AA Batteries”