Audio Out Over UART

There’s a reason that the bog-standard serial port will never die. It’s just so robust and simple. When you need a console that will absolutely work with minimal software and hardware, UART is the way to go. Because of this, UART hacks abound. Here’s a new one to us, and a challenge to our readers.

[Tiziano Bacocco] decided to use UART signals as a type of PWM to create audio. That’s right, he’s plugging the serial TX line straight into a speaker. This gives you eight possible PWM output voltage levels. The trick is using some Python code (using the awesome pyserial module) to down-quantize the audio data to fit these eight possible values and then push them out at the correct sampling rate. ffmpeg is used to pre-process the files.

Continue reading “Audio Out Over UART”

A $1000 Tiny Personal Satellite

If you ever read any old magazines, you might be surprised at how inexpensive things used to be. A U.S. postage stamp was six cents, a gallon of gas was $0.34, and the same amount of milk was $1.07. Everything is relative, though. The average household income back then was under $8,000 a year (compared to over $53,000 a year in 2014). So as a percentage of income, that milk actually cost about seven bucks.

The same is true of getting into orbit. Typical costs today just to get something into orbit has gone from–no pun intended–astronomical, to pretty reasonable. Lifting a pound of mass on the Space Shuttle cost about $10,000. On an Atlas V, it costs about $6,000. A Falcon Heavy (when it launches) will drop the cost to around $1,000 or so. Of course, that’s just the launch costs. You still have to pay for whatever you want to put up there. Developing a satellite can be expensive. Very expensive.

Continue reading “A $1000 Tiny Personal Satellite”

Hack The Pentagon, Legally

The United States Department of Defense just launched the world’s first government-funded bug bounty program named HackThePentagon. Following the example of Facebook, Google, and other big US companies, the DoD finally provides “a legal avenue for the responsible disclosure of security vulnerabilities”.

However, breaking into the Pentagon’s weapon programs will still get you in trouble. This pilot program has a very limited scope of the Pentagon’s cafeteria menu some non-critical systems and is open only between April 18 and May 12 this year. In total, about $150,000 of bounties may be rewarded to responsible hackers.

Anyone can take part in the program, but to receive financial rewards, you need to fulfill a list of criteria. Your profile will undergo a criminal background check and certain restrictions based on your country of residence may apply. Also, to hack into the government’s computer system and get a tax return, you must be a US taxpayer in the first place.

Even though this framework turns the initiative more into one-month hacking contest than a permanently installed bug bounty program, it is certainly a good start. The program itself is hosted on HackerOne, a platform that aims to streamline the process of distributing bug bounties.

IPhone Microscopy And Other Adventures

CMOS imaging chips have been steadily improving, their cost and performance being driven by the highly competitive smartphone industry. As CMOS sensors get better and cheaper, they get more interesting for hacker lab projects. In this post I’m going to demonstrate a few applications of the high-resolution sensor that you’ve already got in your pocket — or wherever you store your cell phone.

CMOS vs CCD

First lets quickly review image sensors. You’ve probably head of CMOS and CCD sensors, but what’s the difference exactly?

cddandcmos
CCD and CMOS imaging sensors: from this excellent page at CERN.

As the figure above shows, CCD and CMOS sensors are both basically photodiode arrays. Photons that hit regions on the chip are converted into a charge by a photodiode. The difference is in how this charge in shoved around. CCD sensors are analogue devices, the charge is shifted through the chip and out to a single amplifier. CMOS sensors have amplifiers embedded in each cell and also generally include on-chip analogue to digital conversion allowing complete “camera-on-a-chip” solutions.

Because CMOS sensors amplify and move the signal into the digital domain sooner, they can use cheaper manufacturing processes allowing lower-cost imaging chips to be developed. Traditionally they’ve also had a number of disadvantages however, because more circuitry is included in each cell, less space is left to collect light. And because multiple amplifiers are used, it’s harder to get consistent images due to slight fabrication differences between the amplifiers in each cell. Until recently CMOS sensors were considered a low-end option. While CCD sensors (and usually large cooled CCD sensors) are still often preferred for scientific applications with big budgets, CMOS sensors have now however gained in-roads in high performance DSLRs.

Continue reading “IPhone Microscopy And Other Adventures”

Fourier Machine Mimics Michelson Original In Plywood

It’s funny how creation and understanding interact. Sometimes the urge to create something comes from a new-found deep understanding of a concept, and sometimes the act of creation leads to that understanding. And sometimes creation and understanding are linked together in such a way as to lead in an entirely new direction, which is the story behind this plywood recreation of the Michelson Fourier analysis machine.

For those not familiar with this piece of computing history, it’s worth watching the videos in our article covering [Bill “The Engineer Guy” Hammack]’s discussion of this amazing early 20th-century analog computer. Those videos were shown to [nopvelthuizen] in a math class he took at the outset of degree work in physics education. The beauty of the sinusoids being created by the cam-operated rocker arms and summed to display the output waveforms captured his imagination and lead to an eight-channel copy of the 20-channel original.

Working with plywood and a CNC router, [nopvelthuizen]’s creation is faithful to the original if a bit limited by the smaller number of sinusoids that can be summed. A laser cutter or 3D printer would have allowed for a longer gear train, but we think the replica is great the way it is. What’s more, the real winners are [nopvelthuizen]’s eventual physics students, who will probably look with some awe at their teacher’s skills and enthusiasm.

Continue reading “Fourier Machine Mimics Michelson Original In Plywood”

Hackaday Belgrade Was Hardware Center Of Universe On Saturday

One of my favorite conversation from Saturday’s Hackaday | Belgrade conference was about border crossing. This guy was saying the border station coming into Serbia needed a separate lane with the Skull and Wrenches on the digital sign since it was obvious the two cars in front of them were also packed with people coming to the con (and all the custom hardware that travels with the Hackaday crowd). The thought of caravans full of hardware hackers were on their way to this epic gathering.

We packed the place, selling at least 50 tickets past our limit in the last few weeks to people who just wanted to get in and didn’t mind not being able to get their hands on one of the sweet badges. I recall meeting people who came from Romania, Bulgaria, Greece, Slovenia, Spain, Italy, Switzerland, USA, Germany, France, UK, and of course Serbia. If you were there and I missed your country let us know in the comments.

Mike Harrison talking about the Eidophor
Mike Harrison talking about the Eidophor

Obviously the main event is the incredible slate of talks that happen at our conferences. We had great presenters at last November’s SuperConference — our first every conference — so we’re delighted to say that our second was just as good. (We anticipate a third this fall.) Hackaday is so thankful for all of the speakers who donated their time and talent to share their knowledge and experience with our worldwide community.

Among my favorites were Seb Lee-Delisle’s talk on his many huge laser and projection mapping installations, Mike Harrison’s drilldown of the absolutely stunning engineering that went into Eidophor projector systems, Dejan Ristanovic’s fascinating talk about the on-again off-again history of Internet in Serbia, Sophi Kravitz’s collaborative work with polarizing materials, and Voja Antonic’s talk on the many trials of designing the conference badge which cleared out the world’s stock of more than one type of Kingbrite LED modules. If you missed the live stream of these talks don’t worry, we recorded all of them. It will take a bit of time to edit and post them so keep your eyes on the front page.

Continue reading “Hackaday Belgrade Was Hardware Center Of Universe On Saturday”

Continuing The Dialog: “It’s Time Software People And Mechanical People Had A Talk”

A while back I wrote a piece titled, “It’s Time the Software People and Mechanical People Sat Down and Had a Talk“. It was mostly a reaction to what I believe to be a growing problem in the hacker community. Bad mechanical designs get passed on by what is essentially digital word of mouth. A sort of mythology grows around these bad designs, and they start to separate from science. Rather than combat this, people tend to defend them much like one would defend a favorite band or a painting. This comes out of various ignorance, which were covered in more detail in the original article.

There was an excellent discussion in the comments, which reaffirmed why I like writing for Hackaday so much. You guys seriously rock. After reading through the comments and thinking about it, some of my views have changed. Some have stayed the same.

It has nothing to do with software guys.

being-wrong-quoteI definitely made a cognitive error. I think a lot of people who get into hardware hacking from the hobby world have a beginning in software. It makes sense, they’re already reading blogs like this one. Maybe they buy an Arduino and start messing around. It’s not long before they buy a 3D printer, and then naturally want to contribute back.

Since a larger portion of amateur mechanical designers come from software, it would make sense that when I had a bad interaction with someone over a design critique, they would be end up coming at it from a software perspective. So with a sample size too small, that didn’t fully take into account my positive interactions along with the negative ones, I made a false generalization. Sorry. When I sat down to think about it, I could easily have written an article titled, “It’s time the amateur mechanical designers and the professionals had a talk.” with the same point at the end.

Though, the part about hardware costs still applies.

I started out rather aggressively by stating that software people don’t understand the cost of physical things. I would, change that to: “anyone who hasn’t designed a physical product from napkin to market doesn’t understand the cost of things.”

Continue reading “Continuing The Dialog: “It’s Time Software People And Mechanical People Had A Talk””