Sleek, Sophisticated Skittle Sorter

Sorting candy by color is a classic problem that has its roots in the contract riders of rock stars who were just trying to make sure that more important contractual obligations were not being overlooked by concert venues. Through the years, candy sorting has become a classic problem for hobbyists to solve in various ways. After a false start a few years back, [little french kev] was compelled to dust off those plans and make the most compact sorter possible.

This minimalist beauty uses an Arduino Nano and RGB sensor to assess the color. At the top, a small servo rotates an arm inside the hopper that both shakes the Skittles and sets them up single file before the sensor. Another small servo spins the tube rack around to catch the rainbow. There’s an RGB LED in the base that bathes the tube from below in light that matches the Skittles. Check out the series of gifs on [little french kev]’s personal project site that show how each part works, and then watch the build video after the break.

Did you know you can roll your own color sensor from an RGB LED and a photocell? If you don’t think candy is so dandy, you could always color-sort your LEGO.

Continue reading “Sleek, Sophisticated Skittle Sorter”

The Hornsdale Power Reserve And What It Means For Grid Battery Storage

Renewable energy has long been touted as a major requirement in the fight to stave off the world’s growing climate emergency. Governments have been slow to act, but prices continue to come down and the case for renewables grows stronger by the day.

However, renewables have always struggled around the issue of availability. Solar power only works when the sun is shining, and wind generators only when the wind is blowing. The obvious solution is to create some kind of large, grid-connected battery to store excess energy in off-peak periods, and use it to prop up the grid when renewable outputs are low. These days, that’s actually a viable idea, as South Australia proved in 2017.

Continue reading “The Hornsdale Power Reserve And What It Means For Grid Battery Storage”

Dashboard Dongle Teardown Reveals Hardware Needed To Bust Miles

Progress and the proliferation of computers in automotive applications have almost made the shade tree mechanic a relic of the past. Few people brave the engine compartment of any car made after 1999 or so, and fewer still dive into the space behind the dashboard. More’s the pity, because someone may be trying to turn back the odometer with one of these nefarious controller area network (CAN bus) dongles.

Sold through the usual outlets and marketed as “CAN bus filters,” [Big Clive] got a hold of one removed from a 2015 Mercedes E-Class sedan, where a mechanic had found it installed between the instrument cluster and the OEM wiring harness. When the dongle was removed, the odometer instantly added 40,000 kilometers to its total, betraying someone’s dishonesty.

[Big Clive]’s subsequent teardown of the unit showed that remarkably little is needed to spoof a CAN bus odometer. The board has little more than an STM32F microcontroller, a pair of CAN bus transceiver chips, and some support circuitry like voltage regulators. Attached to a wiring harness that passes through most of the lines from the instrument cluster unmolested while picking off the CAN bus lines, the device can trick the dashboard display into showing whatever number it wants. The really interesting bit would be the code, into which [Clive] does not delve. That’s a pity, but as he points out, it’s likely the designers set the lock bit on the microcontroller to cover their tracks. There’s no honor among thieves.

We found this plunge into the dark recesses of the automotive world fascinating, and [Big Clive]’s tutelage top-notch as always. If you need to get up to speed on CAN bus basics, check out [Eric Evenchick]’s series on automotive network hacking.

Continue reading “Dashboard Dongle Teardown Reveals Hardware Needed To Bust Miles”

Nintendo Switch Doubles As Network Switch

Coming straight to you from the “Department of Redundant Redundancies” comes this clever hack that turns a Switch into a switch. More specifically, a network switch. Not even a half bad one either, judging by the speed tests [Cynthia Revström] performed after setting it all up. We wouldn’t advise you dump your existing network gear in favor of a repurposed game system, but perhaps in a pinch…

Despite what you might be thinking, there’s no hardware modifications at work here. This is a fully functional Nintendo Switch that’s just had two USB to Ethernet adapters plugged into it. The secret ingredient is the addition of some Penguin Power, up and running on Nintendo’s latest and greatest thanks to a project called switchroot.

With Linux running on the system, all [Cynthia] had to do was make sure that the USB to Ethernet adapters were supported, and fiddle around with the brctl and ip commands to configure a bridge between the interfaces to get the packets moving. Putting the Switch between the main network and a test computer showed it had a throughput of just over 90 Mbps, which is about all that could be expected from the USB-connected network interfaces.

From here it wouldn’t have taken much more effort to get the system working as a wireless router and providing services like DHCP and NAT to clients. But since Nintendo didn’t see fit to call it the Router, that would’ve offered minimal meme value. There’s always next generation.

Seeing the Nintendo Switch do a surprisingly good job running as an Ethernet switch is even more surprising given the fact that it struggles to function with accessories that are actually intended for it. Though to be fair, the migration to USB-C has been a little rockier than most of us would have hoped.

Old Christmas Tree Gets A New Spin

A couple of Christmases ago, [Nick] got tired of trying to evenly decorate his giant fake tree and built an MDF lazy Susan to make it easy as eggnog. But what’s the point of balanced decorations if one side of the tree will always face the wall? This year, [Nick] is giving himself the gift of a new project and motorizing the lazy Susan so the tree slowly rotates.

The saintly [Nick] decided to do this completely out of the junk box, except for all the WS2811 RGB LEDs on order that he hopes to synchronize with the tree’s movement. He started by designing a gear in OpenSCAD to fit the OD of the bearing, a task made much simpler thanks to the open-source gear libraries spinning around out there.

It was hard to get slow, smooth movement from the NEMA-23 he had on hand, but instead of giving up and buying a different motor, he designed a gear system to make it work. Our favorite part has to be the DIY slip ring [Nick] made from a phono connector to get around the problem of powering a rotating thing. This is a work in progress, so there are no videos just yet. You can watch [Nick]’s Twitter for updates.

[Nick] didn’t specify why he chose to use WS2811s, but they have gotten pretty cheap. Did you know you can drive them with VGA?

Via Adafruit’s CircuitPython newsletter

A Modern Take On A Piece Of Old Test Equipment

The HP 11947A is something of a footnote in the back catalogue of Hewlett Packard test equipment. An attenuator and limiter with a bandwidth in the megahertz rather than the gigahertz. It’s possible that few laboratories have much use for one in 2019, but it does have one useful property: a full set of schematics and technical documentation. [James Wilson] chose the device as the subject of a clone using surface mount devices.

The result is very satisfyingly within spec, and he’s run a battery of tests to prove it. As he says, the HP design is a good one to start with.   As a device containing only passive components and with a maximum frequency in the VHF range this is a project that makes a very good design exercise for anyone interested in RF work or even who wishes to learn a bit of RF layout. At these frequencies there are still a significant number of layout factors that can affect performance, but the effect of conductor length and  stray capacitance is less than the much higher frequencies typically used by wireless-enabled microcontrollers.

Hackaday Links Column Banner

Hackaday Links: December 15, 2019

When you’re right, you’re right. Back in January, we predicted that exoskeletons were about to break out as a mainstream product, and gave several examples of prototypes poised to become products. So it was with interest that we read about Sarcos Robotics and their new Guardian XO, a cyber suit aimed at those doing heavy lifting tasks. The wearable, full-body exoskeleton is supposed to amplify the wearer’s effort 20-fold, making a 200-pound load feel like lifting 10 pounds. It runs untethered for two hours on hot-swappable battery packs, and will be offered for lease to civilian heavy industries and the military for $100,000 a year. Honestly, it seems like you could hire a fair number of meat-robots for that sum, but still, it’s an interesting technology and a promising development.

Aficionados of 3D printing know all too well the limitations of the technology. While we’ve come a long way with things like a print in place, multiple materials, embedded electronics, and even direct 3D printing of complex mechanisms like electric motors, there’s been a long-standing obstacle to turning the 3D printer into the replicators of the Star Trek universe: batteries. But even that barrier is falling, and a new paper shows just how far we’ve come to printing batteries right into our designs. Using an off-the-shelf Prusa Mk 3 and specially formulated lithium iron phosphate/PLA and silicon dioxide/PLA filaments, the group was able to print working batteries in one shot. It’s exciting news because previous 3D-printed batteries required special printers or laborious post-processing steps. We’ll be watching for developments here.

Speaking of laboratory work, anyone who has been around labs is probably familiar with LabVIEW, the de facto standard for programming data capture and automation applications in the laboratory setting. The graphical programming language makes it easy to throw together a quick interface, and many lab-rats regret not having the expensive, proprietary environment available for their after-hours hacking. That might no longer be true, though, with special LabVIEW licensing for non-commercial users. It looks like there are two levels: LabVIEW Home Edition and a Community Edition of LabVIEW, which is currently in Beta. Either way, it’s good news for LabVIEW fans.

Friend of Hackaday Eric Strebel released a video the other day that we just had to comment on. It has nothing to do with electronics – unless you’re into circuit sculpture, that is. In the first of a two-part series, Eric covers the basics of modeling with brass and copper, using both wire and tubing. He has some great tips, like work-hardening and straightening copper wire by stretching it, and the miniature roll bender seen at 7:40 looks like something that could easily be 3D-printed. We recently did a Hack Chat on circuit sculpture with Mohit Bhoite, and saw his Supercon talk on the subject, so this video really got the creative juices flowing.

If you’re local to the Elkhorn, Wisconsin area, consider stopping by the Elkhorn Mini Maker Faire on February 15 and 16. Elkhorn looks like it has a nice central location between Milwaukee and Madison, and doesn’t appear too far from Chicago either, which is probably why they drew 1,200 people to the inaugural Faire last year. They’re looking to get that up to 2,000 people this year and over 150 booths, so if you’ve got something hackish to show off, check it out. The organizers have even set up a Hackaday.io event page to coordinate with the Hackaday community, so drop them a line and see what you can do to pitch in.

And finally, this one has us scratching our head. Activist group Extinction Rebellion (XR) has claimed they’ve “decommissioned” thousands of electric scooters in French cities. Why they’ve done this is the puzzler; they claim that the scooters-for-hire are an “ecological disaster” due to the resources needed to produce them compared to their short lifespan. We haven’t done the math. What is interesting, though, is the mode of decommissioning: XR operatives simply defaced the QR code on the scooters, rendering them un-rentable with the vendor’s smartphone app. Scooter companies might want to look into alternative rental methods if this keeps up.