Arduino Gets Command Line Interface Tools That Let You Skip The IDE

Arduino now has an officially supported command-line interface. The project, called arduino-cli, is the first time that the official toolchain has departed from the Java-based editor known as the Arduino IDE. You can see the official announcement video below.

Obviously this isn’t a new idea. Platform IO and other command-line driven tools exist. But official support means even if you don’t want to use the command line yourself, this should open up a path to integrate the Arduino build process to other IDEs more easily.

The code is open source, but they do mention in their official announcement that you can license it for commercial use. We assume that would mean if you wanted to build it into a product, not just provide an interface to it. This seems like something Arduino expects, because a lot of the command line tools can produce json which is a fair way to send information to another application for parsing.

The command line interface doesn’t just build a sketch. You can do things like install and manage libraries. For example, to create a new sketch:

Continue reading “Arduino Gets Command Line Interface Tools That Let You Skip The IDE”

Electric Shower Head Teardown Makes Us Wince

We have bought some really amazing stuff from the Chinese online shops. We’ve also bought stuff that was… less than satisfactory, let’s say. At the prices you pay, you usually just chalk up the bad stuff as a cost of doing business. But [DiodeGoneWild] has a teardown of something that could be very dangerous if it wasn’t up to snuff: an electrically heated shower head. He says they are common in Latin America and have the nickname “suicide showers.”

We’ve seen the cute showerheads that change color, but those take batteries. What we are talking about here connects to the 220V main and draws 30A to instantly heat your shower water. Environmentally, that’s great since you don’t have a tank of water you keep heating and reheating just in case you need hot water. But you wouldn’t throw an AC radio in the tub, so you have to wonder just how safely this thing’s built. Well, you don’t have to wonder, because the videos below are going to show us.

Continue reading “Electric Shower Head Teardown Makes Us Wince”

A Peek At The Mesmerizing Action Of A Cycloidal Drive

Cycloidal drives are fascinating pieces of hardware, and we’ve seen them showing up in part due to their suitability for 3D printing. The open source robot arm makers [Haddington Dynamics] are among those playing with a cycloidal drive concept, and tucked away in their August 2018 newsletter was a link they shared to a short but mesmerizing video of a prototype, which we’ve embedded below.

A 10:1 Cycloidal Drive [Source: Wikipedia, image public domain]
A cycloidal drive has some similarities to both planetary gearing and strain-wave gears. In the image shown, the green shaft is the input and its rotation causes an eccentric motion in the yellow cycloidal disk. The cycloidal disk is geared to a stationary outer ring, represented in the animation by the outer ring of grey segments. Its motion is transferred to the purple output shaft via rollers or pins that interface to the holes in the disk. Like planetary gearing, the output shaft rotates in the opposite direction to the input shaft. Because the individual parts are well-suited to 3D printing, this opens the door to easily prototyping custom designs and gearing ratios.

[Haddington Dynamics] are the folks responsible for the open source robot arm Dexter (which will be competing in the Hackaday Prize finals this year), and their interest in a cycloidal drive design sounds extremely forward-thinking. Their prototype consists of 3D printed parts plus some added hardware, but the real magic is in the manufacturing concept of the design. The idea is for the whole assembly to be 3D printed, stopping the printer at five different times to insert hardware. With a robot working in tandem with the printer, coordinating the print pauses with automated insertion of the appropriate hardware, the result will be a finished transmission unit right off the print bed. It’s a lofty goal, and really interesting advancement for small-scale fabrication.

Continue reading “A Peek At The Mesmerizing Action Of A Cycloidal Drive”

The First Vending Machine Hacked Liquor Laws: The Puss And Mew

It is fair to say that many technologies have been influenced by human vices. What you may not realize is that vending machines saw their dawn in this way, the first vending machine was created to serve booze. Specifically, it was created to serve gin, the tipple of choice of the early 18th century. it was created as a hack to get around a law that made it harder to sell alcoholic drinks. It was the first ever vending machine: the Puss and Mew.

Continue reading “The First Vending Machine Hacked Liquor Laws: The Puss And Mew”

Marines 3D-Print Part To Repair Multi-Million Dollar Fighter

The good news: all you need to complete the repair you’re working on is one small part. The bad news: it’s only available in a larger, expensive assembly. The worst news: shipping time is forever. We’ve all been there, and it’s a hard pill to swallow for the DIYer. Seems like a good use case for 3D-printing.

Now imagine you’re a US Marine, and instead of fixing a dishwasher or TV remote, you’ve got a $123 million F-35 fighter in the shop. The part you need is a small plastic bumper for the landing gear door, but it’s only available as part of the whole door assembly, which costs $70,000 taxpayer dollars. And lead time to get it shipped from the States is measured in weeks. Can you even entertain the notion of 3D-printing a replacement? It turns out you can, and it looks like there will be more additive manufacturing to come in Corps repair depots around the world.

Details of the printed part are not forthcoming for obvious reasons, but the part was modeled in Blender and printed in PETG on what appears to be a consumer-grade printer. The part was installed after a quick approval for airworthiness, and the grounded fighter was back in service within days. It’s encouraging that this is not a one-off; other parts have been approved for flight use by the Marines, and a whole catalog of printable parts for ground vehicles is available too. This is the reality that the 3D printing fiction of Lost in Space builds upon.

And who knows? Maybe there are field-printable parts in the disposable drones the Corps is using for standoff resupply missions.

[via 3D-Printing Industry]

Build Your Own Two-Stage Water Rockets

Water rockets are one of the most fun and exciting science-adjacent activities one can take part in during the summer, and are popular with children and adults alike. Designs range from a bike pump with a cork in a bottle, up to significantly more advanced hardware. [Air.command]’s two-stage water rocket definitely fits into the latter category.

The build is initially somewhat confronting in its complexity, but after a thorough read-through the operating principles become clear. It’s an all-mechanical setup which relies on the weight of the upper stage and the initial acceleration of the rocket to keep the two stages coupled. It’s only when the first stage stops delivering thrust that a spring forces the two stages apart, and the upper stage rockets ever higher.

Parts-wise, everything is fairly accessible – with pieces cribbed from garden hose fittings, retractable pens and other household ephemera. It’s not the easiest thing to put together, but with perseverance and some tweaking and tuning, it’s definitely achievable for the home gamer, with no advanced tools or techniques required.

Now that you’ve got a two-stage rocket under construction, you might want to consider upgrading your launchpad. Video after the break.

Continue reading “Build Your Own Two-Stage Water Rockets”

Simulate PIC And Arduino/AVR Designs With No Cloud

I’ve always appreciated simulation tools. Sure, there’s no substitute for actually building a circuit but it sure is handy if you can fix a lot of easy problems before you start soldering and making PCBs. I’ve done quite a few posts on LTSpice and I’m also a big fan of the Falstad simulator in the browser. However, both of those don’t do a lot for you if a microcontroller is a major part of your design. I recently found an open source project called Simulide that has a few issues but does a credible job of mixed simulation. It allows you to simulate analog circuits, LCDs, stepper and servo motors and can include programmable PIC or AVR (including Arduino) processors in your simulation.

The software is available for Windows or Linux and the AVR/Arduino emulation is built in. For the PIC on Linux, you need an external software simulator that you can easily install. This is provided with the Windows version. You can see one of several videos available about an older release of the tool below. There is also a window that can compile your Arduino code and even debug it, although that almost always crashed for me after a few minutes of working. As you can see in the image above, though, it is capable of running some pretty serious Arduino code as long as you aren’t debugging.

Continue reading “Simulate PIC And Arduino/AVR Designs With No Cloud”