My Life In The Connector Zoo

“The great thing about standards is that there are so many to choose from.” Truer words were never spoken, and this goes double for the hobbyist world of hardware hacking. It seems that every module, every company, and every individual hacker has a favorite way of putting the same pins in a row.

We have an entire drawer full of adapters that just go from one pinout to another, or one programmer to many different target boards. We’ll be the first to admit that it’s often our own darn fault — we decided to swap the reset and ground lines because it was convenient for one design, and now we have two adapters. But imagine a world where there was only a handful of distinct pinouts — that drawer would be only half full and many projects would simply snap together. “You may say I’m a dreamer…”

This article is about connectors and standards. We’ll try not to whine and complain, although we will editorialize. We’re going to work through some of the design tradeoffs and requirements, and maybe you’ll even find that there’s already a standard pinout that’s “close enough” for your next project. And if you’ve got a frequently used pinout or use case that we’ve missed, we encourage you to share the connector pinouts in the comments, along with its pros and cons. Let’s see if we can’t make sense of this mess.

Continue reading “My Life In The Connector Zoo”

Anti-Drone Fence: Science Or Snakeoil?

Remember when it was laser pointers? Well, now it’s drones.

[Thinkerer] sent us this link to what’s essentially a press release for a company called Sensofusion that makes a UAV detector and (they claim) smart jammer, and apparently one is being installed at Denver International airport.

We buy that the “Airfence” system will be able to detect known systems by signature, and possibly even take them over. We’ve seen two exploits of quadcopter radio protocols (one a timing attack and the other a controller ID spoof) that would allow them to do just that. But is that the problem? Don’t most of the major manufacturers fence off airports in software these days anyway? And are drones really the droids that you’re looking for?

They also make some claims about being able to detect and stop DIY copters, but we don’t see how. Imagine that your copter ran encrypted on 2.4 GHz. How is this different from any other WiFi signal? Or imagine that it sends and receives infrequent data in the congested pager bands? And short of jamming, we don’t see how they’re going to take down anything that they don’t already understand.

So, commenteers, how would you do it? Detect and even take over an arbitrary drone? Possible or snakeoil?

Helicopter Pendulum Is PID-licious

If you’ve ever tried to tune a PID system, you have probably encountered equal parts overwhelming math and black magic folk wisdom. Or maybe you just let the autotune take over. If you really want to get some good intuition for motion control algorithms, PID included, nothing beats a little hands-on experimentation.

To get you started, [Clovis] wrote in with his budget propeller-based PID demo platform (Portuguese, translated shockingly well here).

The basic setup is a potentiometer glued to a barbecue skewer with a mini-quadcopter motor and rotor on the end of it. A microcontroller reads the voltage and PWMs the propeller through a MOSFET. The goal is to have the pendulum hover stably in midair, controlled by whatever algorithms you can dream up on the controller. [Clovis]’ video demonstrates on-off and PID control of the fan. Adding a few more potentiometers (one for P, I, and D?) would make hands-on tweaking even more interactive.

In all, it’s a system that will only set you back a few bucks, but can teach you more than you’d learn in a month in college. Chances are good that you’re not going to have exactly the same brand of sardine can on hand that he did, but some improvisation is called for here.

If you don’t know why you’d like to master open-loop closed-loop control algorithms, here’s one of the best advertisements that we’ve seen in a long time. But you don’t have to start out with hand-wound hundred-dollar motors, or precisely machined bits. As [Clovis] demonstrates, you can make do with a busted quadcopter and whatever you find in your kitchen.

Continue reading “Helicopter Pendulum Is PID-licious”

NASA Puts Its 3D Models Up On GitHub

NASA has a bunch of its 3D models up on GitHub, and if you didn’t know about it before, you do now. It’s a ridiculously large download, at over one and a half jiggabytes, but it’s full of textures and high-resolution models of spacecraft, landing sites, and other random NASA ephemera.

Continue reading “NASA Puts Its 3D Models Up On GitHub”

DIY I2C Devices With ATtiny85

[Pawel] has a weather station, and its nerve-center is a Raspberry Pi. He wanted to include a light sensor but the problem is, the Pi doesn’t have a built-in ADC to read the voltage off the light-dependent resistor that he (presumably) had in his junk box. You can, of course, buy I2C ADC chips and modules, but when you’ve already got a microcontroller that has ADC peripherals on board, why bother?

[Pawel] wired up a tremendously simple circuit, downloaded some I2C slave-mode code, and added an LED for good measure. It’s all up on GitHub if you’re interested.

cropped_shot_2016-10-21-112958
Bright by Day, Dark by Night!

We’re covering this because we rarely see people coding for I2C slave devices. Everyone and their mom uses I2C to connect to sensors, for which the Arduino “Wire” library or “i2c-tools” on the Pi do just fine. But what do you do when you want to make the I2C device? [Pawel]’s project makes use of TinyWireS, a slave-mode SPI and I2C library for AVR ATtiny Arduino projects.

Here, [Pawel] just wanted a light sensor. But if you’re building your own devices, the sky is the limit. What’s the most esoteric I2C sensor that you can imagine? (And is it really the case that we haven’t seen an I2C slave device hack since 2010?)

Hackenings: Retro Gaming And Computing

[Strages] contacted us via IRC on the #Hackerspaces channel to let us know that Makers Local 256, his hackerspace in Huntsville Alabama, is having their annual Retro Gaming and Computing Night this week: November 12th from 4pm to 11pm.

Nothing makes us feel old like seeing Starcraft tossed in with the "retro" games category, but if they set up a LAN for three-way Zerg-Terran-Protoss action, we’ll abide. If you’re anywhere near Huntsville, you should head on down and show off your hard-earned skills.

Hackenings

"Hackenings" is our weekly roundup of what’s going on in hackerspaces around the world. If you’ve got an event that you’d like to see on these pages, write to tips@hackaday.com with [Hackenings] in the subject line, and awesome images or graphics if you’ve got ’em. And tune in again next Saturday to see what’s going on in (y)our world.

Hackit: Laser Cut Your Own Jigsaw Puzzle

If you have a laser printer, you’ve got your Christmas presents sorted out. At least if your family likes jigsaw puzzles. The idea is very simple, laminate a photograph onto some laser-cuttable board, and then run the laser over the outline of the pieces. Bam! Instant puzzle.

The trick is generating the puzzle outline, and of course there’s an online application for that. It’s got options that let you customize the piece count and shapes, and then download the result as an SVG image.

Unfortunately, it’s closed-source and makes the pieces a little bit too uniform for our liking — many of the pieces have exactly the same shape as each other. Are you up to the challenge of writing a better one? We’d love to see it, because the idea of a simple puzzle overlay for laser cutters is too good. Help us get started with some brainstorming in the comments below. How do you go about generating meaningfully unique jigsaw edges algorithmically?

Once you’ve got the puzzle cut out, you can seal up the surface nicely, toss it in a box, and then you’ve got a personalized present. To put it together, we suggest an accompanying DIY pick-and-place tool. (And kudos to [Kristina] for the best headline of 2015 on that one!)

Thanks to Hackaday alum [George Graves] for the tip!