Coding A Dynamic Menu For Character LCDs On Arduino

These days, there’s a huge variety of screens on the market for use with microcontrollers. OLEDs and graphic LCDs abound, while e-ink devices tempt the user with their clean look and low energy consumption. However, for many purposes, the humble HD44780 character LCD does the job just fine. If you’re using such a device, you might want to implement a simple menu system, and in that case, [MyHomeThings] has you covered.

The menu code is simple to modify and implement. It allows the user to define a certain number of menu items, along with button labels and functions to be executed with button presses. By default, it’s set up to work with  left and right function buttons, with up and down buttons to toggle through the menu’s various entries. This suits the commonly available Arduino shields which combine a 16×2 character LCD with a set of four tactile buttons in a cross formation. However, modifying the code to use an alternate button scheme would be simple for those eager to tweak things to their liking.

For the absolute beginner to programming, it’s a great way to put together a simple interface for your microcontroller projects. It’s the sort of thing you might use if you’d built a do-everything Arduino handheld device, as we’ve seen built before. If you find text menus too archaic for your purposes, though, be sure to sound off with your favourite solutions in the comments.

Arduino Announces Board Based On Raspberry Silicon

The Raspberry Pi Pico burst onto the microcontroller scene last month with much fanfare, and is already popping up in projects left, right and center. Notable for its high clock speed and exciting IO features, it’s a breath of fresh air in a market slowly weaning itself onto ARM architectures and away from 8-bit staples. Not one to miss out on a slice of the action, Arduino have announced their own upcoming board based on the Pico’s RP2040 chip.

The board is named the Arduino Nano RP2040 Connect, a moniker that’s not just a mouthful but likely to be confused with existing Arduino Nano products. It sports several differences to the Raspberry Pi Pico, namely packing WiFi, Bluetooth, and an IMU on board which should make developing motion-sensitive and IoT projects easier, particularly in cases where the Pico’s flexible IO could be useful.

Naturally, Arduino IDE integration will be a major plus point that gets many makers on board, and we can imagine there will be swift development of libraries leveraging the RP2040’s PIO subsystem. If you still haven’t gotten the low down on the Raspberry Pi Pico yet, though, never fear – our own [Elliot Williams] can tell you everything you need to know!

[Thanks to Darrell Flenniken for the tip, via Tom’s Hardware]

Upgrading An Old MIG Welder Wire Feeder With Arduino

Older industrial equipment is often a great option if you’re on a budget, and you might even be able to add some premium features yourself. [Brett] from [Theoretically Practical] has done with his old MIG welder, adding premium control features with the help of an Arduino.

The main features [Brett] were after is pre-flow, post-flow, and a spot welding timer. Pre-flow starts the flow of shielding gas a moment before energizing the filler wire, while post-flow keeps the gas going after the weld is complete. This reduces the chances of oxygen contaminating the welds. A spot welding timer automatically limits welding time, enabling consistent and repeatable spot welds.

The Miller S-22A wire feeder can have these features, but it requires an expensive and difficult to find control unit. All it does is time the activation of the relays that control the gas flow, power, and wire feeder, so [Brett] decided to use an Arduino instead. The welders control circuit runs at 24V, so an optoisolator receives the trigger signal, and relays are used for outputs. Potentiometers were added to the original control panel, and all the wiring was neatly fitted behind it. The upgrade worked perfectly and allowed [Brett] to increase the quality of his welds. See the video after the break for the full details.

Inverter welders can be picked up for ridiculously cheap prices, if you’re willing to live with the trade-offs. We’ve also seen some other DIY welder upgrades, on small and large machines.

Arduino Learns The Martial Arts With Nunchucks Input Device

There is a boring part of every computer introduction class that shows how a computer is made up of input, output, and processing. Maybe it wouldn’t be so boring if the input device was a nunchuck. [Brian Lough] thinks so and he belligerently asserts that nunchucks are the best input device ever. With a simple connection to a Wii controller and an associated library, you get access to an analog joystick, two buttons, and an accelerometer.

The nunchuck is meant to plug into a Wii controller and the connection is I2C, so that’s trivial to interface to an Arduino or other small microcontroller. The only issue is making the connection. We might have just snipped the wires, but [Brian] prefers to use a small breakout board that plugs into the stock connector and provides solder points for your own cable. There are options for the breakout boards, and [Brian] has his own design that you can get from OSHPark for about a buck for three boards. You can also just jam wire into the connector, but that’s not always robust.

Continue reading “Arduino Learns The Martial Arts With Nunchucks Input Device”

Arduino Wannabe Should Have Used A 555. Oh Wait, It Does.

It’s a little known secret that when the Hackaday writers gather in their secret underground bunker to work on our plans for world domination, we often take breaks to play our version of the corporate “Buzzword Bingo”, where paradigms are leveraged and meetings circle back to loop in offline stakeholders, or something like that. Our version, however, is “Comment Line Bingo”, and right in the middle of the card is the seemingly most common comment of all: “You should have used a 555,” or variations thereof.

So it was with vicious glee that we came across the Trollduino V1.0 by the deliciously named [Mild Lee Interested]. It’s the hardware answer to the common complaint, which we’ll grant is often justified. The beautiful part of this is that Trollduino occupies the same footprint as an Arduino Uno and is even pin-compatible with the microcontroller board, or at least sort of. The familiar line of components and connectors sprout from the left edge of the board, and headers for shields line the top and bottom edges too. “Sketches” are implemented in hardware, with jumpers and resistors and capacitors of various values plugged in to achieve all the marvelous configurations the indispensable timer chip can be used for. And extra points for the deliberately provocative use of Comic Sans in the silkscreen.

Hats off to [Lee] for a thoroughly satisfying troll, and a nice look at what the 555 chip can really do. If you want a more serious look at the 555, check out this 555 modeled on a breadboard, or dive into the story of the chip’s development.

Make Room For A New Arduino Competitor – With Native Brainf*ck!

With so many smaller and more capable microcontroller boards on the market it’s now fairly safe to say that the classic Arduino footprint and form factor is rather outdated. That’s not to say that there’s no fight left in the old contender though, and to prove it here’s a new platform in the familiar style set by the venerable Atmel-based board. [Eduardo Corpeño]’s Brainfuino is an Arduino competitor that runs everyone’s favourite esoteric programming language, Brainf*ck. (Keeping it SFW, folks.)

And in case you mistake it for a Brainf*ck emulator on a PCB then stand ready to be corrected, for this board runs the language natively in a Brainf*ck softcore on a Lattice MachXO2 FPGA. This is the real deal, on which only a true genius or masochist would dare to code.

The board itself is very neatly executed with a graphical style that presents more than a nod to the original Arduino. On this board is the FPGA, 256 kB ROM and 138 kB RAM, an STM32 to provide a USB serial port and an analogue input, and a level shifter to provide Arduino-style 5 V logic on the pins. We can see it’ll provide hours of fun to anyone interested in learning Brainf*ck, but besides that it has potential as an Arduino-shaped FPGA board. We like the joke, we like the graphical and engineering design, but underneath that lies quite the technical achievement.

Brainf*ck has made it to Hackaday before, not least in this jaw-dropping relay computer.

Hackaday Podcast 100: Arduino Plays CDs, Virtual Reality In The 60s, And Magical Linear Actuators

Hackaday editors Elliot Williams and Mike Szczys kick off the first episode of the new year with the best hacks the internet has to offer. There’s a deep dive into water-level sensing using a Christmas tree as an excuse. We ooh and ah over turning a CD-ROM drive into a CD player (miraculous tech of the previous century?). Do you have any use cases for ATtiny oscillator calibration registers? We look in on a hack that makes it dead simple to measure and set their values. The episode finishes up with a discussion of the constantly moving goal posts of virtual reality.

Take a look at the links below if you want to follow along, and as always, tell us what you think about this episode in the comments!

Direct download (~65 MB)

Places to follow Hackaday podcasts:

Continue reading “Hackaday Podcast 100: Arduino Plays CDs, Virtual Reality In The 60s, And Magical Linear Actuators”