Mine Bitcoin With An ESP8266

With all the hype surrounding cryptocurrencies and the current high not quite so high but still pretty eye-watering price of Bitcoin, there are some things which might once have been pure folly that could now be deemed worthy of pursuit. There is an excavation mission being considered to unearth a hard drive containing an early Bitcoin wallet in a Welsh landfill, for instance. But a more approachable task for you may be the possibility of mining using minimal hardware.

Take [Merlot Machina]’s project for example, implementing a Bitcoin miner on an ESP8266. Part of this is the timeless pursuit of answering the joke question: “Will it mine Bitcoin”, and the other part is looking at this like a lottery ticket. Is it a worthwhile punt at a prize for a minimal investment?

He gives us a rundown of some of the statistics involved, and comes away with the conclusion that it is something like a not-very-good lottery ticket. The ESP performs 1200 hashes per second while the entire Bitcoin community manages about 1.2 exahashes per second. This he calculates gives him a 1 in 1016 chance of mining a block every ten minutes, which for the tiny cost of an ESP and its relatively frugal power budget is a chance he sees as worth taking.

So far he has implemented the hashing algorithm and verified it against a known hash on an already-mined block. At this point though he’s hit a roadblock in the need to run Bitcoin core on a server to keep the ESP supplied with new block headers, so the ESP miner remains a proof of concept. The write-up is still an interesting read though, and given that many readers will have a few spare ESP boards it’s possible that one of you may take it to the next level and Win It Big. If that’s you, you’ll be able to sit on your private island sipping a cool drink, and laugh at the commenters who said it would never happen. Meanwhile here at Hackaday we’ll stick to tried-and-trusted revenue generation strategies, such as bringing you the latest hardware hacks.

This might seem a peculiarly slow miner, but it’s not the slowest we’ve seen by any means. The ever-prolific [Ken Shirriff] has tried it on an IBM 1401 mainframe and a Xerox Alto, and you can of course do it the old-fashioned way.

Upgrading A 3D Printer With OctoPrint

If you’ve been hanging around 3D printing communities, or reading the various 3D printing posts that have popped up here on Hackaday, you’ve almost certainly heard of OctoPrint. Created and maintained by Gina Häußge, OctoPrint allows you to turn an old computer (or more commonly a small ARM board like the Raspberry Pi or BeagleBone) into a network-accessible control panel for your 3D printer. Thanks to a thriving collection of community developed plugins, it can even control other hardware such as lights, enclosure heaters, smart plugs, or anything else you can think to hook onto the GPIO pins of your chosen ARM board. The project has become so popular that the new Prusa i3 MK3 has a header on the control board specifically for connecting a Pi Zero W running OctoPrint.

Even still, I never personally “got” OctoPrint. I was happy enough with my single printer connected to my computer and controlled directly from my slicer over USB. The majority of the things I print are of my own design, so when setting up the printer it only seemed logical that I would have it connected to the machine I’d be doing my designing on. If I’m sitting at my computer, I just need to rotate my chair to the right and I’m at my printer. What do I need to control the thing over WiFi for?

But things got tricky when I wanted to set up a second printer to help with speeding up larger projects. I couldn’t control them both from the same machine, and while I could print from SD on the second printer if I really had to, the idea seemed painfully antiquated. It would be like when Scotty tried talking into the computer’s mouse in “Voyage Home”. Whether I “got it” or not, I was about to dive headfirst into the world of OctoPrint.

Continue reading “Upgrading A 3D Printer With OctoPrint”

Spite, Thrift, And The Virtues Of An Affordable Logic Analyzer

[Larry Wall], the father of Perl, lists the three great virtues of all programmers: Laziness, Impatience, and Hubris. After seeing that Saleae jacked up the prices on their popular logic analyzers to ludicrous levels, [CNLohr] added a fourth virtue: Spite. And since his tests with a Cypress FX3 over the last few days may lead to a dirt-cheap DIY logic analyzer, we may soon be able to add another virtue: Thrift.

The story begins a year or two ago when [CNLohr] got a Cypress FX3 development board for $45. The board sat unused for want of a Windows machine, but after seeing our recent article on a minimalist logic analyzer based on an FX2, he started playing with the board to see if it could fan the flames of his Saleae hatred. The FX3 is a neat little chip that has a 100-MHz General Programmable Interface (GPIF) bus that basically lets it act like an easy to use FPGA.

Prepared to spend months on the project, he was surprised to make significant progress on his mission of spiteful thrift within a few days, reading 16 bits off the GPIF at over 200 megabytes per second and dumping it over the USB 3.0 port. [Charles]’ libraries for the FX3 lay the foundation for a lot of cool stuff, from logic analyzers to SDRs and beyond — now someone just has to build them.

The search for a cheap but capable logic analyzer is nothing new, of course. Last year, both [Jenny List] and [Bil Herd] looked at the $22 iCEstick as a potential Saleae beater.

Continue reading “Spite, Thrift, And The Virtues Of An Affordable Logic Analyzer”

Why Sony’s Trinitron Tubes Were The Best

If you’re old enough to remember Cathode Ray Tube (CRT) Televisions, you probably remember that Sony sold the top products. Their Trinitron tubes always made the best TVs and Computer Monitors. [Alec Watson] dives into the history of the Sony Trinitron tube.

Sony Color TVs didn’t start with Trinitron — for several years, Sony sold Chromatron tubes. Chromatron tubes used individually charged wires placed just behind the phosphor screen. The tubes worked, but they were expensive and didn’t offer any advantage over common shadow mask tubes. It was clear the company had to innovate, and thanks to some creative engineering, the Trinitron was born.

Closeup of a Trinitron tube shows unbroken vertical stripes which led to a brighter picture.

All color TV’s shoot three electron guns at a phosphor screen. Typical color TVs use a shadow mask — a metal sheet with tiny holes cut out. The holes ensure that the electron guns hit only the red, green and blue dots of phosphor. Trinitrons use vertical bars of single phosphor color and a picket fence like aperture grille. The aperture grill blocks less of the electron beam than a shadow mask, which results in a much brighter image. Trinitrons also use a single electron gun, with three separate cathodes.

[Alec] is doing some amazing work describing early TV systems and retro consumer electronics over on his YouTube channel, Technology Connections. We’ve added him to our Must watch subscription list.

Interested in retro CRTs? Check out Dan’s article on cleaning up the fogged plastic safety screen on the front of many CRTs.

Continue reading “Why Sony’s Trinitron Tubes Were The Best”

Rescue An Old Washing Machine With Modern Controls

The humble washing machine is an appliance that few of us are truly passionate about. They’re expected to come into our lives and serve faithfully, with a minimum of fuss. In the good old days, it was common for a washing machine to last for well over 20 years, and in doing so ingratiate itself with its masters. Sadly now while the simple mechanical parts may still be serviceable, the electronics behind the scenes can tend to fail. This is a Russian story (Google Translate link) about giving a new brain to an old friend.

The machine in question is known as an Oriole, and had served long and hard. Logic chips and entire controllers had been replaced, but were continuing to fail. Instead, a replacement was designed to keep the machine operational for some time yet. Rather than relying on recreating the full feature set of the machine it was decided to eliminate certain things for simplicity. Settings for different fabric types or wash modes were eliminated, which is an easy choice if like most people all your washes are done in the same mode anyway. A water level sensor was found to be no longer functioning properly and was simpler to eliminate than repair.

The brain is a PIC microcontroller, with an ESP12 acting as a webserver for monitoring and control. Additionally, a glass lens was taken from some former medical equipment and neatly installed in the control panel of the machine before an OLED display, giving the machine far more feedback than before. Control is still done with the machine’s original buttons. Temperature sensors were added as well to allow the machine to shut itself down in the event of an overheating problem. It’s all tied together on what looks to be a classic single-sided homebrew PCB.

It’s a great project that shows it’s easy to bring modern electronic might to bear on vintage mechanical hardware, with great results. A washing machine lives to see another day, another load – and the landfill remains just that much lighter, to boot.

We’ve seen controller builds for old washing machines before, too – like replacing mechanical control with an Arduino.

[Thanks to Tirotron for sending this in!]

Print A Sacrificial Magnet Square

Here’s your quick and dirty hack for the day. Sometimes you just need something that will work for what you’re trying to do, and you don’t want to go through the motions of doing what’s prescribed. When this happens, it’s a cheap, disposable tool that fits the bill. No, we’re not talking about Harbor Freight—we mean those need-driven tools you make yourself that get the job done without fuss. If you’re really lucky, you can use them a couple of times before they break.

This is one of those tools. [Jake’s Workshop] wanted to be able to quickly tack a corner weld without getting out the clamps, so he thought, why not print some magnet squares? [Jake] hollowed out the triangle to save filament, but this also gives it a nice advantage over store-bought magnet squares: instead of grasping and pulling it off,  you can hook your finger through it and then hang it on the pegboard for next time.

[Jake] got lucky with the pocket sizes and was able to press fit the magnets in place, but it would be worth it to add a drop of CA glue to help with strain. He seems to have forgotten to upload the files for his various styles, but a hollow triangle with chamfers and magnet pockets should be easy enough to replicate in OpenSCAD or  SolidWorks, which he used in the video below.

There’s something special about a cheap tool you make yourself. Even though you know it won’t last forever, it’s just more meaningful than some cheap, rage-inducing tchotchke or assemblage from a place where the air is ~85% offgasses. We love necessity-driven self-built tools around here so much that we gave them their own Hacklet.

Continue reading “Print A Sacrificial Magnet Square”

Remember When Scratch-Built Robots Were Hard?

Even simple robots used to require quite a bit of effort to pull together. This example shows how far we’ve come with the tools and techniques that make things move and interact. It’s a 3D printed rover controlled by the touchscreen on your phone. This achieves the most basic building block of wheeled robotics, and the process is easy on you and your pocketbook.

We just can’t stop loving the projects [Greg Zumwalt], aka[gzumwalt], is turning out. We just saw his air-powered airplane engine and now this little rover perks our ears up. The design uses the familiar trick of two powered wheels with a ball bearing to avoid problems with differential turning. But the simplicity is all in the implementation.

This bot is 3D printed using eight very simple pieces: four gears, two axles, a cap and a single tray to mount everything. The cap captures the ball bearing which pokes out a hole in the bottom of the tray to form an omnidirectional wheel. Two 9G servos modified for continuous rotation. The mating teeth of the gears are found on the wheel sections which have grooves for neoprene O-rings to provide traction. The entire thing is driven by an ESP8266 in the form of an Adafruit Feather Huzzah. This is programmed using the Arduino IDE and your phone can connect directly or through a WiFi router.

We’re not crazy, right? Robots didn’t used to be this easy to pull together? This goes for the power of 3D printing versus traditional basement fabrication methods, but in the availability of powerful yet inexpensive embedded systems and the available tools and libraries to program them. Kudos to you [Greg] for showing us how great the currently available building blocks are in the hands of anyone who wants to channel their engineering creativity. He certainly has… this chassis ultimately powers Santa’s sleigh.

Need a bigger printing challenge? Here’s a 3D printed rover that goes all-in with the suspension system.

Continue reading “Remember When Scratch-Built Robots Were Hard?”