Beginning BLE Experiments And Making Everything Better

Successfully connecting things without physical wires has a profound effect on the maker brain. Machines talking to each other without any cables is as amazing today as it was a decade ago. When Bluetooth came out, it was a breakthrough since it offered a wireless way to connect cellphones to a PC. But Bluetooth is a complicated, high-bandwidth power hog, and it didn’t make sense for battery-powered devices with less demanding throughput requirements to pay the energy price. Enter Bluetooth LE (BLE), with power requirements modest enough to enable a multitude of applications including low power sensor nodes and beacons.

Over the years, a number of gadgets with BLE have popped up such as the LightBlue Bean, BLE Beacons as well as quadcopters like the FlexBot that rely on BLE for communication. Android or iOS apps are the predominant method of talking to these wonderful gadgets though there are alternatives.

This is the first in a two part series on building with BLE devices. First, I’ll survey some BLE devices and how to get started with BLE from the Linux command line. Later, we will go into describing the process of making a NodeJS cross-platform app that will leverage the BLE capabilities and connect it to the Internet.
Lets get started.
Continue reading “Beginning BLE Experiments And Making Everything Better”

A Custom Keyboard At Maximum Effort

No one loves hacked keyboards more than Hackaday. We spend most of our workday pressing different combinations of the same 104 buttons. Investing time in that tool is time well spent. [Max] feels the same and wants some personality in his input device.

In the first of three videos, he steps us through the design and materials, starting with a layer to hold the keys. FR4 is the layer of fiberglass substrate used for most circuit boards. Protoboards with no copper are just bare FR4 with holes. Homemade CNC machines can glide through FR4, achieving clean lines, and the material comes in different mask colors so customizing an already custom piece is simple. We see a couple of useful online tools for making a homemade keyboard throughout the videos. The first is a keypad layout tool which allows you to start with popular configurations and tweak them to suit your weirdest desires. Missing finger? Forget one key column. Extra digit? Add a new key column. Huge hands? More spaces between the keys. [Max] copied the Iris keyboard design but named his Arke, after the fraternal sister to Iris which is fitting since his wrist rests are removable. Continue reading “A Custom Keyboard At Maximum Effort”

Beverage Holder Of Science

The folks at [K&J Magnetics] have access to precise magnetometers, a wealth of knowledge from years of experience but when it comes to playing around with a silly project like a magnetic koozie, they go right to trial and error rather than simulations and calculations. Granted, this is the opposite of mission-critical.

Once the experimentation was over, they got down to explaining their results so we can learn more than just how to hold our beer on the side of a toolbox. They describe three factors related to magnetic holding in clear terms that are the meat and bones of this experiment. The first is that anything which comes between the magnet and surface should be thin. The second factor is that it should be grippy, not slippy. The final element is to account for the leverage of the beverage being suspended. Say that three times fast.

Magnets are so cool for anything from helping visualize gas atoms, machinists’ tools, and circumventing firearm security features.

Continue reading “Beverage Holder Of Science”

It’s All In The Libs – Building A Plugin System Using Dynamic Loading

Shared libraries are our best friends to extend the functionality of C programs without reinventing the wheel. They offer a collection of exported functions, variables, and other symbols that we can use inside our own program as if the content of the shared library was a direct part of our code. The usual way to use such libraries is to simply link against them at compile time, and let the linker resolve all external symbols and make sure everything is in place when creating our executable file. Whenever we then run our executable, the loader, a part of the operating system, will try to resolve again all the symbols, and load every required library into memory, along with our executable itself.

But what if we didn’t want to add libraries at compile time, but instead load them ourselves as needed during runtime? Instead of a predefined dependency on a library, we could make its presence optional and adjust our program’s functionality accordingly. Well, we can do just that with the concept of dynamic loading. In this article, we will look into dynamic loading, how to use it, and what to do with it — including building our own plugin system. But first, we will have a closer look at shared libraries and create one ourselves.

Continue reading “It’s All In The Libs – Building A Plugin System Using Dynamic Loading”

The Magic That Goes Into Magnets

Every person who reads these pages is likely to have encountered a neodymium magnet. Most of us interact with them on a daily basis, so it is easy to assume that the process for their manufacture must be simple since they are everywhere. That is not the case, and there is value in knowing how the magnets are manufactured so that the next time you pick one up or put a reminder on the fridge you can appreciate the labor that goes into one.

[Michael Brand] writes the Super Magnet Man blog and he walks us through the high-level steps of neodymium magnet production. It would be a flat-out lie to say it was easy, but you’ll learn what goes into them and why you don’t want to lick a broken hard-drive magnet and why it will turn to powder in your mouth. Neodymium magnets are probably unlikely to be produced at this level in a garage lab, but we would love to be proved wrong.

We see these magnets everywhere, from homemade encoder disks, cartesian coordinate tables, to a super low-power motor.

The PT2399 Delay/Echo Chip Data Sheet You Never Had

If you are fortunate enough to have had the opportunity to play with an analogue-reel-to-reel tape recorder in a well-equipped studio, you probably looped the tape around to create an echo, or a delay in the audio. It was a desirable effect to have, but not a practical one for a guitar pedal or similar portable accessory. Silicon alternatives for creating delays have been in production since the 1960s, first the so-called bucket brigade delay lines that used a switched chain of on-chip capacitors, and more recently all-digital chips that process the delay by storing samples in RAM. One of the more popular of those is the Princeton Technology PT2399, but it comes with something of a snag for the experimenter in the form of a sparse data sheet. Thankfully the folks at [Electrosmash] have come to the rescue on that front with a thorough technical examination of the chip that should fill in any gaps in the official documentation.

After a brief examination of the range of chips of which the 2399 is a part, they dive right into the chip’s internals by rearranging the internal circuit diagram from the data sheet to the point at which it makes more sense. At which point the difference between the chip’s delay and echo functions becomes obvious, through the inclusion of a feedback path.

We then are taken through the pins, examining what lies behind the power supply and analog inputs and outputs. We are somewhere between a data sheet and an app note here, as some of this is information rarely present even in really good data sheets. Finally, we are taken through the chip’s performance, with real-world distortion and noise measurements. Armed with this page, the would-be PT2399 designer really can say they know what they are working with.

Surprisingly few PT2399s have appeared on these pages, however one did pop up in the Synthbike.

DIY Socket For Prosthetics Contains Power Supply, Charger

Innovation in prosthetics is open to anyone looking to enhance the quality of life, but there’s an aspect of it that is sometimes under-served. The DIY Prosthetic Socket entry to the Hackaday Prize is all about the foundation of a useful prosthesis: a custom, form-fitting, and effective socket with a useful interface for attaching other hardware. While [atharvshringaregt] is also involved with a project for a high-tech robotic hand with meaningful feedback, socket fitting and design is important enough to be its own project.

The goal is not just to explore creating these essential parts in a way that’s accessible and affordable to all, but to have them include a self-contained rechargeable power supply that can power attachments. Thoughtful strap placement and a power supply design that uses readily available components with a 3D printed battery housing makes this DIY prosthetic socket a useful piece of design that keeps in mind the importance of comfort and fitting when it comes to prosthetics; even the fanciest robot hand isn’t much good otherwise.