Troubleshooting Video Delay On The Raspberry Pi

The Raspberry Pi line of single-board computers are great little devices, and they can do great things with cameras and video. However, there can be a fair bit of latency involved in these tasks depending on the board you’re using and just what you’re doing. You need to have things set up just so to get peak performance. [MattKC] has tangled with this issue in a personal project, and recently had somewhat of a breakthrough.

The issue came up during [MattKC’s] work on cloning the WiiU gamepad. The idea was to receive the video stream from the WiiU console and display it using a Raspberry Pi Zero 2W. He had some problems with latency, wherein there was a strange 3 frames of latency in the video pipeline that just wouldn’t go away. Even substituting in some dummy frames into the pipeline and ignoring them at output time didn’t work—the latency stuck around. Eventually, [MattKC] realized the delay wasn’t about a certain number of frames—it was about time. About 50 milliseconds, in fact.

Drilling down further revealed that there was a problem in the way frames were being fed into and received from the decoder. The first frame would take about 50 ms to decode, while later frames would take far less—as little as 5ms. However, [MattKC’s] code wasn’t set up to grab frames as soon as they were done, so the lag carried forward. The video explains it in greater detail, and how polling the decoder regularly helped solve the issue. The final result was a Raspberry Pi Zero 2W that could process and display the WiiU video feed as quickly as the original Nintendo WiiU gamepad.

If you dug this, it’s worth going back and checking out where the WiiU gamepad project started, too. Video after the break.

Continue reading “Troubleshooting Video Delay On The Raspberry Pi” →

Tearing Down A Cheap Digital Caliper

Most hackers and makers end up with a cheap pair of calipers in the toolbox at some point or another. [DiodeGoneWild] decided to take a particularly cheap plastic pair and tear them down to see what makes them tick measure.

The electronics is, unsurprisingly, all contained inside the carriage which slides along the ruler. The ruler itself has an etched copper strip inside, underneath the scale sticker, with repetitive T-shaped sections. Meanwhile, the PCB in the carriage has a series of plates for capactive sensing. As the carriage slides along the copper strip inside the ruler, the capacitive sensing plates pick up varying capacitances which are directly proportional to how far the carriage has moved, allowing for precise measurement of relative position. Zeroing is a job for the user, via the ZERO button. We get to see how this works on the bare hardware level, and [DiodeGoneWild] even breaks out the oscilloscope to help show us what’s going on.

[DiodeGoneWild] also notes that these calipers are particularly frustrating for how quickly they discharge batteries while in storage. This may be down to the convenience feature, wherein moving the caliper switches the display on. There’s no hard off switch here—so the caliper is always drawing some juice even when it’s just in the cupboard. This is why these things are forever turning up dead when you need them.

If you’ve never pulled apart one of these cheap tools, this is a great way to see what’s actually going on under the hood. We’ve seen some other great teardowns lately, like this deep dive into a cheap pair of smartglasses. Video after the break.

Continue reading “Tearing Down A Cheap Digital Caliper” →

Bridging Older Tasmota Hardware Into Apple Home

The Tasmota firmware is a popular choice for flashing to a range of Espressif microcontrollers to turn them into smart home devices. If you have such devices in your house, you might wish they were easier to integrate with the Apple Home platform. As it turns out, though, there’s a convenient app for that.

[Christof Müller] built an app called Tasmoshelf for just this purpose. Its primary claim to fame is that it can easily help port a Tasmota-based setup into the Apple Home universe. It can achieve this without requiring a Home Assistant server or MQTT broker or any other workarounds. This is thanks to the fact that Apple Home is compatible with Matter technology, as are ESP32 devices running Tasmota 13 firmware or newer. They can natively jump on an Apple Home setup, and even act as a bridge for older ESP8266 devices that can’t speak Matter themselves. The device is able to run network scans to automatically discover devices and advise whether they can hook up directly to Apple Home, or whether a bridge is needed.

If you’re running Tasmota devices and want to easily integrate them, you might find Tasmoshelf a useful addition to your smart home setup. Just note that it does require a one-off purchase if you intend to use it beyond three devices, a limit which some might find somewhat restrictive.

We’ve looked at Tasmota in detail before; it’s a great way to whip up a smart home to suit your own desires. Meanwhile, if you’re whipping up your own nifty integrations, don’t hesitate to let us know on the tipsline.

Hacking Fiber To The Home

When we think about security threats, we generally imagine them coming from far away across the wider internet. But what if the connection between you and your ISP was the target? [Rithwik Jayasimha] and [Rithvik Vibhu] have explored how fiber to the home connections may not be as secure as you would hope.

The hack centers around fiber-to-the-home connections, of which many deployments rely on Gigabit Passive Optical Network (GPON) standards. The key there is the “passive” part—these networks don’t rely on active components to switch signals. ISPs run central trunk lines out to optical line terminals (OLT), with passive splitters installed in neighborhoods to serve a number of downstream subscribers. Each subscriber then has something called an Optical Network Unit (ONU) in their home, which filters out the traffic intended for that specific subscriber.

Therein lies the flaw, though. Light (and thus, data) for many subscribers flows into the home, and it’s only the ONU that is filtering that out. Hack the ONU, or replace it… and you have access to downstream traffic from your neighbors that you shouldn’t be able to access.

The duo were able to hack an ONU to forward every single frame it receives, revealing downstream data intended for other homes in their immediate neighborhood. A great deal of traffic is encrypted these days, which provides a layer of safety, but it is by no means an ideal situation that such a hack is possible at all. They also explored other threats, such as installing splitters in publicly-accessible infrastructure, and compromising an upstream OLT and using it to flash firmware to other subscriber’s ONUs on the network. All this was presented in a talk at DEF CON, too, which can be viewed online.

It’s a concerning look at an often unconsidered link in the network chain. Few of us expect our data to be snooped upon in between us and the ISP, after all.

Continue reading “Hacking Fiber To The Home” →

Smart Clock Helps With Medication Management

There are all kinds of smart devices on the market these days, but if you want one to solve a particular personal problem, sometimes it’s easiest to just build your own. That’s precisely what [hvermaak.projects] did when it came to the Ouma Ria Smart Clock.

The clock was primarily intended to act as a useful tool for providing medication reminders, before some extra useful home functionality was folded in. The heart of the build is an ESP32-WROOM-32 hooked up to four 8×8 WS2812B addressable LED panels acting as a display. A further 30 WS2812Bs in a strip act as a status indicator. A DS3231 real-time-clock module ensures the clock keeps accurate time, while a BH1750 ambient light sensor makes sure the clock is responsive to current lighting conditions. There’s also a DFPlayer Mini audio module for spoken announcements and chimes, while there are inputs for AM312 passive infrared motion sensors that allow the clock to act as a rudimentary security monitor. There’s even a web interface for control and scheduling.

The device ultimately evolved into something that helped with daily live, handling everything from medication management to remembering birthdays, and even helping out with kitchen timing tasks.  We’ve featured some other innovative builds in this space in recent years, too, like this explosively loud alarm clock.

Cell Broadcast: The Modern Emergency Alert System

Once upon a time, telephones were primarily point-to-point communications systems. There were options for three-way and conference calls out there, but by and large the plain old telephone system was about connecting one handset to another for a direct conversation. For this reason, the telephone was seldom used for mass emergency communications, because it was simply not fit for broadcasting a message to a wide number of people.

However, technology has since changed. Our modern phones are all connected to a big digital over-the-air network, and large swathes of them can be addressed all at once if so needed. This has led to the development of emergency warning systems that use the cellular network, with Cell Broadcast being the most notable iteration.

Continue reading “Cell Broadcast: The Modern Emergency Alert System” →

Tearing Down Aircraft Weather Radar Avionics

If you’re flying high in the sky, it’s useful to know if there’s turbulence, heavy rain, or other nasty weather ahead. Onboard weather radar is a useful tool that pilots use to scope out conditions ahead. [Thomas Scherrer] came into possession of a weather radar display from a vintage aircraft, and decided to tear it apart for our viewing pleasure. 

The unit in question is a Bendix PPI-1 plan position indicator. This particular 1971 example was scored from a McDonnell-Douglas DC9. [Thomas] only has the display itself, not the radar that would feed it or the power supply to turn it on. Still, even just the readout unit is super interesting to look inside. Right off the bat, there’s a neat dimming filter on the front, and the case itself is really beautifully designed for service. The design is very much of its time, full of neat wire harnesses and chunky through-hole components.  There are some neat surprises inside, too, like an interesting device shaped like a triangular prism whose purpose we won’t spoil here.

If you’re wondering what one of these units looks like in action, you can see such an example on YouTube. The display basically lights up in areas where there were stronger radar returns indicating weather to be avoided.

We love radars around these parts, and we feature them all the time. Video after the break.

Continue reading “Tearing Down Aircraft Weather Radar Avionics” →