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.