DIY Scientific Calculator Powered By Pi Zero

It’s the eternal question hackers face: do you built it, or do you buy it? The low cost and high availability of electronic gadgets means we increasingly take the latter option. Especially since it often ends up that building your own version will cost more than just buying a commercial product; and that’s before you factor in the time you’ll spend working on it.

But such concerns clearly don’t phase [Andrea Cavalli]. Sure he could just buy a scientific calculator, but it wouldn’t really be his scientific calculator. Instead, he’s taking the scenic route and building his own scientific calculator from scratch. The case is 3D printed, the PCB is custom, and even the software is his own creation.

His PCB hooks right up to the GPIO pins of the internal Raspberry Pi Zero, making interfacing with the dome switch keyboard very easy. The board also holds the power management hardware for the device, including the physical power switch, USB connection for charging, and TPS79942DDCR linear regulator.

The case, including the buttons, is entirely 3D printed. At this point the buttons don’t actually have any labels on them, which presumably makes the calculator more than a little challenging to use, but no doubt [Andrea] is working on that for a later revision of the hardware. A particularly nice detail is the hatch to access the Pi’s micro SD card, making it easy to update the software or completely switch operating systems without having to take the calculator apart.

After the kernel messages scroll by, the Pi boots right into the Java calculator environment. This gives the user a fairly standard scientific calculator experience, complete with nice touches like variable highlighting. The Mario mini-game probably isn’t strictly required, but if you’re writing the code for your own calculator you can do whatever you want.

Here at Hackaday we’ve seen a calculator that got a Raspberry Pi upgrade, a classic scientific calculator emulated with an Arduino, and of course we’ve raved about the NumWorks open source graphing calculator. Even with such stiff competition, we think this project is well on its way to being one of the most impressive calculators we’ve ever come across.

Continue reading “DIY Scientific Calculator Powered By Pi Zero”

Learn FPGA Fast With Hackaday’s FPGA Boot Camp

FPGAs have gone from being a niche product for people with big budgets to something that every electronics experimenter ought to have in their toolbox. I am always surprised at how many people I meet who tell me they are interested in using FPGAs but they haven’t started. If you’ve been looking for an easy way to get started with FPGAs, Hackaday’s FPGA boot camp is for you. There’s even a Hackaday.io chat in the group specifically for FPGA talk for questions and general discussion!

While it is true FPGAs aren’t for everything, when you need them you really need them. Using FPGAs you can build logic circuits — not software simulations, but real circuits — and reap major performance benefits compared to a CPU. For digital signal processing, neural networks, or computer vision applications, being able to do everything essentially in parallel is a great benefit. Sometimes you just need the raw speed of a few logic gates compared to a CPU plodding methodically through code. We expect to see a lot more FPGA activity now that Arduino is in the game.

These boot camps gather together some of the material you seen spread over many articles here before, plus new material to flesh it out. It’s designed for you to work through more like a training class than just some text to read. There’s plenty of screenshots and even animations to help you see what you are supposed to be doing. You’ll be able to work with simulations to see how the circuits we talk about work, make changes, and see the results. We’ll focus on Verilog — at least for now — as it is close to C and easier for people who know C to pick up. Still not convinced? Let’s run though the gist of the boot camp series.

Continue reading “Learn FPGA Fast With Hackaday’s FPGA Boot Camp”

Rolling Out A Slick Rotary Phase Converter

Home machinists can often find great deals on used industrial equipment, and many a South Bend lathe or Bridgeport milling machine has followed someone home. Then comes the moment to plug it in, and the new owner discovers that the three-phase plug needed to power the new beast is nowhere to be found in the shop. Thus commences the weeping and the gnashing of teeth.

Luckily, [Handmade Extreme] is ahead of the curve in terms of shop power, and built a rotary phase converter to power his machines. Industry generally runs on three-phase AC systems, mainly because three-phase electric motors are so much more efficient and compact than the equivalent single-phase motor. But residential electrical service is either split-phase or, in the UK where [Handmade Extreme] is based, single phase. A rotary phase converter is an electromechanical device that can generate the missing phases – in essence a three-phase motor that can run on one winding and generate the missing phases across the other windings. It needs some supporting control circuitry to do so, such as timers and contactors to switch the winding connections once the motor starts, plus capacitors for motor starting and for balancing the voltage across the phases. The control gear is DIN-rail mounted and neatly wired to a smart-looking control panel. Everything is housed in a sturdy enclosure that’s big enough to serve as a mobile tool cart. It’s a really nice job – watch the whole build in the video below.

If you’re interested in power distribution, we’ve got a primer that covers the basics. And if you’re in the market for machine tools, [Quinn]’s machine tool buyer’s guide will let you decide if a three-phase machine is worth the extra effort.

Continue reading “Rolling Out A Slick Rotary Phase Converter”

Looking At Wind Turbines From A Different Angle

When we think of wind turbines, the first thing that usually comes to mind is the typical Sim City-esque type – 3 blades, gigantic, and wired into the municipal power grid. In truth, the world of wind power generation is far more varied indeed – as [Vittorio]’s vertical-axis wind turbine shows us.

So what exactly is a vertical-axis wind turbine, you ask? Well, rather than the typical setup with blades rotating about a horizontal axis, as in typical utility turbines or a classic electric fan you might use to cool off on a sunny day, instead a vertical axis is used. This necessitates a very different blade design due to the orientation of the rotational axis relative to the flow, so such turbines can be quite visually striking to those unfamiliar with such designs.

[Vittorio]’s design is a great way to get to grips with the type. The blades and supports were initially created out of PVC gutter channel, though 3D printed versions have also been developed. The motion is turned into electricity by using a simple brushed DC motor as a dynamo.

While the scale is small and the output only in the tens of watts, it goes to show that there’s always more than one way to do things.  We’ve seen some vertical-axis wind projects before, too. Video after the break.

Continue reading “Looking At Wind Turbines From A Different Angle”

Old LED Light Bulbs Give Up Filaments For Spider Web Clock

We love it when something common gets put to a new and unusual use, especially when it’s one of those, “Why didn’t I think of that?” situations. This digital clock with a suspended display is just such a thing.

The common items in this case were “filaments” from LED light bulbs, those meant to mimic the look of clear-glass incandescent light bulbs. [Andypugh] had been looking at them with interest for a while, and realized they were perfect as the segments for a large digital clock. The frame of the clock was formed from bent brass U-channel and mounted to an oak base via turned stanchions. The seven-segment displays were laid out in the frame and the common anodes of the LED filaments were connected together, with the cathode for each connected to a very fine wire. Each wire was directed through a random hole in the frame and channeled down into the base, to be hooked to one of the four DS8880 VFD driver chips. The anode wires form a lacy filigree behind the segments, which catch the light and make then look a little like a spider’s web. It looks great, but nicht für der gefingerpoken – the frame is at 80 VDC to drive the LED segments. The clock is synced to the UK atomic clock with a 60-kHz radio link; see the long, painful sync process in the video below.

We like the open frame look, which we’ve seen before with an equally dangerous sculptural nixie clock. And this gives us some ideas for what to do with those filament LEDs other than turning them back into a light bulb. And if [Andy] sounds familiar, it could be because he’s appeared here before. First of all resurrecting the parts bin for an entire classic motorcycle marque, and then as the designer of SMIDSY, a robot competitor in the first incarnation of the UK Robot Wars series.

Continue reading “Old LED Light Bulbs Give Up Filaments For Spider Web Clock”

Find Your Level – Extracting NES Game Data Using Python

Just this summer, the Nintendo Entertainment System had its 35th release anniversary, and even after years of discontinuation, it is still going strong in the hacker community. Exhibit A: [Matthew Earl]. For one of his upcoming projects, [Matthew] needed to get his hands on the background images of the NES classic Super Mario Bros. Instead of just getting some ready-rendered images and stitching them together, he decided to take care of the rendering himself, once he extracts the raw game data.

Since there is no official source code available for Super Mario Bros, [Matthew] used a disassembled version to get started looking for the image data. To avoid reading through thousands of lines of assembly code, and to also see what actually happens during execution, he wrapped the game’s ROM data into py65emu, a Python library emulating the 6502, the CPU that drives the NES. By adding a simple wrapper around the emulator’s memory handler that tracks reads on uninitialized data, [Matthew] managed to find out which parameters he needs to feed to the parser routine in order to get the image tile data. After an excursion into the Picture Processing Unit (PPU) and its memory arrangements, [Matthew] had everything he needed to create the Python script that will render the game background straight from its ROM data.

Even if extracting NES game data is not your thing, the emulator concept [Matthew] uses might be still worth a read. On the other hand, if you want to dig deeper into the NES, you should definitely have a look at emulating an SNES game on a NES, presented on the NES itself.

Are Patent Claims Coming For Your WS2812?

There are some components which are used within our sphere so often as to become ubiquitous, referred to by their part number without the need for a hasty dig through a data sheet to remind oneself just what we are talking about. You can rattle a few of them off, the 555, the 741, the ESP8266, and so on.

In the world of LEDs, the part that most immediately springs to mind is the Worldsemi WS2812 addressable LED. This part consists of three LEDs in red, green, and blue, all in the same package with a serial interface allowing a chain of individually addressable multicolour lights to be created. We’ve seen them in all sorts of places, and if you don’t recognise the part number then perhaps you will by one of the names they’re sold under: Neopixel.

Yesterday we received an email from our piratical friends at Pimoroni, the British supplier of all forms of electronic goodies. Among their range they have a reasonable number of products containing WS2812s, and it was these products that had formed the subject of an unexpected cease-and-desist letter. APA Electronic are the manufacturer of the APA102 addressable LED (which you may know as the Dotstar), and their cease-and-desist asking for the products to be withdrawn from sale rests on their holding a patent for an addressable multicolour LED. We’d be very interested to hear whether any other suppliers of WS2812-based parts have received similar communications.

US patent number 8094102B2 is indeed a patent for a “Single full-color LED with driving mechanism”, which does look a lot like a WS2812. But as always, such things are not as cut-and-dried as they might first appear. The LED in the patent for example relies upon a clock line for its operation, while the Worldsemi part doesn’t. I am not a lawyer so I’d hesitate to call this a baseless and speculative move, but I suspect that there will be plenty over which the two semiconductor companies can duke it out in the courtroom.

It’s fair to say that a large part of the ethos of our movement shares something with that of the world of open-source, so news of legal manoeuvres such as this are never likely to go down well. We’re small fry in this context and our commercial influence on APA102 or WS2812 sales will be minimal, but inevitably APA’s standing in our eyes will be diminished. Companies such as Pimoroni are not the target but a piece of collateral damage in a battle between manufacturers.

Whether the patent has been violated or not can only be decided by the courts. It is not uncommon for patent holders to go after companies selling the “infringing” products in hopes that rather than risk a costly court battle, they simply adhere to the demands, in this case buying parts from APA and not from Worldsemi.

So, if you rely on addressable LEDs, watch out! There may be trouble ahead.

Header image: Tristan Robitaille [CC BY-SA 4.0].