Posts with «arduino» label

Arduino and Git: Two Views

You can’t do much development without running into Git, the version control management system. Part of that is because so much code lives on GitHub which uses Git, although you don’t need to know anything about that if all you want to do is download code. [Dr. Torq] has a good primer on using Git with the Arduino IDE, if you need to get your toes wet.

You might think if you develop by yourself you don’t need something like Git. However, using a version control system is a great convenience, especially if you use it correctly. There’s a bug out in the field? What version of the firmware? You can immediately get a copy of the source code at that point in time using Git. A feature is broken? It is very easy to see exactly what changed. So even if you don’t work in a team, there are advantages to having source code under control.

If you are already using a more advanced IDE, Git is probably integrated into your environment, or, at least, it could be. If you are allergic to the command line, there are plenty of GUI tools to use Git, also. One nice thing about Git is that your local repository is just a directory. You don’t need to stand up a special server or anything to use it.

We don’t think it is directly related, but [Andreas] recently had a video on Git and Arduino. It isn’t as detailed, but it does have some good stuff and is worth the time to watch. You can see it below.

We’ve used Git for some odd things in the past. Note that Git is the version control system while GitHub is a website. However, if you are a hardcore command line user, you can manipulate GitHub from there, too.

This Sun Tracking CNC Machine Uses The Sun Instead of a Laser

We’ve all seen people goof around with a magnifying glass in the sun, but this project takes it to a new level. Cranktown City has uploaded this fantastically amusing project that is sure to impress. He built a cnc controlled engraving machine that uses the sun instead of a laser tube. As he explains in […]

The post This Sun Tracking CNC Machine Uses The Sun Instead of a Laser appeared first on Make: DIY Projects and Ideas for Makers.

Physical Control Panel Elevates Flight Sim Experience

Like so many of us, [pgsanchez] has been bitten by the flight simulator bug. It’s a malady that can only be treated, but never cured — and like so many hobbies, it has a nasty tendency to spawn more hobbies. A software developer by trade, [pgsanchez] is also adept with Arduino and electronics, and his blog post about the PGS-2 Flight Simulator Control Panel demonstrates his fine abilities well, as does the video below the break.

A player of Digital Combat Simulator, he grew tired of having to remember awkward key combinations to control the simulator. Flying a jet, even in a simulator, can require quick thinking bound with quick reflexes, so having a button to press, a switch to flip, or a knob to turn can be vastly superior to even the simplest keyboard based command.

An Arduino interfaces the buttons to the computer, and a white acrylic case is employed to keep all the parts flying in formation. Yes, a white case — with great care taken to allow the case to be backlit. The effect is excellent, and it looks like the panel would be right at home in the Sukhoi Su-25T that it’s designed to control in the game.

We appreciated the attention to detail in the panel, as even the gear status lights and flap indicators match those in the simulator, a nice touch! What more could [pgsanchez] build? We’d like to see! If you’re into flight sims and the like, you might be interested in this fully 3D printed flight sim controller.

Bring Precision to the Woodshop with an Electronic Router Lift

One of the knocks that woodworkers get from the metalworking crowd is that their chosen material is a bit… compliant. Measurements only need to be within a 1/16th of an inch or so, or about a millimeter, depending on which side of the Atlantic you’re on. And if you’re off a bit? No worries, that’s what sandpaper is for.

This electronic router lift is intended to close the precision gap and make woodworking a bit less subjective. [GavinL]’s build instructions are clearly aimed at woodworkers who haven’t dabbled in the world of Arduinos and stepper motors, and he does an admirable job of addressing the hesitancy this group might feel when tackling such a build. Luckily, a lot of the mechanical side of this project can be addressed with a commercially available router lift, which attaches to a table-mounted plunge router and allows fine adjustment of the cutting tool’s height from above the table.

What’s left is to add a NEMA 23 stepper to drive the router lift, plus an Arduino to control it. [GavinL] came up with some nice features, like a rapid jog control, a fine adjustment encoder, and the ability to send the tool all the way up or all the way down quickly. Another really nice touch is the contact sensor, which is a pair of magnetic probes that attach temporarily to the tool and a height gauge to indicate touch-off. Check the video below to see it all in action.

One quibble we have with [GavinL]’s setup is the amount of dust that the stepper will be subjected to. He might need to switch out to a dustproof stepper sooner rather than later. Even so, we think he did a great job bridging the gap between mechatronics and woodworking — something that [Matthias Wandel] has been doing great work on, too.

Edible Electronics Let Us Hear the Lamentations of the Chocolate Bunnies

Yet another Day of the Chocolate Bunnies has passed by, and what did you do to mark the occasion? You likely kicked back and relaxed, surrounded by whatever you gave up for Lent, but good for you if you mixed chocolate and electronics like [Repeated Failure] did. They created a completely edible chocolate Easter bunny that screams when bitten.

So obviously, the hardest part is figuring out something to build the circuit with that is both conductive and safe to eat. [Repeated Failure] spent a lot of time with carbon oleogel paste, which is made from natural oils and waxes. Not only was it less conductive than [Repeated Failure]’s skin, it came out pitch black and tasted like nothing, which kind of a bonus, when you think about it.

Then came the cake paint, which [Repeated Failure] laced with trace amounts of silver powder. While that worked somewhat better, a successful circuit would have likely required near-fatal amounts of the stuff. Yikes!

The winner turned out to be edible silver leaf, which is like gold leaf but cheaper. Ever had Goldschläger? Gold leaf is what’s suspended inside. The really nice thing about silver leaf is that it comes in thin sheets and can easily be cut into circuit traces with scissors and connected to I/O pins with copper tape. Be sure to check it out after the break, including [Repeated Failure]’s friend’s reaction to innocently biting the chocolate bunny’s ears off, as one tends to do first.

Think you’d rather hear plants giggle? Sure, it sounds cute, but it’s actually kind of creepy.

Paper Tape Reader Self-calibrates, Speaks USB

Input devices consisting of optical readers for punched paper tape have been around since the earliest days of computing, so why stop now? [Jürgen]’s Paper Tape Reader project connects to any modern computer over USB, acting like a serial communications device. Thanks to the device’s automatic calibration, it works with a variety of paper materials. As for reading speed, it’s pretty much only limited to how fast one can pull tape through without damaging it.

Stacked 1.6 mm PCBs act as an enclosure, of sorts.

While [Jürgen]’s device uses LEDs and phototransistors to detect the presence or absence of punched holes, it doesn’t rely on hardware calibration. Instead, the device takes analog readings of each phototransistor, and uses software-adjusted thresholds to differentiate ones from zeros. This allows it to easily deal with a wide variety of tape types and colors, even working with translucent materials. Reading 500 characters per second isn’t a problem if the device has had a chance to calibrate.

Interested in making your own? The build section of the project has all the design files; it uses only through-hole components, and since the device is constructed from a stack of 1.6 mm thick PCBs, there’s no separate enclosure needed.

Paper tape and readers have a certain charm to them. Cyphercon 4.0 badges featured tape readers, and we’ve even seen the unusual approach of encoding an I2C byte stream directly onto tape.

This DIY UPDI Programmer is Nice and Cheap

[Daumemo] likes experimenting with DIY electronics, and like many people, eventually ran across an AVR microcontroller with a Unified Program and Debug Interface (UPDI). One option is of course to purchase an UPDI programmer, but an even better solution was to make a DIY USB version from nice, cheap parts.

Programming an Attiny404 over the UPDI interface.

UPDI is an interface for external programming and on-chip debugging of microcontrollers, and [Daumemo]’s solution is based on the jtag2updi project. It combines an Arduino Nano (in this case, a clone) with a single resistor, a single capacitor, and a six pin angled header (with a cleverly bent pin) to enable programming UPDI devices over a USB connection. [Daumemo] is happy to report that the device works just fine in both Microchip Studio with AVRDUDE, or PlatformIO.

Is an Arduino Nano a bit overpowered in this role? Maybe, but the price is certainly right. There’s no need for a custom PCB either, since everything can be soldered direct to the Nano board. A matching 3D printed enclosure is about all that’s needed to make a robust and reliable DIY USB UPDI programmer out of a handful of parts, and that sounds good to us.

On the other hand, if you do find yourself making custom PCBs, you may be interested in another of [Daumemo]’s DIY projects: a printable structure to turn a rotary tool into a PCB drill press.

2022 Sci-Fi Contest: A Hand-Following Robot, Powered by Arduino

If there’s one thing audiences love in sci-fi, it’s a cute robot companion that follows the heroes around. If you want one of your own, starting with this build from [mircemk] could be just the ticket.

The build relies on the classic Arduino Uno microcontroller, which talks to a HC-SR04 ultrasonic sensor module and two infrared sensors in order to track a human target and follow it around. Drive is thanks to four DC gear motors, driven by a L293D motor driver, with a two-cell lithium battery providing power for everything onboard.

The robot works in a simple manner, following a hand placed in front of the robot’s sensors. First, the robot checks for the presence of an object in front using the ultrasonic sensor. If something is detected, the twin infrared sensors mounted left and right are used to guide the robot, following the hand.

It’s not a sophisticated algorithm, and it won’t really let your robot follow you down a crowded street. However, it’s a great project to learn on for beginners and could serve as a great entry into more advanced projects using face tracking or other techniques. Video after the break.

 

Hack a Day 13 Apr 21:00

CAT Is Not Your Average Meow-cropad

Are you completely over the idea of the keyboard in any flattish form and looking for something completely different for inputting your data? Or do you want a mega macropad for 3D design, GIMP or Inkscape work, or to use while relaxing with a nice first-person shooter? Then this ergonomic, double-fistable keyboard/controller mashup named CAT may be what you’re looking for.

Inside each of these slinky felines is pretty much what you’d expect to find — 25 or so switches and an Arduino Pro Micro. Interestingly enough, the switches are all lever-action and not push buttons. There are two breeds of CAT available to build or buy: one has 25 buttons, and the other has a joystick or trackball on the thumb between two upper and two lower buttons. You could have one type for each hand!

More information is available on the Lynx Workshop site, which is where you’ll also find tutorials and instructions for everything from the 3D printing to the electronics to the assembly and coding. There is even a bonus 3D modeling tutorial. Don’t want to invest the time to make your own CAT? These kitties are also available for pre-order. Claw past the break to check them out in action.

Looking for something with regular keyswitches? Oh, we have plenty of those.

Stress-Testing An Arduino’s EEPROM

Every time one of us flashes an Arduino’s internal memory, a nagging thought in the backs of our minds reminds us that, although everything in life is impermanent, nonvolatile re-writable memory is even more temporary. With a fixed number of writes until any EEPROM module fails, are we wasting writes every time we upload code with a mistake? The short answer is that most of us shouldn’t really be concerned with this unless we do what [AnotherMaker] has done and continually write data until the memory in an Arduino finally fails.

The software for this is fairly simple. He simply writes the first 256 ints with all zeros, reads them to make sure they are all there, and then repeats the process with ones. After iterating this for literally millions of times continuously over the course of about a month he was finally able to get his first read failure. Further writes past this point only accelerated the demise of the memory module. With this method he was able to get nearly three million writes before the device failed, which is far beyond the tens or hundreds of thousands typically estimated for a device of this type.

To prove this wasn’t an outlier, [AnotherMaker] repeated the test, and did a few others while writing to a much smaller amount of memory. With this he was able to push the number of cycles to over five million. Assuming the Arduino Nano clone isn’t using an amazingly high-quality EEPROM we can safely assume that most of us have nothing to worry about and our Arduinos will be functional for decades to come. Unless a bad Windows driver accidentally bricks your device.

Thanks to [morgan] for the tip!

Hack a Day 08 Apr 03:00