Hackaday Links Column Banner

Hackaday Links: Remember, Remember

Buckle up, buttercup because this is the last weekly Hackaday Links post you’re getting for two weeks. Why? We have a thing next weekend. The Hackaday Superconference is November 11th and 12th (and also the 10th, because there’s a pre-game party), and it’s going to be the best hardware con you’ve ever seen. Don’t have a ticket? Too bad! But we’ll have something for our Internet denizens too.

So, you’re not going to the Hackaday Supercon but you’d like to hang out with like-minded people? GOOD NEWS! Barnes & Noble is having their third annual Mini Maker Faire on November 11th and 12th. Which Barnes & Noble? A lot of them. Our reports tell us this tends to be geared more towards the younger kids, but there are some cool people doing demonstrations. Worst case scenario? You can pick up a copy of 2600.

PoC || GTFO 0x16 is out! Pastor Laphroaig Races The Runtime Relinker And Other True Tales Of Cleverness And Craft! This PDF is a Shell Script That Runs a Python Webserver That Serves a Scala-Based JavaScript Compiler With an HTML5 Hex Viewer; or, Reverse Engineer Your Own Damn Polyglot.

In, ‘Oh, wow, this is going to be stupid’ news, I received an interesting product announcement this week. It’s a USB C power bank with an integrated hand warmer. Just think: you can recharge your phone on the go, warm your hands in the dead of winter, and hope your random battery pack from China doesn’t explode in your pocket. I’m not linking to this because it’s that dumb.

You can now cross-compile ARM with GCC in Visual Studio.

The iPhone X is out, and that means two things. There are far too many YouTube videos of people waiting in line for a phone (and not the good kind), and iFixit did a teardown. This thing is glorious. There are two batteries and a crazy double-milled PCB stack with strange and weird mezzanine connectors. The main board for the iPhone X is completely unrepairable, but it’s a work of engineering art. No word yet on reusing the mini-Kinect in the iPhone X.

Speaking of irreparable computers, the Commodore 64 is not. [Drygol] recently came across a C64 that was apparently the engine controller for a monster truck found on the bottom of the ocean. This thing was trashed, filled with rust and corrosion, and the power button just fell off. Prior to cleaning, [Drygol] soldered a new power button, bowered it up, and it worked. The crappiest C64 was repairable. A bit of cleaning, painting the case, and the installation of an SD2IEC brought this computer back to life, ready for another thirty years of retrogaming and BASIC.

The Zynq from Xilinx is one of the most interesting parts in recent memory. It’s a dual-core ARM Cortex A9 combined with an FPGA with a little more than a million reconfigurable gates. It’s been turned into a synth, a quadcopter, all of British radio, and it’s a Pynq dev board. Now there’s a new part in the Zynq family, an RFSoC that combines the general ARM/FPGA format with some RF wizardry. It’s designed for 5G wireless and radar (!), and one of those parts we can’t wait to see in use.

Do you keep blowing stuff up when attaching a USB to UART adapter to a board? Never fear, because here’s one with galvanic isolation. This is done with a neat digital isolator from Maxim

Books You Should Read: V-2 By Walter Dornberger

In an era where we can watch rockets land on their tails Buck Rogers-style live on YouTube, it’s difficult to imagine a time when even the most basic concepts of rocketry were hotly debated. At the time, many argued that the very concept of a liquid fueled rocket was impossible, and that any work towards designing practical rocket powered vehicles was a waste of time and money. Manned spacecraft, satellite communications, to say nothing of landing on other worlds; all considered nothing more than entertainment for children or particularly fanciful adults.

Walter Dornberger (Bundesarchiv, Bild 146-1980-009-33 / CC-BY-SA 3.0)

This is the world in which V-2, written by the head of the German rocket development program Walter Dornberger, takes place. The entire history of the A-4/V-2 rocket program is laid out in this book, from the very early days when Dornberger and his team were launching rockets with little more than matches, all the way up to Germany’s frantic attempts to mobilize the still incomplete V-2 rocket in face of increasingly certain defeat at the end of World War II.

For those fascinated with early space exploration and the development of the V-2 rocket like myself, this book is essentially unparalleled. It’s written completely in the first person, through Dornberger’s own eyes, and reads in most places like a personal tour of his rocket development site at the Peenemünde Army Research Center. Dornberger walks through the laboratories and factories of Peenemünde, describing the research being done and the engineers at work in a personal detail that you simply don’t get anywhere else.

But this book is not only a personal account of how the world’s first man-made object to reach space was created, it’s also a realistic case study of how engineers and the management that pays the bills often clash with disastrous results. Dornberger and his team wanted to create a vehicle to someday allow man to reach space, while the Nazi government had a much more nefarious and immediate goal. But this isn’t a book about the war — the only battles you’ll read about in V-2 take place in meeting rooms, where the engineers who understood the immense difficulty of their task tried in vain to explain why the timetables and production numbers the German military wanted simply couldn’t be met.

Continue reading “Books You Should Read: V-2 By Walter Dornberger”

What Is Entropy And How Do I Get More Of It?

Let’s start off with one of my favorite quotes from John von Neumann: “Any one who considers arithmetical methods of producing random digits is, of course, in a state of sin. For, as has been pointed out several times, there is no such thing as a random number — there are only methods to produce random numbers, and a strict arithmetic procedure of course is not such a method.”

What von Neumann is getting at is that the “pseudo” in pseudorandom number generator (PRNG) is really a synonym for “not at all”. Granted, if you come in the middle of a good PRNG sequence, guessing the next number is nearly impossible. But if you know, or can guess, the seed that started the PRNG off, you know all past and future values nearly instantly; it’s a purely deterministic mathematical function. This shouldn’t be taken as a rant against PRNGs, but merely as a reminder that when you use one, the un-guessability of the numbers that it spits out is only as un-guessable as the seed. And while “un-guessability” isn’t a well-defined mathematical concept, or even a real word, entropy is.

That’s why entropy matters to you. Almost anything that your computer wants to keep secret will require the generation of a secret random number at some point, and any series of “random” numbers that a computer generates will have only as much entropy, and thus un-guessability, as the seed used. So how does a computer, a deterministic machine, harvest entropy for that seed in the first place? And how can you make sure you’ve got enough? And did you know that your Raspberry Pi can be turned into a heavy-duty source of entropy? Read on!

Continue reading “What Is Entropy And How Do I Get More Of It?”

Teardown With A Twist: 1975 Sinclair Scientific Calculator

When writing a recent piece about Reverse Polish Notation, or RPN, as a hook for my writing I retrieved my Sinclair Scientific calculator from storage. This was an important model in the genesis of the scientific calculator, not for being either a trailblazer or even for being especially good, but for the interesting manner of its operation and that it was one of the first scientific calculators at an affordable price.

I bought the calculator in a 1980s rummage sale, bodged its broken battery clip to bring it to life, and had it on my bench for a few years. Even in the early 1990s (and even if you didn’t use it), having a retro calculator on your bench gave you a bit of street cred. But then as life moved around me it went into that storage box, and until the RPN article that’s where it stayed. Finding it was a significant task, to locate something about the size of a candy bar in the storage box it had inhabited for two decades, among a slightly chaotic brace of shelves full of similar boxes.

The Sinclair's clean design still looks good four decades later.
The Sinclair’s clean design still looks good four decades later.

Looking at it though as an adult, it becomes obvious that this is an interesting machine in its own right, and one that deserves a closer examination. What follows will not be the only teardown of a Sinclair Scientific on the web, after all nobody could match [Ken Shirriff]’s examination of the internals of its chip, but it should provide an insight into the calculator’s construction, and plenty of satisfying pictures for lovers of 1970s consumer electronics.

The Sinclair is protected by a rigid black plastic case, meaning that it has survived the decades well. On the inside of the case is a crib sheet for its RPN syntax and scientific functions, an invaluable aid when it comes to performing any calculations.

It shares the same external design as the earlier Sinclair Cambridge, a more humble arithmetic calculator, but where the Cambridge’s plastic is black, on the Scientific it is white. The LED display sits behind a purple-tinted window, and the blue-and-black keyboard occupies the lower two-thirds of the front panel. At 50 x 111 x 16 mm it is a true pocket calculator, with an elegance many of its contemporaries failed to achieve and which is certainly not matched by most recent calculators. Good industrial design does not age, and while the Sinclair’s design makes it visibly a product of the early 1970s space-age aesthetic it is nevertheless an attractive item in its own right.

Continue reading “Teardown With A Twist: 1975 Sinclair Scientific Calculator”

Friday Hack Chat: Fundamentals Of RF

Designing a system for communication over RF is a dark art. It’s an obscure domain filled with photonmancy, wires going every which way, and imaginary numbers. RF is reserved entirely for wizards. The guy who simplified Maxwell’s equations into the form we now use went literally insane and replaced all the furniture in his house with granite blocks. This is weird stuff, man.

For this week’s Hack Chat, we’re talking about RF. Everything from the capabilities of different bands, how bandwidth is incorporated into designs, different modulation schemes, RF concepts, I/Q, Nyquist, and other deep-dive topics that elucidate the mysteries of the universe and include all the math.

If you’ve ever wondered how bits get turned into radio waves, what all the PSKs and SSBs are all about, and how bandwidth and range of a radio system play into what frequencies are used, this is the Hack Chat for you.

Our guest for this week’s Hack Chat is [Nick Kartsioukas]. He’s an infosec engineer, an amateur radio operator with an Extra license, hardware hacker, plays around with radio and antenna projects, SDR, and he’s an RC pilot. There’s a lot of RF swimming around [Nick], and he’s got the skills to pay the bills.

This is a community Hack Chat, and we’re taking questions from the community. If you have a question or something you’d like to discuss, add it to the sheet.

join-hack-chatOur Hack Chats are live community events on the Hackaday.io Hack Chat group messaging. This Hack Chat is going down noon, PDT, Friday, November 3rd. Do you wish every time zone was UTC? Yeah, it’s a great idea, but when you really think about it, it would be terrible. Here’s a time zone converter!

Click that speech bubble to the left, and you’ll be taken directly to the Hack Chat group on Hackaday.io.

You don’t have to wait until Friday; join whenever you want and you can see what the community is talking about.

We’re also looking for new Hack Chat hosts! If you’ve built something cool, you’re working on an interesting project, or you’re about to introduce a really cool product, hit us up! Email our wonderful community managers, and we’ll see if we can slot you in.

Rita Levi-Montalcini Had Nerves Of Steel

When we think of role models, it’s easy to categorize them narrowly on the basis of their skill set. We might say that he’s a great mathematician, or that she is an excellent chemist. Some role models are admirable on a deeper, human level. These are the kinds of heroes who obliterate all the obstacles dropped in front of them to tirelessly pursue their interests and devote their lives to doing the kind of stuff that makes the world better for everyone.

Italian Nobel Laureate Rita Levi-Montalcini is this kind of role model. Her scientific curiosity and unconventional thinking led her to discover nerve growth factor (NGF), a naturally occurring protein which we now know is responsible for nerve growth and regulation. Rita’s discovery provided great insight into the way the nervous system develops. The discoveries that she made underlie much of modern research into neurologically degenerative diseases like Alzheimer’s and cancer, and NGF is used experimentally the treatment of both.

Continue reading “Rita Levi-Montalcini Had Nerves Of Steel”

Coffee, Conspiracy, And Citizen Science: An Introduction To Iodometry

I take coffee very seriously. It’s probably the most important meal of the day, and apparently the largest overall dietary source of antioxidants in the United States of America. Regardless of whether you believe antioxidants have a health effect (I’m skeptical), that’s interesting!

Unfortunately, industrially roasted and ground coffee is sometimes adulterated with a variety of unwanted ‘other stuff’: corn, soybeans, wheat husks, etc. Across Southeast Asia, there’s a lot of concern over food adulteration and safety in general, as the cost-driven nature of the market pushes a minority of vendors to dishonest business practices. Here in Vietnam, one of the specific rumors is that coffee from street vendors is not actually coffee, but unsafe chemical flavoring agents mixed with corn silk, roasted coconut husks, and soy. Local news reported that 30% of street coffee doesn’t even contain caffeine.

While I’ve heard some pretty fanciful tales told at street side coffee shops, some of them turned out to be based on some grain (bean?) of truth, and local news has certainly featured it often enough. Then again, I’ve been buying coffee at the same friendly street vendors for years, and take some offense at unfounded accusations directed at them.

This sounds like a job for science, but what can we use to quantify the purity of many coffee samples without spending a fortune? As usual, the solution to the problem (pun intended) was already in the room:

Continue reading “Coffee, Conspiracy, And Citizen Science: An Introduction To Iodometry”