Implementing SENT Sensors On The Raspberry Pi

The SENT protocol, standing for Single Edge Nibble Transmission, is used for sensors that need to send high-resolution data while keeping system costs low. It’s most typically used in the automotive world, where it can be found in such parts as throttle-by-wire pedals and temperature sensors. [Mark Smith] set out to see if he could get the Pi Zero to read such sensors without the use of an intermediate microcontroller.

[Mark]’s initial attempts relied on Python and the RPI.GPIO library. Unfortunately, the overheads introduced made decoding SENT traffic impossible. Undeterred, [Mark] pressed on, leveraging the pigpio library and its callback function which allowed sampling at up to one microsecond. This was fast enough to read the messages from a LX3302A inductive position sensor that uses the protocol.

It’s a project that could prove useful for those trying to work with certain sensors who want to avoid adding complexity to a Raspberry Pi project. Files are available on Github for the curious. We’ve seen other direct sensor builds with the Pi, before too – like this power monitoring system. Video after the break.

Continue reading “Implementing SENT Sensors On The Raspberry Pi”

TI EZ430-Chronos Turned Medical Alert Wearable

Long before the current smartwatch craze, Texas Instruments released the eZ430-Chronos. Even by 2010s standards, it was pretty clunky. Its simple LCD display and handful of buttons also limited what kind of “smart” tasks it could realistically perform. But it did have one thing going for it: its SDK allowed users to create a custom firmware tailored to their exact specifications.

It’s been nearly a decade since we’ve seen anyone dust off the eZ430-Chronos, but that didn’t stop [ogdento] from turning one into a custom alert device for a sick family member. A simple two-button procedure on the watch will fire off emails and text messages to a pre-defined list of contacts, all without involving a third party or have to pay for a service contract. Perhaps most importantly, the relatively energy efficient eZ430 doesn’t need to be recharged weekly or even daily as would be the case for a modern smartwatch.

To make the device as simple as possible, [ogdento] went through the source code for the stock firmware and commented out every function beyond the ability to show the time. With the watch’s menu stripped down to the minimum, a new alert function was introduced that can send out a message using the device’s 915 MHz CC1101 radio.

Messages and recipients can easily be modified.

The display even shows “HELP” next to the appropriate button so there’s no confusion. A second button press is required to send the alert, and there’s even a provision for canceling it should the button be pressed accidentally.

On the receiving side, [ogdento] is using a Raspberry Pi with its own CC1101 radio plugged into the USB port. When the Python scripts running on the Pi picks up the transmission coming from the eZ430 it starts working through a list of recipients to send messages to. A quick look at the source code shows it would be easy to provide your own contact list should you want to put together your own version of this system.

We’ve seen custom alert hardware before, but like [ogdento] points out, using the eZ430-Chronos provides a considerable advantage in that its a turn-key platform. It’s comfortable to wear, reliable, and fairly rugged. While some would argue against trusting independently developed code for such a vital task, at least the hardware is a solved problem.

Heavy Raspberry Pi User? Keep An HDMI-to-USB Capture Device Around

Here’s a simple tip from [Andy], whose Raspberry Pi projects often travel with him outside the workshop: he suggests adding a small HDMI-to-USB video capture device to one’s Raspberry Pi utility belt. As long as there is a computer around, it provides a simple and configuration-free way to view a Raspberry Pi’s display that doesn’t involve the local network, nor does it require carrying around a spare HDMI display and power supply.

Raspberry Pi’s display, viewed on a Mac as if it were a USB webcam. No configuration required.

The usual way to see a Pi’s screen is to either plug in an HDMI display or to connect remotely, but [Andy] found that he didn’t always have details about the network where he was working (assuming a network was even available) and configuring the Pi with a location’s network details was a hassle in any case. Carrying around an HMDI display and power supply was also something he felt he could do without. Throwing a small HDMI-to-USB adapter into his toolkit, on the other hand, has paid off for him big time.

The way it works is simple: the device turns an HDMI video source into something that acts just like a USB webcam’s video stream, which is trivial to view on just about any desktop or laptop. As long as [Andy] has access to some kind of computer, he can be viewing the Pi’s display in no time.

Many of his projects (like this automated cloud camera timelapse) use the Pi camera modules, so a quick way to see the screen is useful to check focus, preview video, and so on. Doing it this way hit a real sweet spot for him. We can’t help but think that one of these little boards could be a tempting thing to embed into a custom cyberdeck build.

C++ Compiler Targets The Web

It is a common problem these days. You have a piece of code in C or C++. Maybe it is older code. Or maybe you prefer prototyping your ideas using C. But, inevitably, someone now wants your code to run in a Web browser. The options for making this happen have expanded quite a bit lately and one possibility is Cheerp, an open-source compiler that handles up to C++ 17 and can output to WebAssembly, JavaScript, or asm.js.

The compiler is free to use for GPLv2 projects. If you aren’t open yourself, it looks like you have to cut a deal to use Cheerp with its maker, Learning Technologies.

Continue reading “C++ Compiler Targets The Web”

Coil On Plug Ignition For Tiny Engines

The spark plug was a key invention in the history of the internal combustion engine, allowing combustion to be easily controlled and engines to rev faster than messy earlier designs. Mid-century cars tended to rely on points ignition with a distributor and coil, however more modern designs place a coil on top of each individual spark plug. [Roger Moore] decided to build a similar setup for a small model engine on his workbench.

The rig is built with an Arduino, a flyback transformer, a smattering of MOSFETs and passives, an IGBT and a capacitor. The Arduino outputs PWM through a MOSFET which is stepped up through the transformer, and then charges the capacitor. The capacitor is then discharged into a coil mounted on top of the sparkplug of the single-cylinder engine, which fires the spark. The timing of the spark is determined by a Hall effect sensor reading a magnet placed on the flywheel.

Later development aims to shrink the system further to fit on a V10 design [Roger] is planning to make. It’s been done on a small scale before, and we’d love to see another tiny engine with way too many cylinders. Video after the break.

Continue reading “Coil On Plug Ignition For Tiny Engines”

Watch Life Tick Away, One LED Segment At A Time

In the grand scheme of things, a single human lifetime is a drop in the bucket. Even if we don’t like to acknowledge it, we all know the meter is running so to speak. Yet you’re still squandering your precious time on this Earth by reading Hackaday instead of doing something constructive. Of course nobody is burning up more time on this site than those of us who are writing it all, so don’t feel too bad.

To remind us that life is fleeting, [Dries Depoorter] has designed the Shortlife: a device that counts down until your expected departure date. Before you get too excited, it can’t predict the future. The gadget is programmed with the vital statistics for the individual user, and data provided by the World Health Organization is used to calculate how much of your estimated life expectancy has already elapsed. Some would find this information depressing, while others will no doubt look at it as a source of inspiration. Us? We just think its a slick piece of gear.

The Shortlife is made up of a custom PCB mounted to a marbled block of recycled plastic. On the board there’s an ATmega328 microcontroller, a MAX7219 LED driver, and of course the red LED segment displays. Three of them are the classic seven count, while the rightmost display sports fourteen segments for a bit of added accuracy. All the user has to do if they want to watch their remaining time slip away is plug the device into a USB power source and set the current time.

We’ve seen similar mortal countdown clocks in the past, but the Shortlife certainly brings a certain level of elegance to the idea. Plus we also like the fact that you’re just a line of code or two away from having the display tick down to some other date in the future when that whole existential crisis kicks in

Remoticon Video: Making Glowy Origami With Charlyn Gonda

Hacking is about pushing the envelope to discover new and clever ways to use things in ways their original designers never envisioned. [Charlyn Gonda]’s Hackaday Remoticon workshop “Making Glowly Origami” was exactly that; a combination of the art of origami with the one of LEDs. Check out the full course embedded below, and read on for a summary of what you’ll find. Continue reading “Remoticon Video: Making Glowy Origami With Charlyn Gonda”