Edgytokei

Edgytokei’s Incredible Mechanism Shows Time Without A Face

Taking inspiration from Japanese nunchucks, [ekaggrat singh kalsi] came up with a brilliant clock that tells time using only hour and minute hands, and of course a base for them to sit on. The hands at certain parts of the hour seem to float in the air, or as he puts it, to sit on their edges, hence the name, the Edgytokei, translating as “edge clock”.

The time is a little difficult to read at first unless you’ve drawn in a clock face with numbers as we’ve done here. 9:02 and 9:54 are simple enough, but 9:20 and 9:33 can be difficult to translate into a time at first glance. Since both hands have to be the same length for the mechanism to work, how do you tell the two hands apart? [ekaggrat] included a ring of LEDs in the hub at the base and another at the end of one of the hands. Whichever ring of LEDs is turned on, indicates the tip of the minute hand. But the best way to get an idea of how it works is to watch it action in the video below.

We have to admire the simplicity and cleanliness of his implementation. The elbow and the hub at the base each hide a stepper motor with attached gear. Gear tracks lining the interior of the hands’ interact with the motor gears to move the hands. And to keep things clean, power is transferred using copper tape lining the exteriors.

On the Hackaday.io page [ekaggrat] talks about how difficult it was to come up with the algorithms and especially the code for homing the hands to the 12:00 position, given that homing can be initiated while the hands can be in any orientation. The hand positions are encoded in G-code, and a borrowed G-code parser running on an Arduino Nano in the base controls it all.

Continue reading “Edgytokei’s Incredible Mechanism Shows Time Without A Face”

Final Project For Better Sleep

It’s that time of year again, and students around the world are scrambling (or have already scrambled) to finish their final projects for the semester. And, while studying for finals prevents many from sleeping an adequate amount, [Julia] and [Nick] are seeking to maximize “what little sleep the [Electrical and Computer Engineering] major allows” them by using their final project to measure sleep quality.

To produce a metric for sleep quality, [Julia] and [Nick] set out to measure various sleep-related activities, specifically heart rate, motion and breath frequency. During the night, an Arduino Nano mounted to a glove collects data from the various sensors mounted to the user, all the while beaming the data to a stationary PIC for analysis and storage. When the user awakes, they can view their sleep report on a TFT display at the PIC base station. Ideally, users would use this data to test different habits in order to get the best nights sleep possible.

Interestingly, the group chose to implement their own heart rate sensor. With an IR transmitter, IR phototransistor and an OP amp, the group illuminates user’s fingers and measure reflection to detect heartbeats. This works because the amount of IR reflected from the user’s finger changes with blood pressure and blood oxygen level, which also happen to change when the heart is beating. There were some bumps along the road when it came to the heartbeat sensor (the need to use a finger instead of the wrist forced them to use a glove instead of a wristband), but we think it’s super cool and totally worth it. In addition to heart rate, motion is measured by an accelerometer and breath is measured by a flex sensor wrapped around the user’s chest.

With all of their data beamed back by a pair of nRF24L01s, the PIC computes the sleep “chaos” which is exactly what it sounds like: it describes just how chaotic the user slept by looking for acyclic and sudden movement. Using this metric, combined with information from breathing and heart rate, the PIC computes a percentage for good sleep where 100% is a great night and 0% means you might have been just as well off pulling an all-nighter. And, to top it all off, the PIC saves your data to an SD card for easy after-the-fact review.

The commented code that powers the project can be found here along with a parts list in their project write-up.

This device assumes that sleeping is the issue, but if waking up if your problem, we’ve already got you covered, aggressive alarm clock style. For those already on top of their sleep, you might want some help with lucid dreaming.

Video of the project explained by [Julia] and [Nick] after the break.

Continue reading “Final Project For Better Sleep”

CosmicWatch muon detector

Make A Cheap Muon Detector Using Cosmicwatch

A little over a year ago we’d written about a sub $100 muon detector that MIT doctoral candidate [Spencer Axani] and a few others had put together. At the time there was little more than a paper on arxiv.org about it. Now, a few versions later they’ve refined it to the level of a kit with full instructions for making your own under the banner, CosmicWatch including PCB Gerber files for the two surface mount boards you’ll need to assemble.

What’s a muon? The Earth is under constant bombardment from cosmic rays, most of them being nuclei expelled from supernova explosions. As they collide with nuclei in our atmosphere, pions and kaons are produced, and the pions then decay into muons.  These muons are similar to electrons, having a +1 or -1 charge, but with 200 times the mass.

This pion-to-muon decay happens higher than 10 km above the Earth’s surface. But the muons have a lifetime at rest of 2.2 μs. This means that the number of muons peak at around 10 km and decrease as you go down. A jetliner at 30,000 feet will encounter far more muons than will someone at the Earth’s surface where there’s one per cm2 per minute, and the deeper underground you go the fewer still. This makes them useful for inferring altitude and depth.

How does CosmicWatch detect these muons? The working components of the detector consist of a plastic scintillator, a silicon photomultiplier (SiPM), a main circuit board which does signal amplification and peak detection among other things, and an Arduino nano.

As a muon passes through the scintillating material, some of its energy is absorbed and re-emitted as photons. Those photons are detected by the silicon photomultiplier (SiPM) which then outputs an electrical signal that is approximately 0.5 μs wide and 10-100 mV. That’s then amplified by a factor of 6. However, the amplified pulse is too brief for the Arduino nano and so it’s stretched out by the peak detector to roughly 100 μs. The Arduino samples the peak detector’s output and calculates the original pulse’s amplitude.

Their webpage has copious details on where to get the parts, the software and how to make it. However, they do assume you can either find a cheap photomultiplier somewhere or buy it in quantities of over 100 brand new, presumably as part of a school program. That bulk purchase makes the difference between a $50 part and one just over $100. But being skilled hackers we’re sure you can find other ways to save costs, and $150 for a muon detector still isn’t too unreasonable.

Detecting muons seems to have become a thing lately. Not too long ago we reported on a Hackaday prize entry for a detector that uses Russian Geiger–Müller Tubes.

Hackaday Prize Entry: Dynamometer For Post Stroke Rehabilitation

For those who have suffered a stroke, recovery is a long and slow process that requires rehabilitation to start as early as possible. Quite often, secondary stroke attacks complicate matters. Spasticity — muscle contraction and paresis — muscular weakness, are two of the many common after-effects of stroke. Recovery involves doing repeated exercises to strengthen the muscles and bring back muscle memory. Benchmarking progress becomes difficult when caregivers are only able to use qualitative means such as squeezing tennis balls to monitor improvement. To help provide quantitative measurements in such cases, [Sergei V. Bogdanov] is building a Dynamometer for Post-Stroke Rehabilitation. It is an Open Source, 4-channel differential force gauge for measuring and logging the progress of the patient. The device measures, graphs, and logs the force exerted by the four fingers when they push down on the four force gauges.

The device consists of four strain gauges obtained from cheap kitchen scales. The analog outputs from these are fed to HX-711 24-bit ADC boards. An Arduino Nano processes the data and displays it on two banks of eight-digit LED modules. [Sergei] also experimented with a 20×4 character LCD in place of the LED display. In the standalone mode, the device can only indicate the measured forces on the LED (or LCD) display which is calibrated to display either numerical values or a logarithmic scale. When connected to a serial port and using the (Windows only) program, it is possible to not only view the same information but also save it at regular, set intervals. The data can also be viewed in graphical form.

The project page provides links to their Arduino code, Windows monitor program as well as build instructions. Check out the related assistive technology project that [Sergei] is working on — A Post Stroke Spasticity Rehab Helper.

Continue reading “Hackaday Prize Entry: Dynamometer For Post Stroke Rehabilitation”

Hackaday Prize Entry: Post Stroke Spasticity Rehab Helper

A stroke is caused when poor blood flow to the brain causes cell damage, causing that part of the brain to stop functioning. Common causes are either blood vessel blockage or internal bleeding, and effects depend on the part of the brain that is affected. In most cases, spasticity (muscle contraction), poor motor control and the inability to move and feel are common after effects. Recovery is often a long, slow process and involves re-learning the affected lost skills. This is where physical therapy using assistive technologies becomes important. Rehabilitation must start as early as possible since the first few weeks are critical for good recovery. [Sergei V. Bogdanov] is building a cheap and simple Post-Stroke Spasticity Rehab Helper to address this problem.

He’s using ten hobby micro servos connected to an Arduino Nano, all mounted on a kitchen chopping board, with a few other bits thrown in to round out the build. There’s one pair of servos for each finger. A five bar linkage converts the servo rotations to two-dimensional motion. The end of the linkage has a swiveling metallic disk. Patient fingers are attached to these discs via magnetic metal pads that are attached to the end of the fingers using adhesive plaster tape. Two push buttons cycle through a large number of exercise modes and two potentiometer’s help adjust the speed and smoothness (the number of points calculated for the desired motion). Two 7-segment LED display modules connected to the Arduino provides a visual interface showing program modes, speed, number of cycles and other relevant information. Replicating the project ought to be very straightforward since the device uses off-the-shelf parts which are easy to put together using the detailed build instructions, photos and code posted on [Sergei]’s project page. Check out the videos below to see the rehab helper in action.

Continue reading “Hackaday Prize Entry: Post Stroke Spasticity Rehab Helper”

Super Simple Controller For Motorcycle LED Lights

For automobiles, especially motorcycles, auxiliary lighting that augments the headlights can be quite useful, particularly when you need to drive/ride through foggy conditions and poorly lit or unlit roads and dirt tracks. Most primary lighting on vehicles still relies on tungsten filament lamps which have very poor efficiency. The availability of cheap, high-efficiency LED modules helps add additional lighting to the vehicle without adding a lot of burden on the electrical supply. If you want to add brightness control, you need to either buy a dimmer module, or roll your own. [PatH] from WhiskeyTangoHotel choose the latter route, and built a super simple LED controller for his KLR650 bike.

He chose a commonly available 18 W light bar module containing six 3 W LEDs. He then decided to build a microcontroller based dimmer to offer 33%, 50% and 100% intensities. And since more code wasn’t going to cost him anything extra, he added breathing and strobe modes. The hardware is as barebones as possible, consisting of an Arduino Nano, linear regulator, power MOSFET and control switch, with a few discretes thrown in. The handlebar mounted control switch is a generic motorcycle accessory that has two push buttons (horn, headlight) and a slide switch (turn indicators). One cycles through the various brightness modes on the pushbutton, while the slide switch activates the Strobe function. A status indicator LED is wired up to the Nano and installed on the handlebar control switch. It provides coded flashes to indicate the selected mode.

It’s a pity that the “breathing” effect is covered under a patent, at least for the next couple of years, so be careful if you plan to use that mode while on the road. And the Strobe mode — please don’t use it — like, Ever. It’s possible to induce a seizure which won’t be nice for everyone involved. Unless you are in a dire emergency and need to attract someone’s attention for help.

Continue reading “Super Simple Controller For Motorcycle LED Lights”

Hackaday Prize Entry: CPAP Humidifier Monitor Alarm

CPAP (Continuous Positive Airway Pressure) machines can be life-changing for people with sleep apnea. [Scott Clandinin] benefits from his CPAP machine and devised a way to improve his quality of life even further with a non-destructive modification to monitor his machine’s humidifier.

With a CPAP machine, all air the wearer breathes is air that has gone through the machine. [Scott]’s CPAP machine has a small water reservoir which is heated to humidify the air before it goes to the wearer. However, depending on conditions the water reservoir may run dry during use, leading to the user waking up dried out and uncomfortable.

To solve this in a non-invasive way that required no modifications to the machine itself, [Scott] created a two-part device. The first part is a platform upon which the CPAP machine rests. A load cell interfaced to an HX711 Load Cell Amplifier allows an Arduino Nano to measure the mass of the CPAP machine plus the integrated water reservoir. By taking regular measurements, the Arduino can detect when the reservoir is about to run dry and sound an alarm. Getting one’s sleep interrupted by an alarm isn’t a pleasant way to wake up, but it’s much more pleasant than waking up dried out and uncomfortable from breathing hot, dry air for a while.

The second part of the device is a simple button interfaced to a hanger for the mask itself. While the mask is hung up, the system is idle. When the mask is removed from the hook, the system takes measurements and goes to work. This makes activation hassle-free, not to mention also avoids spurious alarms while the user removes and fills the water reservoir.

Non-invasive modifications to medical or other health-related devices is common, and a perfect example of nondestructive interfacing is the Eyedriveomatic which won the 2015 Hackaday Prize. Also, the HX711 Load Cell Amplifier has an Arduino library that was used in this bathroom scale refurb project.