Characterising A Potentiometer With A Stepper Motor

Potentiometers, or variable resistors, are a standard component that we take for granted. If it says “10k log” on a volume pot, than we fit and forget. But if like [Ben Holmes] you are modelling electronic music circuitry, some greater knowledge is required. To that end he’s created a rig for characterising a potentiometer to produce a look-up table of its values.

It’s a simple enough set-up in which a voltage controlled current source feeds the pot while an Arduino with a motor controller turns it through a stepper motor, and takes a voltage reading from its wiper via an analogue pin. Probably most readers could assemble it in a fairly short time. Where it becomes interesting though is in what it reveals about potentiometer construction.

Audio potentiometers are usually logarithmic. Which is to say that the rate of change of resistance is logarithmic over the length of the track, in an effort to mimic the logarithmic volume response of the human ear in for example a volume control. If you are taught about logarithmic pots the chances are you’re shown a nice smooth logarithmic curve, but as he finds out in the video below that isn’t the case. Instead they appear as a set of linear sections that approximate to a logarithmic curve, something that is probably easier to manufacture. It’s certainly useful to know that for [Ben]’s simulation work, but for the rest of us it’s a fascinating insight into potentiometer manufacture, and shows that we should never quite take everything for granted.

Continue reading “Characterising A Potentiometer With A Stepper Motor”

A Pin Pusher To Make Life Easier

Picture the scene: you’ve whipped up an amazing new gadget, your crowdfunding campaign has gone well, and you’ve got a couple hundred orders to fill. Having not quite hit the big time, you’re preparing to tackle the production largely yourself. Parts begin to flood in, and you’ve got tube after tube of ICs ready to populate your shiny new PCBs? After the third time, you’re sick and tired of fighting with those irksome little pins. Enter [Stuart] with the answer.

It’s a simple tool, attractively presented. Two pieces of laser cut acrylic are assembled in a perpendicular fashion, creating a vertical surface which can be used to press pins out of IC tubes. [Stuart]’s example has rubber feet, though we could easily see this built into a work surface as well.

The build highlights two universal truths. One, that laser cutters are capable of producing elegant, visually attractive items almost effortlessly, something we can’t say about the garden variety 3D printer. Secondly, all it takes is a few little jigs and tools to make any production process much easier. This is something that’s easy to see in the many factories all over the world – special single-purpose devices that make a weird, tricky task almost effortless.

In DIY production lines, testing is important too – so why not check out this home-spun test jig?

A Guidebook To The World Of Counterfeit Parts

We’ve all experienced it: that sinking feeling you get when you’ve powered up your latest circuit and nothing happens. Maybe you made a mistake in your design or you shorted something while soldering. It’s even possible that ESD damaged one of your chips. All of these issues and more are possible, maybe even inevitable, when designing your own hardware.

But what if your design is perfect and your soldering skills beyond reproach? What if your shiny new device is DOA but you’ve done everything right? A fascinating report by [Yahya Tawil] makes the case that it’s increasingly possible that you’ve run across a counterfeit component. While it’s still relatively unlikely the hobby hacker is going to get bit by the counterfeit bug, the figures and examples referenced in his report may surprise you.

One of these is an ATmega328, the other is literal garbage.

[Yahya] points to a number of government studies on the rising scourge of counterfeit components, and the numbers are rather surprising. For example, the U.S Department of Commerce conducted a study between 2005 and 2008 where over 50% of respondent manufacturers and distributors had encountered counterfeit components. Another estimate claims that up to 15% of the semiconductors purchased by the Pentagon are counterfeit, presenting a serious risk to national security.

But how exactly does one counterfeit a microcontroller or transistor? Interestingly, in the vast majority of cases, old chips are pulled from recycled circuit boards and new labels are written over the original. Sometimes the forgery is as simple as changing the date code on the component or up-rating its capability (such as labeling it military spec when it isn’t), but in some cases chips with the same package will be labeled as something else entirely. Other tricks are decidedly low-tech: the documentation for the device may list functions and capabilities which it simply does not possess, artificially raising its value.

The report is a worthwhile read, even for those of us who may not be purchasing components in the same quantities as the Pentagon. It may make you think twice before you click “Buy” on that shady site with the prices that seem to good to be true.

Counterfeit components certainly seem to be on the rise from where we’re sitting. We’ve covered a number of other studies on this increasingly common trend, as well as first hand accounts ranging from successful recoveries to frustrating failures.

My Kingdom For A Capacitor

While working on a project recently, I required a capacitor of around 1000 μF and went rummaging through my collection of parts. No luck there. At that point I’d usually go through my collection of junk electronics and computer motherboards, but I had recently gone through and tossed the stuff that had been laying around for as long as I could remember. No matter, I thought. I’ll just head over to RadioShack and…

Now, I have been accused of many things over the years, but “deep” is certainly not one of them. Yet, at this moment I had what could only be described as an existential crisis. There is no RadioShack, not in my state at least. I don’t live in an area that’s blessed with a maker “scene”, so no independent shop or even a hackerspace within reasonable driving distance of me either. I could order it online of course, but everyone’s trying to sell them in bulk and shipping will take a few days at least. A few days? Who knows where my interests will be in a few days. How can I get anything done under these conditions?

Desperate times call for desperate measures, so I got in the car and took a ride to the only place I knew where I could by electronic components for cheap: Goodwill. Continue reading “My Kingdom For A Capacitor”

How To Select Just About Any Electronic Part

Sometimes you see an excellent post somewhere else on the web, and then discover that it is one of a series of similarly good posts that you completely missed when they were published. If you are a Hackaday scribe you are left wondering how you managed to pass them by, and then why on earth you didn’t think of writing them yourself.

Such is the case with [Sanket Gupta]’s excellent series for Octopart, of posts titled “How to select a…” and then a class of component. It was the latest, “How to select a voltage regulator” that caught our eye first, but then we found the previous installments dealing with capacitors, resistors, inductors, connectors, IC packages and MCUs. Each one provides a basic primer for the engineer, in terms of both parts selection based on capability and on suitability for manufacturing, and while you may think that only an inexperienced reader might find benefit in such pieces the reality is that everybody can learn something.

So if you are involved in choosing electronic parts, no matter at what level, take a look at this series. If you know everything [Sanket] has to say then we congratulate you on your mastery of the field, however we think most readers will find them to be an interesting and useful resource.

Header image: Kae [Public domain].

Make Your Own Reed Switches

[Lucid Science] shows us how to make some simple reed switches. Reed switches are simple components that detect a magnetic field and can close or open a circuit once detected. While not really a thing of beauty, these DIY reed switches should help you out if you just can’t wait to order some or you fancied trying your hands at making some components from scratch.

Reed switches normally come in very small form factors so if you need something small then this may not be for you however the video does show you on a macro scale the fundamental workings of a reed switch. To make your own reed switch you need only a few parts: some copper, enamelled wire and magnets. They really are simple devices however sometimes it’s easy to overlook how simple some things are when they are so small that you can’t really see how they work.

Making your own components from scratch is probably the best way to understand the inner workings of said component. In the past we have seen some pretty awesome self built components from these beautiful DIY Nixie tubes to even making your own LEDs

Continue reading “Make Your Own Reed Switches”

Hacker’s Wishlist: What Must-Have Components Let You Build Anything?

We’re putting in a parts order at the end of the week, yet we don’t have a specific project in mind. Trying to wrap your noggin’ around a bill of materials to build anything is tough, but that’s the gist of stocking components for a hackathon.

So we put it to you: what components can’t you live without when you roll your sleeves up for some good old fashioned hardware hacking?

What Can You Build in Two Days?

multiplierThis parts order is for the badge hacking at this year’s SuperCon. What we saw last year was amazing considering the parts we had available. What you see above is the back of the conference badge with a lot of caps and diodes added to it. It’s a voltage multiplier that [Sprite_TM] built onto his badge to get the 9V input up to a 1000V output.

So diodes and caps, check. They’ll be on the order. But we want to know what you would add to a parts order where anything is possible? Let us know in the comments below.

Unlock Beast Mode

Part of the fun last year was starting from a badge that had no circuitry built onto it at all. [Brian Benchoff] joked in his coverage of the hacking that this year’s badge would just be a piece of copper clad FR4 — a great idea and challenge accepted. In addition to the normal badge, for those willing to test their mettle, we want you to go for Beast Mode. We’ll have copper clad (single and double-sided) and protoboard on hand.

We’re looking for Manhattan style, dead bug, and any other elegant, interesting, or hacky method of rapid prototyping. Bring along your own pre-spun or home-etched boards — if they’re not already populated you can do that in the badge hacking area. If you want to learn the awesome X-Acto knife method of carving up copper clad, Zach Fredin will be helping out in the badge hacking area. You’ll also find Voja Antonic, Paul Stoffregen, and others hanging out there too.

But What About the Badge?

2016-supercon-badge-circuitYes, there is a hardware badge and it’s a doozy this year. Voja Antonic designed it and published a great explanation last week. It’s based around a PIC18LF25K50 and features an LED Matrix and user inputs. This will be a lot of fun for the firmware hackers, but why not get in on the hardware hacking action while you’re at it?

The back of the badge has a 9-bin breakout header (2x 3V, 2x Gnd, 5x GPIO). This pin header is 0.1″ pitch so you can design in advance for any add-on circuits you might want to build. We’ll also have connectors on hand to use in your hacks.

Last year Paul Stoffregen’s Teensy audio workshop was hugely popular and one of the most interesting badge hacks added a Teensy, audio board, and LCD to the mix to create a spectrum analyzer with waterfall display. I’m sure we’ll see some hacks that reach that level this year. But it’s a welcoming and jovial environment; even if you never blinked an LED there will be throngs of people waiting to cheer your accomplishment in the name of getting everyone in the world excited about hardware.

Seriously Though, What Components Should We Order?

Tools are going to be no problem this year since we have the Supplyframe Design Lab at our disposal. But we really are putting in a parts order this week and need your advice. We’ll have the usual suspects: pin headers, shift registers, voltage regulators, level converters, 7400 series logic and 555 timers, extra battery holders, passives, etc.

Even if you’re not in on the hacking, let us know what you can’t live without. What’s your analog hacking wishlist? What type of sensor breakouts would you like to see people playing with? Sound off in the comments below.