Digitize Your Graphs With WebPlotDigitizer

Have you ever had to write a bit of code to interpret a non-linear analog reading as picked up by an ADC? When all you have to work with for your transfer function is a graph in a semiconductor datasheet that was probably written thirty years ago and prints out the size of a postage stamp, that’s a rather annoying task. Wouldn’t it be nice if you had access to the numbers behind the graph!

You can’t knock on the office door of the engineer who created it back in the ’80s, he’s probably  in retirement and playing golf or growing prize petunias by now. But you can digitize the graph to get yourself a lot closer to the action, and to help you in your quest there’s a handy online tool.

2N3904-current-gain
2N3904 current gain

WebPlotDigitizer is not new, it’s been around for quite a few years now. But it’s still worth talking about, because it’s one of those tools to keep in reserve. If you’ve ever needed it, you’ll know what we mean.

So how does it work? Load an image with a graph in it, select some points on the X and Y axis, roughly trace the curve with a marker tool, and set it in motion. Let’s give it a go. We’re going to try digitizing the current gain plot from the 2N3904 datasheet (PDF) that we examined a few days ago.

data-points
Data points!

So, open the WebPlotDigitizer app, load the graph image captured from the sheet as a JPEG. It asks what type of graph you’ve loaded, in this case a 2D X-Y plot. It asks you to identify four known points on the axes and supply their values. You also tell it if the axes are logarithmic at this point. Select “Automatic mode” on the right hand side, then click “Pen” and mark the graph trace, then select the colour of the trace. Click the “Run” button, and your data points appear. Hit the “View data” button, and there you have it. A few rogue points to remove perhaps, but it does a pretty good job.

If WebPlotDigitizer has engaged your interest, you’ll be pleased to know that it’s open-source, and you can find all its code on GitHub. There is also a handy video tutorial which you can see below the break. Continue reading “Digitize Your Graphs With WebPlotDigitizer”

Reading An IR Thermometer The Hard Way

[Derryn Harvie] from the MakeHackVoid maker space hacked a $10 IR Thermometer and made it talk USB. Sounds easy? Read on.

He opened it up in the hope of finding, and tapping into, a serial bus. But he couldn’t find one, and the main controller was a COB blob – hidden under unmarked black epoxy. Normally this is a dead-end.  (We’ve seen some interesting approaches to decapping epoxy blobs, and even ICs with lasers.)

But [Derryn] went his own way – intercepting the data going from the micro-controller to the LCD display, and reverse engineering it using another microcontroller. He scraped off the solder mask over the tracks leading to the LCD display, and used an oscilloscope to identify the common drive lines. He then used a function generator to excite each of the LCD common lines and the segments lines to build a complete matrix identifying all the combinations that drove the segments. With all the information decoded, wires were soldered so he could hook up an Arduino, and the cut tracks repaired.

Since the LCD was a multiplexed display, the bias voltages were at four levels. Luckily, he could extract most of the LCD information by reading just eight of the segment drive lines, using up all of the analog inputs on the Arduino. Perhaps a different microcontroller with more ADC inputs would have allowed him to display more LCD functions. Well, he can always upgrade his upgrade later. If you have a similar hack to implement, then [Derryn]’s code could be useful to get started.

Thanks, [csirac2] for sending us this tip from MakeHackVoid.

Robo Face Speaks

If you are doing a senior design project in engineering school, it takes some guts to make a robotic duplicate of the school’s president. He or she might be flattered, or completely offended. Us? We laughed out loud. Check out the video below. Spoiler: the nose/moustache wiggle at the end kills us every time.

The project uses a variety of parts including a plastic mask, an Erector set, and the obligatory Arduino with an MP3 shield. There are many articulated parts including eyes, nose, mouth, and wiggly moustache. The face uses RC servos, although [gtoombs] says he’d use stepper motors next time for smoother motion.

Continue reading “Robo Face Speaks”

To See Within: Making Medical X-rays

I was a bit of a lost soul after high school.  I dabbled with electrical engineering for a semester but decided that it wasn’t for me – what I wouldn’t give for a do-over on that one. In my search for a way to make money, I stumbled upon radiologic technology – learning how to take X-rays. I figured it was a good way to combine my interests in medicine, electronics, and photography, so after a two-year course of study I got my Associates Degree, passed my boards, and earned the right to put “R.T.(R) (ARRT)” after my name.

That was about as far as that career went. There are certain realities of being in the health care business, and chief among them is that you really have to like dealing with the patients. I found that I liked the technology much more than the people, so I quickly moved on to bigger and better things. But the love of the technology never went away, so I thought I’d take a look at exactly what it takes to produce medical X-rays, and see how it’s changed from my time in the Radiology Department.

Continue reading “To See Within: Making Medical X-rays”

That’s No Moon – That’s A Bamboo Death Star

At first glance, [Frank Howarth]’s turned bamboo Death Star seems like a straight woodworking project. No Arduino controlled lights, no Raspberry Pi for audio clips of an X-wing attack or escaping TIE fighter. In other words: where’s the hack?

It’s a freaking bamboo Death Star!

If that’s not enough for you, check out the pattern on the surface of the finished model. That’s not painted on – those are the layers of the laminated bamboo lumber used to create the rings [Frank] used to form the structure. After lots of turning, sanding and polishing, the characteristic vascular bundles of the bamboo create light and dark panels for a convincing effect of the Death Star’s surface detail. And although we like the natural finish, we can imagine a darker stain might have really made the details pop and made for an effect closer to the original.

Still not hackish enough? Then feast your eyes on [Frank]’s shop. It’s a cavernous space with high ceilings, tons of natural light, and seemingly every woodworking machine known to man. While the lathe and tablesaw do a lot of the work for this build, the drool-worthy CNC router sees important duty in the creation of the multiple jigs needed for the build, and for making the cutout for the superlaser, in what must have been a tense moment.

Bamboo is an incredible material, whether for fun builds like this or for more structural uses, like a bamboo bike. All this bamboo goodness puts us in the mood to call on [Gerrit Coetzee] for a new installment on his “Materials You Should Know” series.

Continue reading “That’s No Moon – That’s A Bamboo Death Star”

Path To Craftsmanship: Safety, Cleanliness, And Documentation As Habits

When I started boxing classes I was told, at my level, I could do just as much good for my form by doing core exercises such as crunches, running, push-ups, and pull-ups for a month as I could by doing the class. I consder habits like safety, cleanliness, and documentation to be habits that influence the quality of hacks much the same way. They’re not really related, and the work can get done without them, but their implementation alone improves the quality of everything you do at the workbench.

The best mechanic I’ve ever met had a well-organized shop. All of his employees wore nitrile gloves when they worked on engines to protect their hands from the chemicals inside. They used ear protection and safety glasses. His rates were low, and the car was always repaired fast. I never had to go back for the same repair twice. He knew exactly what repairs were done, and even kept the parts removed from my vehicle to show me if I desired. I got some of the most fantastic explanations of why parts failed from him. Two blocks down the street was a shop which was unorganized and had double rates. The employees were always sitting on the waiting chairs in the lounge. It took one trip there to never return.

Continue reading “Path To Craftsmanship: Safety, Cleanliness, And Documentation As Habits”

VR Telepresence Tank From Raspberry Pi, Google Cardboard, And Xbox Controller

It’s great to see different kinds of hardware and software tossed into a project together, allowing someone to mix things that don’t normally go together into something new. [Freddy Kilo] did just that with a project he calls his VR Robot Tank. It’s a telepresence device that uses a wireless Xbox controller to drive a tracked platform, which is itself headed by a Raspberry Pi.

The Pi has two cameras on a pan-tilt mount, and those cameras are both aimed and viewed via a Google Cardboard-like setup. A healthy dose of free software glues it together, allowing things like video streaming (with U4VL) and steering via the wireless controller (with xboxdrv). A bit of fiddling was required for some parts – viewing the stereoscopic cameras for example is done by opening and positioning two video windows just right so as to see them through the headset lenses. It doesn’t warp the image to account for the lens distortion in the headset, and the wireless range might be limited, but the end result seems to work well enough.

The tank is driven with the wireless controller while a mobile phone mounted in a headset lets the user see through the cameras; motion sensing in the phone moves those cameras whenever you move your head to look around. Remote Control hobbyists will recognize the project as doing essentially the same job as FPV setups for model aircraft (for example, Drone Racing or even Snow Sleds) but this project uses a completely different hardware and software toolchain. It demonstrates the benefits of having access to open tools to use as virtual “duct tape”, letting people stick different things together to test a concept. It proves almost anything can be made to work if you have a willingness to fiddle!

Continue reading “VR Telepresence Tank From Raspberry Pi, Google Cardboard, And Xbox Controller”