Arduino Comes To The Raspberry Pi, Linux ARM Devices

Arduino is the perfect introduction to microcontrollers and electronics. The recent trend of powerful, cheap, ARM-based single board Linux computers is the perfect introduction to computer science, programming, and general Linux wizardry. Until now, though, Arduino and these tiny ARM computers have been in two different worlds. Now, finally, there are nightly builds of Arduino IDE on the Raspberry Pi and other single board Linux computers.

The latest Arduino build for ARM Linux popped up on the arduino.cc downloads page early this week. This is the result of an incredible amount of work from dozens of open source developers across the Arduino project. Now, with just a simple download and typing ‘install’ into a terminal, the Arduino IDE is available on just about every single board Linux computer without having to build the IDE from source. Of course, Arduino has been available on the Raspberry Pi for a very long time with sudo apt-get install arduino, but this was an older version that cannot work with newer Arduino boards.

Is this distribution of the Arduino IDE the same you would find on OS X and Windows? Yep, everything is the same:

While this is really just arduino.cc improving their automated build process and putting a link up on their downloads page, it does make it exceptionally easy for anyone to set up a high school electronics lab. The Raspberry Pi is almost a disposable computing device, and combining it with Arduino makes for a great portable electronics lab.

PJON, Fancy One Wire Arduino Communications Protocol For Home Automation

PJON, pronounced like the iridescent sky rats found in every city, is a cool one wire protocol designed by [gioblu].

[gioblu] wasn’t impressed with the complications of I2C. He thought one-wire was too proprietary, too complicated, and its Arduino implementations did not impress. What he really wanted was a protocol that could deal with a ton of noise and a weak signal in his home automation project with the smallest amount of wiring possible.

That’s where is his, “Padded Jittering Operative Network,” comes in. It can support up to 255 Arduinos on one bus and its error handling is apparently good enough that you can hold an Arudino in one hand and see the signals transmitted through your body on the other. The fact that a ground and a signal wire is all you need to run a bus supporting 255 devices and they’ll play nice is pretty cool, even if the bandwidth isn’t the most extreme.

Aside from the cool of DIY protocols. We really enjoyed reading the wiki describing it. Some of the proposed uses was running your home automation through your ducting or water pipes (which should be possible if you’re really good at isolating your grounds). Either way, the protocol is neat and looks fun to use. Or check out PJON_ASK if you want to do away with that pesky single wire.

Dirt-Cheap USB Arduino Hack From the Past

Mass production is a wonderful thing. Prices fall, and hobby hackers get cheap gear. The mind then wanders towards what can be done with it. So it’s little wonder that someone like [Aaron Christophel] would try to repurpose those sub-$3 AVR programmers that are all over eBay (translated poorly out of German here, but demonstrated in the video embedded below).

[Aaron] didn’t have to do much, really. The only trick is that you’ll first need to re-flash the existing ISP firmware with one that lets you upload code to the device itself over USB. If you don’t have an Arduino on hand to re-flash, buy at least two of the cheap programmers — one to program the other ones. Once you’ve done that, you have essentially an Arduino with limited pinout and two onboard LEDs, but in a nice small form-factor and with built-in USB. [Aaron] even provides an Arduino boards.txt file to make it all work smoothly within the IDE.

Continue reading “Dirt-Cheap USB Arduino Hack From the Past”

What’s Tiny, Has Eight Legs, and Acts Like an Arduino?

Back in the late 1970s, comedian Steve Martin had a bit about “Let’s get small!” Over on Hackaday.io, [Daniel Grießhaber], has taken that call to heart. He’s been working on DIL-Duino, a minuscule form factor Arduino in an 8-pin DIP format.

Built with an ATtiny85, the board has an area of just under 75 square millimeters (less than 8 mm x 10 mm). If you add the USB port, it still comes in at just over 144 square millimeters. [Daniel] found other small Arduino boards like the Olimexino-85s and the Nanite are not as small as his design.

The module has a QFN CPU and castellated holes around the perimeter for mounting. With pin headers, this would easily fit into a breadboard (as [Daniel] shows) or you could mount it directly to another board like a surface mount device. In fact, that’s the reason for using castellated holes: you can inspect that the solder joint at the mating SMD pad is good. You sometimes hear the technique called half-vias or leadless chip carrier.

If you note, [Daniel] used an oversized board with full holes around the perimeter and then had the board maker score the board, so the holes are cut in half. This is a better technique than trying to drill half holes on the board edge, which is difficult to do.

Naturally, this isn’t the first tiny Arduino we’ve seen. If you are an ARM fan, there’s some little bitty cards for it, too, although not quite as small as DIL-Duino.

Arduino Nano Runs Battery Spot Welder

Soldering might look like a tempting and cheap alternative when building or repairing a battery pack, but the heat of the iron could damage the cell, and the resulting connection won’t be as good as a weld. Fortunately, though, a decent spot welder isn’t that tough to build, as [KaeptnBalu] shows us with his Arduino-controlled battery spot welder.

spot_welder_zoomWhen it comes to delivering the high currents necessary for spot welding, the Arduino Nano is not necessarily the first thing that comes to mind. But the need for a precisely controlled welding pulse makes the microcontroller a natural for this build, as long as the current handling is outsourced. In [KaeptnBalu]’s build, he lets an array of beefy MOSFETs on a separate PCB handle the welding current. The high-current wiring is particularly interesting – heavy gauge stranded wire is split in half, formed into a U, tinned, and each leg gets soldered to the MOSFET board. Welding tips are simply solid copper wire, and the whole thing is powered by a car battery, or maybe two if the job needs extra amps. The video below shows the high-quality welds the rig can produce.

Spot welders are a favorite on Hackaday, and we’ve seen both simple and complicated builds. This build hits the sweet spot of complexity and functionality, and having one on hand would open up a lot of battery-hacking possibilities.

Continue reading “Arduino Nano Runs Battery Spot Welder”

Does the World Need an FPGA Arduino?

What would you get it you mashed up an FPGA and an Arduino? An FPGA development board with far too few output pins? Or a board in the form-factor of Arduino that’s impossible to program?

Fortunately, the ICEZUM Alhambra looks like it’s avoided these pitfalls, at least for the most part. It’s based on the Lattice iCE40 FPGA, which we’ve covered previously a number of times because of its cheap development boards and open-source development flow. Indeed, we were wondering what the BQ folks were up to when they were working on an easy-to-use GUI for the FPGA family. Now we know — it’s the support software for an FPGA “Arduino”.

Icezum-rev1-1607-img1-peq_thumbnail

The Alhambra board itself looks to be Arduino-compatible, with the horrible gap between the rows on the left-hand-side and all, so it will work with your existing shields. But they’ve also doubled them with pinheaders in a more hacker-friendly layout: SVG — signal, voltage, ground. This is great for attaching small, powered sensors using a three-wire cable like the one that you use for servos. (Hackaday.io has two Arduino clones using SVG pinouts: in SMT and DIP formats.)

The iCE40 FPGA has 144 pins, so you’re probably asking yourself where they all end up, and frankly, so are we. There are eight user LEDs on the board, plus the 28 I/O pins that end in pinheaders. That leaves around a hundred potential I/Os unaccounted-for. One of the main attractions of FPGAs in our book is the tremendous availability of fast I/Os. Still, it’s more I/O than you get on a plain-vanilla Arduino, so we’re not complaining too loudly. Sometimes simplicity is a virtue. Everything’s up on GitHub, but not yet ported to KiCad, so you can tweak the hardware if you’ve got a copy of Altium.

We’ve been seeing FPGA projects popping up all over, and with the open-source toolchains making them more accessible, we wonder if they will get mainstreamed; the lure of reconfigurable hardware is just so strong. Putting an FPGA into an Arduino-compatible form-factor and backing it with an open GUI is an interesting idea. This project is clearly in its very early stages, but we can’t wait to see how it shakes out. If anyone gets their hands on these boards, let us know, OK?

Thanks [RS] for the tip!

Wood Stove Runs on Arduino Power

Ahh, sweet scope creep! Usually it’s the death of a nice, simple little hack. But once in a hundred times, a small hack doesn’t get buried under the extra features, but instead absorbs them in stride and blossoms into a beautiful system. [rockfishon]’s Arduino-powered wood stove controller is one of these beautiful exceptions. (OK, we’d admit that it could use a fancier faceplate.)

He started off simply enough, wanting to connect a thermocouple to an Arduino, read out the value, and issue an alarm when the temperature got too high. But who could stop there? Just one air-baffle servo away from a closed-loop heating control system? So [rockfishon] added a display and a few more buttons and has a system that will keep his wood-burning stove running at exactly the right temperature, even overnight when nobody’s around to tend it. As a bonus, everything is logged for later analysis.

The code is relatively straightforward, and can be found in this Gist. If you’d like to build your own, you’ll need an Arduino Mega and can then get the control board made for you at OSHPark. Judging from the comments on the Hackaday.io project page, a couple people have already tried this out. We’ve seen other wood-stove monitoring hacks before, but this is the first we’ve seen that closes the control loop. Very cool.