Anybody interested in building their own robot, sending spacecraft to the moon, or launching inter-continental ballistic missiles should have at least some basic filter options in their toolkit, otherwise the robot will likely wobble about erratically and the missile will miss it’s target.
What is a filter anyway? In practical terms, the filter should smooth out erratic sensor data with as little time lag, or ‘error lag’ as possible. In the case of the missile, it could travel nice and smoothly through the air, but miss it’s target because the positional data is getting processed ‘too late’. The simplest filter, that many of us will have already used, is to pause our code, take about 10 quick readings from our sensor and then calculate the mean by dividing by 10. Incredibly simple and effective as long as our machine or process is not time sensitive – perfect for a weather station temperature sensor, although wind direction is slightly more complicated. A wind vane is actually an example of a good sensor giving ‘noisy’ readings: not that the sensor itself is noisy, but that wind is inherently gusty and is constantly changing direction.
It’s a really good idea to try and model our data on some kind of computer running software that will print out graphs – I chose the Raspberry Pi and installed Jupyter Notebook running Python 3.
The photo on the left shows my test rig. There’s a PT100 probe with it’s MAX31865 break-out board, a Dallas DS18B20 and a DHT22. The shield on the Pi is a GPS shield which is currently not used. If you don’t want the hassle of setting up these probes there’s a Jupyter Notebook file that can also use the internal temp sensor in the Raspberry Pi. It’s incredibly quick and easy to get up and running.
It’s quite interesting to see the performance of the different sensors, but I quickly ended up completely mangling the data from the DS18B20 by artificially adding randomly generated noise and some very nasty data spikes to really punish the filters as much as possible. Getting the temperature data to change rapidly was effected by putting a small piece of frozen Bockwurst on top of the DS18B20 and then removing it again.
Continue reading “Sensor Filters For Coders”
We have semi-fond memories of string art from our grade school art class days. We recall liking the part where we all banged nails into a board, but that bit with wrapping the thread around the nails got a bit tedious. This CNC string art machine elevates the art form far above the grammar school level without all the tedium.
Inspired by a string art maker we recently feature, [Bart Dring] decided to tackle the problem without using an industrial robot to dispense the thread. Using design elements from his recent coaster-creating polar plotter, he built a large, rotating platform flanked by a thread handling mechanism. The platform rotates the circular “canvas” for the portrait, ringed with closely spaced nails, following G-code generated offline. A combination of in and out motion of the arm and slight rotation of the platform wraps the thread around each nail, while rotating the platform pays the thread out to the next nail. Angled nails cause the thread to find its own level naturally, so no Z-axis is needed. The video below shows a brief glimpse of an additional tool that seems to coax the threads down, too. Mercifully, [Bart] included a second fixture to drill the hundreds of angled holes needed; the nails appear to be inserted manually, but we can think of a few fixes for that.
We really like this machine, both in terms of [Bart]’s usual high build-quality standards and for the unique art it creates. He mentions several upgrades before he releases the build files, but we think it’s pretty amazing as is.
Continue reading “Polar Platform Spins Out Intricate String Art Portraits”
If you’re anything like us, your success with the opposite sex at the bar wasn’t much to brag about. But imagine if you had only had this compact CNC polar plotter and could have whipped up a few custom coasters for your intended’s drink. Yeah, that definitely would have helped.
Or not, but at least it would have been fun to play with. This is actually an improved version of [bdring]’s original “Polar Coaster”. Version 2 is really just a more compact and robust version of the original. The new one has a custom controller for the steppers and pen-lift servo, and everything is mounted neatly to the main PCB. Where the original used a timing belt to drive the platter, the new one uses 3D-printed helical gears, and the steppers have been replaced by slimmer motors. It even has an SD card and smartphone UI, and the coasters look pretty good.
There’s no video of the new one, but you can see its predecessor in action below and imagine the possibilities. Snap a picture and have a line art rendition of someone plotted while you’re waiting for drinks? Just remember not to take any laser engraved wooden nickels.
Continue reading “Make An Impression At The Bar With A CNC Coaster Plotter”
Most of us have heard some form of the adage, “You can buy cheaper, but you’ll never pay less.” It means that cheaper products ultimately do not stand up to the needs of their superior counterparts. Hackers love to prove this aphorism wrong by applying inexpensive upgrades to inexpensive tools to fill up a feature-rich tool bag. Take [The Thought Emporium] who has upgraded an entry-level microscope into one capable of polarized and dark-field microscopy. You can also see the video after the break.
Functionally, polarized images can reveal hidden features of things like striations in crystals or stress lines in hot glue threads. Dark-field microscopy is like replacing the normally glaring white background with a black background, and we here at Hackaday approve of that décor choice. Polarizing filters sheets are not expensive and installation can be quick, depending on your scope. Adding a dark-field filter could cost as much as a dime.
Like most mods, the greatest investment will be your time. That investment will pay back immediately by familiarizing you with your tools and their workings. In the long-run, you will have a tool with greater power.
Simple mods like the light source can be valuable, but upgrades are not limited to optical scopes, an electron microscope was brought back to life with Arduino
Continue reading “Pimp My Scope”
Take apart a few old DVD drives, stitch them together with cable ties, add a pen and paper, and you’ve got a simple CNC plotter. They’re quick and easy projects that are fun, but they do tend to be a little on the “plug and chug” side. But a CNC plotter that uses polar coordinates? That takes a little more effort.
The vast majority of CNC projects, from simple two-axis plotters to big CNC routers, all tend to use Cartesian coordinate systems, where points on a plane are described by their distances from an origin point on two perpendicular axes. Everything is nice and square, measurements are straightforward, and the math is easy. [davidatfsg] decided to level up his CNC plotter a bit by choosing a polar coordinate system, with points described as a vector extending a certain distance from the origin at a specified angle. Most of the plotter is built from FischerTechnik parts, with a single linear axis intersecting the center point of a rotary drawing platform. Standard G-code is translated to polar coordinates by a Java applet before being sent to a custom Arduino controller to execute the moves. Check out the video below; it’s pretty mesmerizing to watch, and we can’t help but wonder how a polar 3D-printer would work out.
Have polar coordinates got you stumped? It can be a bit of an adjustment from Cartesian space for sure. It can be worth it, though, showing up in everything from cable plotters to POV fidget spinners and even to color space models.
Continue reading “A Polar Coordinate CNC Plotter Even Descartes Could Love”
Last week, Adafruit released the DotStar RGB LED Disk, a 240mm diameter disk packed with 255 individually addressable RGB LEDs. Because blinkey glowey projects are the best projects, [Adam] had to have one. His tests open up some interesting possibilities in the world of blinkey LED stuff, including a polar coordinate display that would be perfect for low-res games and LED clocks.
[Adam] found the Disk sufficiently bright and glowey, but there were two problems. The first was the JST SM connector on the input of the DotStar Disk; with 255 LEDs on the disk, it has a maximum draw of over 10A, while the connector can only supply 7A without getting unreasonably warm. Secondly, there aren’t 60 LEDs around the outer edge of the disk, limiting its application as a clock.
There’s another thing wrong with the DotStar Disk, until you realize it’s effectively a polar coordinate display. RGB LED libraries are usually written for strips or matrices, not circles. The LEDs are sequentially arranged on the DotStar disk spiraling inwards, and after mucking about with some terrible code, [Adam] realized he could control a pixel with only its distance from center and angle from the connector. This makes plotting circles easier, but it also opens this display up to some interesting applications; circular Pong would be cool, and LED clocks are the bees knees.
[Bart Dring] is well known around these parts for Makerslide, the buildlog.net laser cutter, and a collaboration with Inventables for the Carvey CNC machine. They’re all popular projects and all very useful. This one, not so much. It’s a bipolar bot that doesn’t take itself too seriously, and this year’s build for [Bart]’s usual gonzo CNC machine for ORD Camp.
The Bipolar Bot – yes, that’s its name – is pretty much a SCARA bot. There are two NEMA 14 steppers in the joint of two arms, each of which are bolted to a bearing on a base plate with the other end holding a pen. That’s it as far as the mechanics go, but the software is extremely interesting.
The steppers are driven by an Arduino with the help of a tool that converts Cartesian Gcode to the bipolar Gcode the machine requires. There’s a bit of math involved, but nothing of note if you can code some trig functions
Right now the bipolar bot is busy drawing stuff that looks like it came right off a spirograph. You can see a video of that below.
Continue reading “Bipolar Bot For Drawing Spirals”