Interactive Mandelbrot Set Viewer Runs On FPGAs

The Mandelbrot Set is a mathematical oddity where a simple function creates an infinitely complex landscape that you can literally zoom into forever. Like most people, I’ve downloaded Mandelbrot set viewers and marveled at the infinite whorls and spirals, and then waited while each frame took minutes or hours to render as I zoomed in. [Michael Henning], [Max Rademacher] and [Jonathan Plattner] decided to throw some modern computational muscle at this problem by building an interactive Mandelbrot set viewer using a laptop and two FPGA boards.

Continue reading “Interactive Mandelbrot Set Viewer Runs On FPGAs”

Stepper Motor? Encoder? It’s Both!

We always think it is interesting that a regular DC motor and a generator are about the same thing. Sure, each is optimized for its purpose, but inefficiencies aside, you can use electricity to rotate a shaft or use a rotating shaft to generate electricity. [Andriyf1] has a slightly different trick. He shows how to use a stepper motor as an encoder. You can see a video of the setup below.

It makes sense. If the coils in the stepper can move the shaft, then moving the shaft should induce a current in the coils. He does note that at slow speeds you can miss pulses, however. Again, the device isn’t really optimized for this type of operation.

The circuit uses an opamp-based differential amplifier to read the pulses from the coil. Two opamps on two coils produce a quadrature signal just like a normal encoder. When the shaft turns in one direction, one pulse will lead the other. In the other direction, the lead pulse will be reversed.

There’s code to let an Arduino read the pulses. And here’s plenty of code that will read quadrature on an Arduino or other processors. We’ve seen similar hacks done with hard drive motors which are quite similar, by the way.

Continue reading “Stepper Motor? Encoder? It’s Both!”

Drive Big Servos With Ease

CNC machines of all types are a staple here at Hackaday, in that we have featured many CNC builds over the years. But the vast majority of those that we see are of relatively modest size and assembled in a home workshop, using small and readily available components such as small stepper motors. These drives are a world away from those used in industrial CNC machines, where you will find high-voltage servos packing a much greater punch. With good reason: driving a small low-voltage motor is easy while doing the same with a high-voltage servo requires electronics that have hitherto been expensive.

STMBL (for STM32 microprocessor and BrushLess motor) is a servo driver for STM32F4 microcontrollers that is specifically designed to use in retrofit projects to industrial CNC machines that have those high-voltage servos. When assembled, it takes the form of two PCBs arranged in a T configuration over a heatsink, with high-power connectors for the motor terminals, and RJ45s for feedback and serial control. In fact each of the boards has its own STM32, one on the high voltage side and the other on the low voltage, to enable only the simplest of isolated serial connections between them.  A significant variety of combinations of motor and feedback system is supported, making it as versatile as possible a module for those whose CNC needs have escaped their home bench setup. We’re sure we’ll see this module pop up in quite a few builds we show you over the coming years.

Thanks [Andy Pugh] for the tip.

Watney: A Fully 3D Printed Rover Platform

We’re getting to the point that seeing 3D printed parts in a project or hack isn’t as exciting as it was just a few years ago. The proliferation of low-cost desktop 3D printers means that finding a printer to squirt out a few parts for your build isn’t the adventure it once was. Gone are the days of heading to a local hackerspace or college hoping their janky Mendel felt like working that day. But all that really means is that hackers and makers now have the ability to utilize 3D printing even more. Forget printing one or two parts of your design, just print the whole thing.

That’s exactly what [Nik Ivanov] did with Watney, his fully 3D printed rover project. After lamenting that many so-called 3D printed rovers were anything but, he set out to design one that was not only made primarily of printed parts, but was robust enough to put some real work in. Over the course of several design iterations, he built a very capable all-wheel drive platform that needs only some electronics and a handful of M3 screws to leap into action.

As long as you’ve got a 3D printer big enough to handle the roughly 120mm x 190mm dimensions of this bot’s body, you’re well on the way to owning your very own video rover. [Nik] recommends printing everything in PETG, no doubt for its increased strength when it comes to things like the drive gears. Plus it’s low warp, which is really going to help when printing the top and bottom sections of the body. TPU is advised for the tires, but if you don’t have any (or your printer chokes on flexible filaments) you can just wrap the wheels with wide rubber bands.

[Nik] is using a Raspberry Pi Zero W as the brains of the operation, but the beauty of an open platform like this is that you could easily swap out the controls for something else to meet your needs. In addition to the Pi, there’s a L298N H-bridge motor controller to interface with the dual geared motors, as well as a servo to provide tilt for the SainSmart camera module.

We’ve often been surprised at just how expensive commercial robotics platforms can be, so we’re keenly interested in seeing if the availability of designs like this spur on DIY rover development. Though if you’re looking for something a little more rough and tumble, we’ve seen a 3D printed rover that looks combat-ready.

Continue reading “Watney: A Fully 3D Printed Rover Platform”

Robot Maps Rooms With Help From IPhone

The Unity engine has been around since Apple started using Intel chips, and has made quite a splash in the gaming world. Unity allows developers to create 2D and 3D games, but there are some other interesting applications of this gaming engine as well. For example, [matthewhallberg] used it to build a robot that can map rooms in 3D.

The impetus for this project was a robotics company that used a series of robots around their business. The robots navigate using computer vision, but couldn’t map the rooms from scratch. They hired [matthewhallberg] to tackle this problem, and this robot is a preliminary result. Using the Unity engine and an iPhone, the robot can perform in one of three modes. The first is a user-controlled mode, the second is object following, and the third is 3D mapping.

The robot seems fairly easy to construct and only carries and iPhone, a Node MCU, some motors, and a battery. Most of the computational work is done remotely, with the robot simply receiving its movement commands from another computer. There’s a lot going on here, software-wise, and a lot of toolkits and software packages to install and communicate with one another, but the video below does a good job of showing what you’ll need and how it all works together. If that’s all too much, there are other robots with a form of computer vision that can get you started into the world of computer vision and mapping.

Continue reading “Robot Maps Rooms With Help From IPhone”

IoT Solar Pool Heating

A backyard swimming pool can be a great place to take a refreshing dip on a summer’s day. It can also be a place to freeze your giblets off if the sun has been hiding for even a few hours. That can make pools an iffy proposition unless they’re heated, and that starts to get really expensive in terms of upfront costs and ongoing charges for fuel or power. Unless you put the sun and the IoT to work for pool-heating needs.

Preferences vary, of course, but [Martin Harizanov] and his family clearly like their swims on the warm side. With nobody using the pool when it was below 25°C (77°F), [Martin] picked up a few bits to harness the sun to warm the water. Loops of PVC lawn irrigation tubing were tossed onto a shed roof with a favorable solar aspect and connected to the pool with a length of garden hose. The black thin-wall tubing is perfect for capturing the sun’s energy, and 200 meters of the stuff can really heat things up fast. A small pump is controlled by a microcontroller — it’s not explicitly stated but we suspect it’s a Raspberry Pi — with a pair of temperature sensors to sample the water in the pool and in the heating loop. Metrics are gathered and logged by Emoncms, an open source energy monitoring app. [Martin] says he’s harvesting about 10 kW from the sun on a good day, and that the pool water in the heating loop has gotten up to a steamy 55°C (131°F) without any other energy inputs other than the pump.

Plenty of others have made the leap to solar for pool season extension, with designs from the simple to the more complex. And if you live where the sun doesn’t shine, there’s always a compost water heater.

3D Printed Variable Area Jet Nozzle

If you’ve ever seen the back end of a military jet, you’ve likely seen variable area nozzles. They’re used to adjust the exhaust flow out of the rear of a jet engine during supersonic flight and while the afterburner is engaged. Commercial aircraft, with the exception of the Concorde, don’t need such fancy hardware since a static exhaust nozzle works well enough for the types of flying they’ll be doing. For much the same reasons, RC aircraft don’t need variable area nozzles either, but it doesn’t keep builders from wanting them.

Which brings us to this utterly gorgeous design by [Marco Colucci]. Made up of 23 individual PETG parts, this variable area nozzle is able to reduce its diameter by 50% with just a twist of the rotating collar. When paired with a hobby servo, this mechanism will allow the operator to adjust the nozzle aperture with an extra channel on their RC transmitter. The nozzle hasn’t flown yet, but a test run is being planned with a 40mm Electric Ducted Fan (EDF) motor. But thanks to the parametric design, it shouldn’t be a problem to scale it up to larger motors.

But the big question: does it have an effect on the EDF’s performance? The answer is, of course, no. This doesn’t actually do anything. An EDF motor has no need for this sort of nozzle, and even if you tried to fit this on a scale jet engine, it would melt in seconds from the exhaust temperature. This is purely a decorative item, to give the plane a more accurate scale look. To that end, it looks fantastic and would definitely be impressive on the back of a large scale RC military fighter.

If anything, [Marco] says he expects performance to be worse with the nozzle fitted. Not only is it adding dead weight to the plane, but restricting the air coming out of the back of the fan isn’t going to do anything but reduce thrust. But on the bright side: if it’s flying slower, it will be easier to see how awesome your adjustable nozzles look.

This isn’t the first time somebody’s tried to make an electric RC plane look like it’s packing a proper turbine, but it certainly might be one of the slickest. Only way to top this is to build an actual jet engine for the thing.

Continue reading “3D Printed Variable Area Jet Nozzle”