Tracking Vaccination History With Invisible Tattoos

Nowadays, we still rely on medical records to tell when our last vaccinations were. For social workers in developing countries, it’s an incredibly difficult task especially if there isn’t a good standard in place for tracking vaccinations already.

A team at the Massachusetts Institute of Technology may be providing a solution – they’ve developed a safe ink to be embedded into the skin alongside the vaccine, only visible under a special light provided by a smartphone camera app. It’s an inconspicuous way to document the patient’s vaccination history directly into their skin and low-risk enough to massively simplify the process of maintaining medical records for vaccines.

The tatoo is made up of tiny quantum dots – semiconductor crystals that reflect light – that glow under infrared light. The pattern is delivered using dissolving microneedles made up of polymers and sugar. While the solution remains in the proof-of-concept stage, the researchers were successfully able to detect patterns embedded into the skins of rats nine months after the initial injection. On human cadavers, the patterns remained identifiable after five years of simulated sun exposure.

This could certainly mean new possibilities for decentralized information delivery and storage. Alongside biodegradable implants and power pills, we could be looking at an exciting frontier for biohacking.

source https://hackaday.com/2020/01/03/tracking-vaccination-history-with-invisible-tattoos/

Voltmeter Clock Looks Great On Display

Voltmeters are cheap, and have a great industrial aesthetic about them. This makes them prime candidates for hackers looking to do a clock build. [Brett Oliver] went down this very road, and built a very stylish timepiece along the way.

[Brett] initially wanted to go with 240-degree voltmeters, however the cost was prohibitive, so settled for the more common 90-degree models. New dials were produced by first sanding down the old dials, repainting in an old-fashioned off-white, and then applying the new graphics with inkjet transfer paper.

The attention to detail continues with the case. [Brett] aimed to build the clock with an old-school lab equipment aesthetic. A large piece of mahogany was crafted into the base.  A clear plastic cover was sourced from eBay, which really makes the piece. Large buttons and toggle switches were chosen to complete the look.

On the electronic side of things, it’s all run by a PIC16F628A, which controls the voltmeters via PWM. Running with a 20MHz crystal, the PIC is not a great timekeeper. Instead, the whole show is synchronized to [Brett]’s master clock we featured a few years back.

Building a clock is a rite of passage for a hacker, and [Brett]’s example goes to show how craftsmanship can really pay off in this pursuit. Video after the break.

source https://hackaday.com/2020/01/03/voltmeter-clock-looks-great-on-display/

Unique 3D Printer Turned CNC Engraver

As we’ve said in the past, one of the most exciting things about the proliferation of low-cost desktop 3D printers (beyond all the little boats we get to see on Reddit), is the fact that their motion control systems are ripe for repurposing. Outfitting a cheap 3D printer with a drag knife, pen holder, or even a solid-state laser module, are all very common ways of squeezing even more functionality out of these machines.

But thanks to the somewhat unusual nature of his printer, [Hammad Nasir] was able to take this concept a bit farther. Being considerably more rigid than the $99 acrylic-framed box of bolts we’ve become accustomed to, he was able to fit it with a basic spindle and use it for CNC engraving. He won’t be milling any steel on this rig, but judging by the pictures on the Hackaday.io page for the project, it does a respectable job cutting designs into plastic at least.

The IdeaWerk 3D printer that [Hammad] used for this project is phenomenally overbuilt. We don’t know whether the designers simply wanted to make it look futuristic and high-tech (admittedly, it does look like it could double as a movie prop) or they thought there was a chance it might get thrown down the stairs occasionally. In either event, it’s built like an absolute tank.

While the frame on lesser printers would likely flex as soon as the bit started moving across the workpiece, this thing isn’t going anywhere. Of course this machine is presumably still running on the standard GT2 belt and NEMA 17 arrangement that has been used in desktop 3D printers since the first wooden machines clattered to life. So while the frame might be ready to take some punishment, the drive system could respectfully disagree once the pressure is on.

Modification was simplified by the fact that the hotend and extruder assembly on the IdeaWerk is mounted to the X axis with just a single bolt. This makes it exceptionally easy to design alternate tool mounts, though arguably the 3D printed motor holder [Hammad] is using here is the weak link in the entire system; if it’s going to flex anywhere, it’s going to be there.

If you’re more photonically inclined, you might be interested in this similarly straightforward project that sees a 2.5 W laser module get bolted onto an entry level 3D printer.

source https://hackaday.com/2020/01/03/unique-3d-printer-turned-cnc-engraver/

You Could be a Manufacturing Engineer If You Could Only Find the Time

Let’s be honest, Ruth Grace Wang can’t teach you how to be a manufacturing engineer in the span of a twenty minute talk. But no-one can. This is about picking up the skills for a new career without following the traditional education path, and that takes some serious time. But Grace pulled it off, and her talk at the 2019 Hackaday Superconference shares what she learned about reinventing your career path without completely disrupting your life to do so.

Ruth got on this crazy ride when she realized that being a maker made her happy and she wanted to do a lot more of it. See wanted to be “making stuff at scale” which is the definition of manufacturing. She took the hacker approach, by leveraging her personal projects to pull back the veil of the manufacturing world. She did a few crowd funding campaigns that exposed her to the difficulties of producing more than one of something. And along the way used revenue from those projects to get training and to seek mentorships.

Those mentorships can come in many forms. Much of her success stems from the personal connections she made at conferences, through online interactions, and at Noisebridge, her local hackerspace in San Francisco. One of the most interesting stories she mentions is a mentorship hack where she found people with the skills she wanted to learn, and convinced them to give a class about it if she did all the organizational legwork.

She had begun to learn Mandarin when the opportunity to start working on a manufacturing project with a startup came along. But her skills acquisition phase never ended. Ruth advocates for personal curiosity, and used her own as radar to pick up on new things to learn that others may have missed.

But what we all might benefit from most in this talk is her discussion at the end about finding time. Ruth says “your productivity will never increase”, because productive people are already using their available time. That doesn’t mean you can’t pick up new career skills on the side. But it does mean you need to throw some things overboard. From showing up late, to adopting a clean clothes box, Ruth certainly dipped into the well of life hacks to get there. She succeeded, and two years after the original epiphany she’s finally landed a job as a manufacturing engineer.

source https://hackaday.com/2020/01/03/you-could-be-a-manufacturing-engineer-if-you-could-only-find-the-time/

The Quadratic Equation Solution a Few Thousand Years in the Making

Everyone learns (and some readers maybe still remember) the quadratic formula. It’s a pillar of algebra and allows you to solve equations like Ax2+Bx+C=0. But just because you’ve used it doesn’t mean you know how to come up with the formula itself. It’s a bear to derive so the vast majority of us simply memorize the formula. A Carnegie Mellon mathematician named Po-Shen Loh didn’t expect to find a new way to derive the solution when he was reviewing math materials for middle school use to make them easier to understand. After all, people have been solving that equation for about 4,000 years. But that’s exactly what he did.

Before we look at the new solution, let’s talk about why you want to solve quadratic equations. They are used in many contexts. In ancient times you might use them to determine how much more crop to grow to cover pay tax payments without eating in to the crop you needed to subsist. In physics, it can describe motion. There’s seemingly no end to how many things you can describe with a quadratic equation.

Babylonians, in particular, would solve simultaneous equations to find the roots of a quadratic. Egyptians, Grecians, Indians, and Chinese peoples used graphical methods to solve the equations. The entire history is a bit much to get into, but still a great read. For this article, let’s dig into how the new derivation was discovered.

Setting Up the Equation

So what’s the method? You watch Loh explain it himself in the video, below. Suppose you have a standard quadratic equation for whatever reason that looks like this:

x2-6x+3=0

In this case, A=1, B=6, and C=3. Note that for Loh’s method to work, A should equal 1, but if it doesn’t you can always divide both sides by A to make that true. For example, consider this equation:

3x2-18x+9=0

It will have the same roots as the first one because if you divide both sides by 3, you get the first equation.

The Polynomial Factor

To factor a polynomial into two binomials we can use FOIL (First/Inner/Outer/Last). So we know that:

x2-6x+3=(x-S)(x-R)

Where we just made up S and R. They exist, but we don’t know what they are yet. However, for the answer to be zero, you can see that the equation will be zero when x=S or X=R so that means S and R are the roots of the equation.

So What’s S and R?

It sounds silly, but let’s multiply out the binomials into another polynomial. Remember FOIL:

x2-6x+3=x2-(S+R)x+SR

If you look at that for a second, you will probably realize that S times R must be 3. We also know they add up to 6. At this point, you can probably just guess the roots, but let’s make it formal.

The roots of a polynomial like this will be in the form of U±z. So if S=U+z and R=U-z, the only way to make (U+z)+(U-z) equal to 6 is if U is 6/2. Since B is -6 in this example, we can intuit that U must be -B/2 in the general case.

Home Stretch

So we now know the roots are -B/2+z and -B/2-z. We know that B is -6. We also know the answer is when we multiply those roots together must be C (3, for our example). So we can write:

(-(-6)/2+z)(-(-6)/2-z)=3

Or:

(3+z)(3-z)=3

Do the FOIL method again and get:

9+3z-3z-z2=3

The middle terms will always cancel out so you get:

9-z2=3

Subtract 3 from both sides and add z squared to both sides:

6=z2

Since the root must be -B/2±z we know that our two roots are 3+√6 and 3-√6.

The Key and the Catch

The point is, none of this was hard to remember or work out. Just remember that you rewrite the zero as (x-S)(x-R) and the rest follows very logically.

The only real problem is not many quadratic equations have A=1. For example, suppose you throw a ball straight up from 5 meters above the ground with a velocity of 15 m/s. We want to know when the ball will hit the ground.

Gravity is going to pull down on the ball at about 4.9 meters per second squared (assuming gravity accelerates at -9.8 m/s2). The physics formula is (at2)/2 so we get our first term of -4.8t2. The second term will represent the speed of the ball which is simply 15t. We also started 5 meters above the ground, so we will add 5 and wind up with:

-4.8t2+15t+5

This formula will tell you where the ball is assuming you throw at t=0. We want to know when it hits the ground so that will be one of the roots:

-4.8t2+15t+5=0

To use the new method, just divide it all through by -4.8 to get:

t2-3.125t-1.04=0

So now B=-3.125 and C=-1.04. We know the root will be -B/2±z or 1.5625 and that z2 will equal (1.5625)2+1.04.

That’s 3.48 (about) and the square root is about 1.866. The roots, then, are 1.5625±1.866. Working that out, we get -0.30 and 3.4285. The negative root is nonsense in this case but the ball will land almost 3.5 seconds after you throw it.

If you don’t trust our work, ask Wolfram Alpha or plug 3.4285 back into the original formula. Wolfram says 3.43 and the check your own work says 0.005 meters at that time, so given that I rounded a few times, that’s pretty close. Besides, I’m ignoring things like air resistance. This specific calculator says 3.36 seconds, which is still pretty close.

In Summary

If you prefer things in algorithmic steps, here you go:

  1. Find A, B, and C for the quadratic equation.
  2. If necessary, divide by A so that A now is 1.
  3. Write -(B/2)2-z2=C
  4. Solve for z (since you know B and C)
  5. Roots are -B/2±z

Everything Old is New Again

We get it. Many people may have figured this out before. But if they did, they apparently forgot to share it with anyone in any permanent form. If you read the actual paper, you’ll see how easy it is to symbolically derive the “old” standard formula. Compare that to the traditional method. If you read the proof, it seems simple enough, but go back in a few weeks and try to work it out yourself. Not so easy. This is also much easier to remember even if you don’t want to derive it every time.

Of course, making A=1 is part of the trick. It is well known, for example, that the product of the roots of a quadratic is C/A. Since we know A=1, it follows that the product of S and R are also C, using this method. Normalizing A to 1 is also an old trick and is sometimes called a reduced quadratic equation. However, it doesn’t look like anyone put all the pieces together until now.

If you don’t like Wolfram Alpha, there’s always Mathics (hint: use Solve[-4.8t^2+15t+5==0,t]).  There are also specific calculators. Or just bite the bullet and keep everything in a Jupyter Notebook.

source https://hackaday.com/2020/01/03/the-quadratic-equation-solution-a-few-thousand-years-in-the-making/

Hackaday Podcast 048: Truly Trustworthy Hardware, Glowing Uranium Marbles, Bitstreaming the USB, Chaos of Congress

Hackaday editors Elliot WIlliams and Mike Szczys kick off the first podcast of the new year. Elliot just got home from Chaos Communications Congress (36c3) with a ton of great stories, and he showed off his electric cargo carrier build while he was there. We recount some of the most interesting hacks of the past few weeks, such as 3D-printed molds for making your own paper-pulp objects, a rudimentary digital camera sensor built by hand, a tattoo-removal laser turned welder, and desktop-artillery that’s delivered in greeting-card format.

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 (69 MB)

Places to follow Hackaday podcasts:

Episode 048 Show Notes:

New This Week:

Interesting Hacks of the Week:

Quick Hacks:

Can’t-Miss Articles:

source https://hackaday.com/2020/01/03/hackaday-podcast-048-truly-trustworthy-hardware-glowing-uranium-marbles-bitstreaming-the-usb-chaos-of-congress/

The Fun is On the Christmas Tree with This Playable Duck Hunt Decoration

‘Tis the season for leftovers, be they food, regifted presents, or the decorations left behind in the wake of the festivities. Not to mention the late tips we get for holiday-themed builds, like this Duck Hunt ornament that’s completely playable.

Details are sparse in [wermy]’s video below, but there’s enough there to get the gist. The game is based on the Nintendo classic, where animated ducks fly across the screen and act as targets for a light pistol. Translating that to something suitable for decorating a Christmas tree meant adding an Arduino and an IR LED to the original NES light pistol, and building a base station with a Feather and a small LCD screen into a case that looks like [The Simpsons] TV. An LED on each 3d-printed duck target lights in turn, prompting you to blast it with the gun. An IR sensor on each duck registers hits, while the familiar sound effects are generated by the base, which also displays the score. Given a background of festive blinkenlights, it’s harder than it sounds – see it in action briefly below.

[wermy] has done some interesting builds before, like a RetroPie in an Altoids tin and a spooky string of eyes for Halloween. We hope he’ll come through with a more detailed build video for this project at some point – we’re particularly interested in those beautiful multi-color 3D-prints.

[via sudomod]

source https://hackaday.com/2020/01/03/the-fun-is-on-the-christmas-tree-with-this-playable-duck-hunt-decoration/

This Week in Security: ToTok, Edgium, Chrome Checks your Passwords, and More

Merry Christmas and happy New Year! After a week off, we have quite a few stories to cover, starting with an unexpected Christmas gift from Apple. Apple has run an invitation-only bug bounty program for years, but it only covered iOS, and the maximum payout topped out at $200K. The new program is open to the public, covers the entire Apple product lineup, and has a maximum payout of $1.5 million. Go forth and find vulnerabilities, and make sure to let us know what you find.

ToTok

The United Arab Emirates had an odd policy regarding VoIP communications. At least on mobile networks, it seems that all VoIP calls are blocked — unless you’re using a particular app: ToTok. Does that sound odd? Is your “Security Spider Sense” tingling? It probably should. The New York Times covered ToTok, claiming it was actually a tool for spying on citizens.

While that coverage is interesting, more meat can be found in [Patrick Wardle]’s research on the app. What’s most notable, however, is the distinct lack of evidence found in the app itself. Sure, ToTok can read your files, uploads your contact book to a centralized server, and tries to send the device’s GPS coordinates. This really isn’t too far removed from what other apps already do, all in the name of convenience.

It seems that ToTok lacks end-to-end encryption, which means that calls could be easily decrypted by whoever is behind the app. The lack of malicious code in the app itself makes it difficult to emphatically call it a spy tool, but it’s hard to imagine a better way to capture VoIP calls. Since those articles ran, ToTok has been removed from both the Apple and Google’s app stores.

SMS Keys to the Kingdom

Have you noticed how many services treat your mobile number as a positive form of authentication? Need a password reset? Just type in the six-digit code sent in a text. Prove it’s you? We sent you a text. [Joakim Bech] discovered a weakness that takes this a step further: all he needs is access to a single SMS message, and he can control your burglar alarm from anywhere. Well, at least if you have a security system from Alert Alarm in Sweden.

The control messages are sent over SMS, making them fairly accessible to an attacker. AES encryption is used for encryption, but a series of errors seriously reduces the effectiveness of that encryption. The first being the key. To build the 128-bit encryption key, the app takes the user’s four-digit PIN, and pads it with zeros, so it’s essentially a 13 bit encryption key. Even worse, there is no message authentication built in to the system at all. An attacker with a single captured SMS message can brute force the user’s PIN, modify the message, and easily send spoofed commands that are treated as valid.

Microsoft Chrome

You may have seen the news, Microsoft is giving up on their Edge browser code, and will soon begin shipping a Chromium based Edge. While that has been a source of entertainment all on its own, some have already begun taking advantage of the new bug bounty program for Chromium Edge (Edgium?). It’s an odd bounty program, in that Microsoft has no interest in paying for bugs found in Google’s code. As a result, only bugs in the Edge-exclusive features qualify for payout from Microsoft.

As [Abdulrahman Al-Qabandi] puts it, that’s a very small attack surface. Even so, he managed to find a vulnerability that qualified, and it’s unique. One of the additions Microsoft has made to Edgium is a custom new tab page. Similar to other browsers, that new tab page shows the user their most visited websites. The problem is that the site’s title is shown on that page, but without any sanity checking. If your site’s title field happens to include Javascript, that too is injected into the new tab page.

The full exploit has a few extra steps, but the essence is that once a website makes it to the new tab page, it can take over that page, and maybe even escape the browser sandbox.

Chrome Password Checkup

This story is a bit older, but really grabbed my attention. Google has rolled a feature out in Chrome that automatically compares your saved passwords to past data breaches. How does that work without being a security nightmare? It’s clever. A three-byte hash of each username is sent to Google, and compared to the hashes of the compromised accounts. A encrypted database of potential matches is sent to your machine. Your saved passwords, already encrypted with your key, is encrypted a second time with a Google key, and sent back along with the database of possible matches, also encrypted with the same Google key. The clever bit is that once your machine decrypts your database, it now has two sets of credentials, both encrypted with the same Google key. Since this encryption is deterministic, the encrypted data can be compared without decryption. In the end, your passwords aren’t exposed to Google, and Google hasn’t given away their data set either.

The Password Queue

Password changes are a pain, but not usually this much of a pain. A university in Germany suffered a severe malware infection, and took the precaution of resetting the passwords for every student’s account. Their solution for bootstrapping those password changes? The students had to come to the office in person with a valid ID to receive their new passwords. The school cited German legal requirements as a primary cause of the odd solution. Still, you can’t beat that for a secure delivery method.

source https://hackaday.com/2020/01/03/this-week-in-security-totok-edgium-chrome-checks-your-passwords-and-more/

HoloLens Brings Video Game Kart Racing to Life

There aren’t a lot of video game experiences we can easily recreate in the physical realm. You’ll quickly find that jumping on mushrooms in the real world doesn’t have nearly the same appeal as it does in Super Mario, and we won’t even get into the dangers of trying to recreate Frogger on your local multi-lane. But video game style go-kart racing? We have all the technology to pull that off, somebody just has to put all the pieces together.

Which is precisely what [Ian Charnas] is trying to do with his latest project. Using Microsoft’s HoloLens augmented reality headset, electric go-karts, 433 MHz wireless transceivers, and some Arduinos sprinkled in, he’s created the closest thing to Mario Kart that us flesh and blood mortals are likely to experience anytime soon.

The HoloLens headset worn by each driver overlays the necessary graphical elements like pickups and weapon effects, as well as puts over-the-top cartoon heads on the other racers. But of course, that’s only half of the story. Seeing the pickups and gadgets doesn’t do you any good if they don’t have any effect on the actual race.

To that end, [Ian] has come up with a way to control the performance of the go-karts using an electronic “backpack” that mounts to each kart. So speed boosting pickups actually make the kart go faster, and if a driver gets hit with a weapon fired at them, they get slowed down.

That’s the high-level version, anyway. There’s obviously a lot going on behind the scenes, some of which are detailed on the Hackaday.io page. One of the interesting notes is that the HoloLens needs visual markers to orient itself, which in the video after the break can be seen as black and white posters dotting the walls alongside the track. As the project progresses, [Ian] is hoping that these can be camouflaged in creative ways (such as being made to look like audience members or checkered flags) to make the overall experience more immersive.

According to [Ian], the next step is to find partners who want to help elevate this from a one-off project to something that you might actually see at an amusement park. We wish him luck, if for no other reason than we really want to play the thing ourselves. In the meantime, we’ll have to settle for racing hacked Power Wheels.

source https://hackaday.com/2020/01/03/hololens-brings-video-game-kart-racing-to-life/

A Programming Language That Lets You Code With Pixels

This programming language gives you programs that resemble modern art. It’s fortunately a feature of the language, dubbed Piet after the famed abstract painter Piet Mondrian.

The language uses 20 distinct colors, with the colors cycling from red to yellow to green to cyan to blue to magenta and the lightness cycling from light to normal to dark. The code is formed from graphics made of the recognized colors, with individual pixels holding much of the information. Stacks are used for storing data values, that can exist as integers or as Unicode characters with the proper commands applied.

Numbers in the program are represented by colors, while black blocks indicates edges and white blocks indicate free zones. The interpreter physically slides through blocks in the direction of the Direction Pointer (DP), with hue changes indicating different commands based on the steps of the change.

To execute a program, the Piet language interpreter begins in the upper left codel (or individual code block) of the program, maintaining a DP initially pointed to the right and a Codel Chooser (CC) initially pointed to the left. The DP and CC turn right, left, down, or up depending on the execution.

There is currently a small community of coders developing sample programs, interpreters, IDEs, and compilers for the language. You can check out some of the sample programs here.



source https://hackaday.com/2020/01/03/a-programming-language-that-lets-you-code-with-pixels/

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.

We’ll confess we haven’t watched all 56 videos yet. They cover the construction of the CPU and front panel, the serial I/O board, floppy drives, software, and a homebrew EPROM board (using 1702s, no less).

I have to confess, I’ve always wanted a real Altair — but probably won’t ever get one. But if I were going to build one, this would be the guide to watch as it covers just about everything.

Of course, there are replicas (I have a few and even helped develop one). Plus you can run a great simulation on your PC or even in a browser. But there’s something about knowing you have the real deal — or as close as you can get to it — that makes an intangible but real difference.

source https://hackaday.com/2020/01/02/prolific-videos-show-altair-8800-recreation/

LC Oscillators, Animated

We wish that all the beautiful animations that are available today to understand math and electronics had been around when we were in school. Nonetheless, they are there for today’s students and [Learn Engineering] has another gorgeous one covering LC oscillation. Check it out, below.

If you are thoroughly grounded — no pun intended — in LC circuits, you probably won’t learn anything new. However, the animations are worth watching, just to admire them, if nothing else.

We were amused by his statement: “… looks as if the capacitor is saying: ‘you take the energy’ and the inductor then says, ‘no, you take my energy.’” Then we were further amused by [Seraph’s] comment which added, “Resistance in the circuit: ‘Alright, I’ll take the energy, then.’”

Of course, there are other ways to think of an LC circuit. The math isn’t that hard. Most of us learned that the circuit’s mechanical analog is a mass on a spring or a pendulum. The mass’s potential energy stretches out the spring until the spring then pulls it back until the potential energy of the mass pulls it back down.

If you want to experiment virtually, try the Falstad simulator. Just remember that if you think the sine wave isn’t dampening to look at the scale. As the sine wave dampens, the simulator will adjust the scale so you keep seeing approximately the same size sine wave.

We never get tired of watching the Fourier series explained graphically. Or anything from [3Blue1Brown].

source https://hackaday.com/2020/01/02/lc-oscillators-animated/

A Wireless Method For Pressing Tofu

Tofu is a fairly common food in East and Southeast Asian cuisines, but it has also been making its way around vegetarian circles as a meat substitute. While it may be a more environmentally friendly source of protein than meat, it does have the unfortunate side effect of being fairly tedious to cook. To reach the right consistency, tofu requires hours of pressing to drain excess water, which tends to be tedious for most amateur cooks.

A team of students at HackMIT developed a contraption that incrementally presses tofu for you, using signals sent over WiFi to initialize the device. Several 3D-printed components extend an existing food container, along with a stepper motor, motor shield, Adafruit Feather HUZZAH, and a screen.

The motor steps at a rate of 30rpm once a signal is sent from a mobile application, causing four connected threaded rods to begin rotating. The tofu tray travels upwards to press against its lid, draining out excess water. A central gear box containers complementary cutouts that allow the tofu platform to travel vertically when shafts are rotated, pushed by nuts below the platform. The students also included a screen indicating time remaining, as well as a notification sent to the user once the tofu is finished being pressed.

It’s certainly a useful solution that will hopefully increase the popularity of tofu-based recipes!

source https://hackaday.com/2020/01/02/a-wireless-method-for-pressing-tofu/

DIY Trommel Sifts Compost In Style

Composting is a great idea that helps you and the planet at the same time. But all that stuff is going to break down at different rates, and depending on what you put in there and how soon you want to use the compost, you’ll probably have to sift out some unwanted stuff first.

[Minnear Knives] had a bunch of apricot stones in his compost pile, and it was the pits. He did some research and decided to build his own rotary trommel to tumble out the trash. As you will see in the video after the break, it works really well. All he has to do is turn on the motor and shovel raw compost or dirt into one end. Bad stuff tumbles out the other end into a wheelbarrow, while the good stuff is sifted down into a pile under the cylinder. Just look at that rich, fluffy compost.

The best part is that he was able to make it mostly from stuff he had lying around, though he did trade some beer for the v-belt pulley. The cylinder is essentially made from mesh that’s zip-tied to bicycle rims. A 1/4 horsepower motor mounted up top uses that v-belt pulley to spin the cylinder’s rims against casters that are mounted to the frame. Thanks to the pair of bike wheels on the back, he can cart it around the ranch unassisted.

Composting doesn’t have to be any more difficult than a pile in the backyard. But if you don’t have a backyard, why not build a rotating bin that you can monitor from your phone?

source https://hackaday.com/2020/01/02/diy-trommel-sifts-compost-in-style/

Assistive Technolgy Switch is Actuated Using Your Ear Muscles

Assistive technology is extremely fertile ground for hackers to make a difference, because of the unique requirements of each user and the high costs of commercial solutions. [Nick] has been working on Earswitch, an innovative assistive tech switch that can be actuated using voluntary movement of the middle ear muscle.

Most people don’t know they can contract their middle ear muscle, technically called the tensor tympani, but will recognise it as a rumbling sound or muffling effect of your hearing when yawning or tightly closing eyes. Its function is actually to protect your hearing from loud sounds screaming or chewing. [Nick] ran a survey and found that 75% can consciously contract the tensor tympani and 17% of can do it in isolation from other movements. Using a cheap USB auroscope (an ear camera like the one [Jenny] reviewed in November), he was able to detect the movement using iSpy, an open source software package meant for video surveillance. The output from iSpy is used to control Grid3, a commercial assistive technology software package. [Nick] also envisions the technology being used as a control interface for consumer electronics via earphones.

With the proof of concept done, [Nick] is looking at ways to make the tech more practical to actually use, possibly with a CMOS camera module inside a standard noise canceling headphones. Simpler optical sensors like reflectance or time-of-flight are also options being investigated. If you have suggestions for or possible use case, drop by on the project page.

Assistive tech always makes for interesting hacks. We recently saw a robotic arm that helps people feed themselves, and the 2017 Hackaday Prize has an entire stage that was focused on assistive technology.

source https://hackaday.com/2020/01/02/assistive-technolgy-switch-is-actuated-using-your-ear-muscles/

Tony Brooker And Autocode – The First High-level Language

The field of computer science has undeniably changed the world for virtually every single person by now. Certainly for you as Hackaday reader, but also for everyone around you, whether they’re working in the field themselves, or are simply enjoying the fruits of convenience it bears. What was once a highly specialized niche field for a few chosen people has since grown into a discipline that not only created one of the biggest industry in modern times, but also revolutionized every other industry, some a few times over.

The fascinating part about all this is the relatively short time span it took to get here, and with that the privilege to live in an era where some of the pioneers and innovators, the proverbial giants whose shoulders every one of us is standing on, are still among us. Sadly, one of them, [Tony Brooker], a pioneer of the early programming language concept known as Autocode, passed away in November. Reaching the remarkable age of 94, the truly sad part however is that this might be the first time you hear his name, and there’s a fair chance you never heard of Autocode either.

But Autocode was probably the first high-level computer language, and as such played a fundamental role in the development of whatever you’re coding in today. So to honor the memory of [Tony Brooker], let’s remember the work he did with Autocode, and the leap in computer science history that it represented.

The Early Days

When it comes to ancient programming languages, Fortran and COBOL are always prime candidates to mention. Created in the late 1950s, these languages are surrounded by an almost mythical vibe. Developers much younger than the languages themselves, who have never saw a line of COBOL in the wild, will tell each other equally mythical stories about a distant relative who was once working with it in a laboratory or some other too-good-to-be-true environment.

Not that age really matters here; assembly is even older, and it is highly unlikely that it will ever lose its relevance. However, the difference is that assembly is a low-level language, while most other languages out there, including Fortran and COBOL, are high-level languages. Programming in assembly means writing in whatever instruction set a processor provides. Assembly languages are just handy mnemonics for the raw bits that the machine speaks. High-level languages on the other hand care a lot less about a processor’s instruction set, and are abstracting those details away to resonate more with the dynamics of the human mind instead.

Take a simple multiplication as example: in a typical high-level language, you’d simply write a = b * c, while in assembly, you’d write whatever the target processor itself knows about multiplication. You might load the multiplicands into dedicated registers and the CPU might have a multiplication instruction, or it might need to loop through a series of additions. You have to know how the chip works. In a high-level language, it’s going to be a compiler’s task to figure out how to do the actual multiplication and create the corresponding assembly code for it.

The Missing Link

So how does Autocode fit into all this, and what is it anyway? It was designed after assembly was invented, but before any high-level language has existed. Assembly itself was a rather hot new topic at this point in time, when people were still carving their bits by hand. Well, obviously not literally, but “programming” the computers of that time was tedious, non-intuitive, and error-prone work. Except for an early version of a compiler-like construct named Autocode, developed by [Alick Glennie].

One computer of the early days was the Manchester Mark 1, the direct successor of the Baby, and the machine [Alan Turing] was working with in the computer lab at Manchester University. It supposedly had a rather nasty instruction set that made the tedious nature of machine-language programming even worse, which was the first motivation to create Autocode: taming the machine.

The University of Manchester’s historic Mark 1 on the left, one rack of Baby on the right.

[Glennie]’s version of Autocode was a nice-syntax wrapper that remained otherwise machine-dependent, and we’d have to classify it as a  low-level language. It wasn’t until the hero of our story, [Tony Brooker], came along to take a second shot at the idea of Autocode, that the first high-level language was written.

Legend says, one day, while on the way back to Cambridge where he was working as computer researcher, he popped into the Manchester University computer lab, introducing himself and his work to [Alan Turing]. Mutual interest in their work ensured, and [Tony Brooker] joined the computer lab to create his life’s work as part of his task to make the Mark 1 easier usable: designing an intuitive language with human-readable syntax that would hide away all the low-level nastiness, a language that wouldn’t require wasting countless hours of learning and deciphering each and every bit of the hardware, and ultimately turns the underlying hardware more or less into an irrelevant detail the programmer shouldn’t worry too much about. In short, it was planned as a true high-level language.

Starting development in 1954, the Mark 1 Autocode was ready the year after, and apart from the hardware independence, it also supported floating point arithmetic. While it had a few limitations with naming conventions and syntax, it was a big success in Manchester.  [Tony Brooker] went on to continue developing the Autocode concept not only to other machines, but to the very concept of language creation itself. Taking Autocode further and further, he created the very first compiler-compiler in 1960, becoming virtually unstoppable with developing new languages.

Something To Build Upon

In a time where assembly was practically the epitome of convenience to operate a computer, the concepts of [Tony Brooker]’s version of Autocode took programming to the next level, and paved the way for a whole new realm of languages to come. And there was no one single Autocode language, just as there is no single, one assembly language. Autocode will probably be best thought of as a principle that has since evolved into the domain of compiled, high-level languages.

Unlike COBOL or Fortran, nobody codes in Autocode anymore. It’s a nearly forgotten relic of the past, regardless of the role it once played in the history of computer science. But the ideas that were embodied in Autocode live on. Without doubt, the creation of high-level programming languages was inevitable, yet it’s hard to fully appreciate today the work it took for pioneers like [Tony Brooker] to actually take the first steps towards it all those decades ago. Worth remembering.

source https://hackaday.com/2020/01/02/tony-brooker-and-autocode-a-forgotten-tale/