Tag Archives: Arduino nano

Maker mods his NERF blaster into a fully-functional Halo 5 MA5D


A DIY weapon for Humans vs. Zombies — with an ammo counter, scope and all!


Jeremy Chang is a big fan of Humans vs. Zombies (HvZ), a live-action game where players try to survive a post-apocalyptic world using soft toys like socks and foam dart guns. Well, in this case, the Maker decided to do something a little different and add another layer of roleplaying to his HvZ experience by modding his NERF blaster to resemble a Halo MA5D assault rifle.

K3aZrBE

This device boasts a number of impressive features, which range from a digital ammo counter to a functional scope. Based on the fictional United Nations Space Command weapon, the 3D-printed replica certainly looks ready to obliterate zombies.

pTvDAMn

In order to get the iconic shape of the MA5D, Chang used some 3D-printed part to upgrade his blaster. On the inside, Chang employed an Arduino Nano (ATmega328) to detect trigger pulls, a few reed switches in the chamber to determine the current ammo count and an Adafruit 128×64 OLED lit with a NeoPixel LED. (The color on the screen change as the percentage of ammunition goes to zero.) The display even has a functional mission timer and will reveal if the clip is not fully closed. Aside from all that, a 5V scope adds a nice finishing touch to the MA5D prop.

PR0LRXI - Imgur.gif

Intrigued? You can check out Chang’s entire build here.

Coolest dorm room of all-time?


Inspired by Derek Low’s Berkeley Ridiculously Automated Dorm, one undergrad at Rice University decided to add some smarts to his room as well.


During his freshman year at UC Berkeley, which as you could tell by the old tunes of Justin Bieber tunes in the video below dates back to 2012, Derek Low set out to create the most ridiculously automated dorm room in the school ever. After working diligently on the project for three months and shelling out several hundred dollars, BRAD (the Berkeley Ridiculously Automated Dorm) came to fruition. The student outfitted his living quarters with remote-controlled lighting, music and curtains, voice activation, as well as a number of other features like a low-light ‘romance mode’ and a ‘party mode’ complete with a fog machine, strobe lights and disco ball.

The now four-year-old project recently inspired another college student to pursue something similar. Rice University undergrad Jordan Pole built a modular system — aptly dubbed RRAD — employing three NRF24L0+ transceivers, two Arduino Nanos (ATmega328) and a Raspberry Pi. The setup consisted of three different types of nodes: actuation (for switching relays and solenoids), sensory (for measuring and reporting room brightness, temperature and motion), and hub (for hosting the control panel, recording room data, providing an external interface for live updates and coordinating information between the other two nodes). What’s more, the hub also allows Poles to manage things throughout his dorm using an Android phone with Tasker.

938551427209789064

To no surprise, this neat project went on to become a quarterfinalist in last year’s Hackaday Prize. Since then, Poles has been developing an improved automation system, equipped with voice recognition. You can read all about it here.

Add a touchscreen to your oscilloscope


This Maker replaced his oscilloscope’s knobs and buttons with a touch interface. 


Igor, the author of the “More Than User” blog, decided that his unwieldy button and knob interface on his oscilloscope wasn’t good enough. He chose to enhance it with a touchscreen ripped out of a Preistigo 7” tablet, using an Arduino Nano (ATmega328) to convert these signals into something that the scope could understand.

SAM_4383

This stated goal of this project was to “remove keyboard completely, instead add touch screen to control oscilloscope.” As seen in the video below, the project is a success, and Igor can control quite a few scope parameters with the press of an onscreen button or the swipe of a finger. As he puts it, he “managed to emulate keyboard data with ATmega328, then I just mapped all the codes that was used to control DSO [digital storage oscilloscope], and bascially that’s all.”

front3

Despite his humble description of the project, actually implementing this solution involved quite a bit of work. The COM port wasn’t working correctly, so he had to find and analyze the keyboard interface pins and revers-engineer the protocol for it. He recommends getting a logic analyzer for tasks like this, as the job will be much easier, especially since he was working on the same scope that he was using for analysis!

If that weren’t enough, the touchscreen itself had to be set up, including multiple broken component issues that had to be dealt with. In the end, it now works well, and is mounted on a nice wooden stand. The Nano is displayed proudly on the front, with wires radiating toward the touchscreen, which should be useful for troubleshooting and modification in the future!

The world’s tiniest RGB LED cube


This 4x4x4 cube measures only 2cm on each side.


If you read Atmel’s blog, chances are that you’ve seen a programmable LED cube. Given the amount of soldering involved, adequate space between each light would seem like a necessity. Hari Wiguna, however, decided that he could make a 4x4x4 cube measuring only 2cm on each side. In other words, as seen in the first video below, it would roughly fit on a quarter.

This build took Wiguna “months to build, but it’s finally done,” and, unless he hears differently, it is the smallest 4x4x4 LED cube in existence. Soldering, as shown in the second video, seems that it was quite a nightmare, but at least he had a custom PCB on which to set his LED stacks once they were assembled. For work that small, he needed a fine-tip soldering iron, but had to actually build his own set of jigs to assemble everything correctly.

The circuit, seen in the third video uses an Arduino Nano (ATmega328) to control the 64 RGB LEDs used. It’s a very clever setup, modeled after the Charliecube design found here. The four stacked LEDs are each rotated 90 degrees to each other, allowing its diode property to separate out each light’s signal.

The resulting animations are quite impressive — amazing for something this size! Check out the three clips below for even more background on this tiny wonder.

This Roomba sucks up dirt to the Jaws theme song


Maker Marcel Varallo doesn’t just vacuum, he goes to war against the dust mite.


Lucky for those who hate sweeping and vacuuming floors, there are robotic devices that can take care of these tedious tasks for us. And although Roombas do a fairly decent job in cleaning our homes, like with most things, it could do better. This is why Marcel Varallo decided to upgrade his iRobot 530 Series into a dust mite-battling vehicle that he calls Doomba.

IMG_20160130_202259.jpg

Ever since the Roomba made its debut, hackers have loved getting their hands on the bots and modifying them to suit other purposes. Initially, Varallo simply wanted to “jazz up the default speed” of his roving gadget, but why stop there? He proceeded to make a few more modifications, such as mounting a webcam to the front and adding a UE Boombox that emits the iconic Jaws theme and the Flight of the Valkyries as it sucks up its prey.

A Raspberry Pi with Wi-Fi enables webcam hosting, remote triggering of tasks and schedule management, while wireless control is handled through a PS2 receiver dongle and an Arduino Nano (ATmega328). Varallo even included a capacitor bank to prevent brownouts from the Doomba’s SPI port.

“By the end of all this it had blown out to something much bigger than I intended and was more work than I would have liked,” the Maker admits. Those wishing to mod their own robotic vacuum should check out Varallo’s detailed project page.

 

 

Automate your curtains with Arduino


Hate getting up to close the curtains? This Maker has developed a Bluetooth-controlled solution for the lazy.


Curtains are quite useful for privacy and blocking excessive sun, but who has the time or energy to get off of the couch and close them? Certainly not engineer Jordan Tallent, who decided to instead design and build his own wireless curtain controller using an Arduino Nano with a Bluetooth module.

FRDDZJLIH9EQMWK.MEDIUM

Tallent soldered the Nano (ATmega328) a stepper driver and the Bluetooth module onto a printed circuit board. Though he says that the results were a little messier than he would have liked, he wanted it to have a small footprint, which he seems to have accomplished.

The motor is physically attached to the wall below the curtain rod, along with a free pulley on the other side of the window. To pull the curtains, a piece of fishing line is wrapped around a pulley mounted to the stepper motor as well as the free pulley on the other side. Resourcefully, binder clips were tied to this fishing line and clipped to the curtains on opposite sides of the “string circuit,” allowing both to open or close depending on the motor’s direction.

FI1PBU4IEOP8IDZ.MEDIUM

Tallent intends to eventually write an Android app for his phone and implement clock functionality via a real-time clock chip. For now he’s using a communication program called Bluetooth spp tools pro to communicate with his device. This enables him to type “o” to open the curtains and “c” to close them, which seems to work nicely in the demonstration video below.

This machine can chop veggies like a pro


Simone Giertz is back — this time with a machine that can chop broccoli, lettuce, tomatoes, carrots, zucchini, cucumbers and just about anything.


Already equipped with several quirky machines that take care of most of her morning routine (from getting out of bed to brushing her teeth to feeding her breakfast), the innovative and always hilarious Simone Giertz has taken her ingenuity to the next part of the day: lunch.

CWXa2rsUYAAYzWI

That’s because the Maker, who happens to be a lifelong vegetarian, has developed a terrifyingly awesome Chopping Machine. And like her other inventions, the gadget was designed to automate a particular task that would otherwise require spending time and effort.

Why, you ask? “Because I’m lazy (?),” Giertz says. “I’ve spent a significant amount of time chopping, mincing and dicing all varieties of vegetables. Eating healthy is boring enough in itself, why does preparing healthy food have to be such a tedium?”

tumblr_inline_nzgnh42aRJ1s3yuca_500

The Chopping Machine is exactly what it sounds like: a mechanism that can literally chop veggies. It consists of an Actobotics system, two knives and a pair of servo motors, all driven by an Arduino Nano (ATmega328).

The device itself is relatively simple, yet pretty dangerous nevertheless. (Translation: don’t try this at home!) Two servo motors lift the knife up and a spring at the bottom pulls it right back down. With it, Giertz can now slice broccoli, lettuce, tomatoes, carrots, zucchini, cucumbers and pretty much anything else… even the board itself.

Intrigued? Terrified? Fascinated? See it for yourself below!

 

 

Tell time on this Arduino Nano-driven Berlin Clock


And you thought reading an analog watch was tough…


The Mengenlehreuhr, which in German means “Set Theory Clock,” is also known simply as the Berlin Clock. It is the first clock in the world to tell time via illuminated colored sections, and was initially installed in 1975. It keeps time in a 24-hour format, with four rows of LEDs, representing hours on the top two rows, and minutes on the two rows below that, and a blinking second “hand” on top. 40 years later, and we have the technology to replicate this clock at home using readily available and inexpensive technology.

F0VY2EDIHAWAOZY.LARGE

Maker “mr_fid” decided to do just that using an Arduino Nano (ATmega328), a real-time clock (RTC) unit and three eight-bit shift registers. These shift registers combined give 24 individual outputs, equalling the number of lighting sections in the original clock.

As the hours, minutes, and seconds don’t really match up with our base 10 numbering system, or even a computer’s binary system, programming isn’t as straightforward as some projects featured here. He includes an explanation, as well as the code he used, in his linked Instructables article.

FZZZUUBIHAWALX0.LARGE

‘Fid doesn’t go into all of the mechanical details of his build, preferring to let his drawings and photos do most of the talking. One interesting feature to note is his use of frosted acrylic material on top of the LEDs. Using a material like this can help soften LED or other lights to make illumination more even. This diffusion effect that can be used for artistic purposes as seen here, or for more practical reasons like lighting in a computer vision system.

Intrigued? You can head over to the project’s page here.

Yes, you can play Super Hexagon in an Arduino


This game is FANtastic!


The game Super Hexagon was released on iOS in September of 2012, and later ported to Windows, OS X, Android, BlackBerry and Linux. It was not, however, ported for play on a… fan until 2015.

Myya4ZLMqtAWeXSkg3xxHXBoN38iJLqLsJe841omtFo

Alejandro J. Cura, with help from friends Jorge Crowe and Cristian Martinez, decided to use an Arduino Nano (ATmega328), literally attached to a fan blade, to display a version of this game in a more “circular” format.

yARxxQf_tTAWKVJNxDiOenRUWUvrdn4hqm4PMrnVaDo

The Nano controls a series of LED lights mounted to a custom printed circuit board, so when they are spun in a circle, they appear to draw bent solid lines around the middle of the fan. This type of display is known as persistence of vision (POV), and tricks the eye into seeing a quickly moving point as a solid line. For the game gaps in these lines are made by carefully timing when the lights go on and off, using a hall effect sensor to measure rotational speed (similar to how a bike speedometer works).

dW2tFQCIUcD52rguD5CfzmbxMGl_njsFn5cGiribYI8

Cura’s device made its successful world premeire in Buenos Aires, Argentina at Casa Abasto, the home of his local hackersapce. If you’d like to build your own, the source code and schematics are posted here. What’s more, the Maker has plans for future improvements on the design itself, as well as plans to expand the documentation. Until then, see it in action below!

Who’s winning the Arduino popularity contest?


You think Arduino is popular? Wait until you see some of the numbers our friends at codebender have compiled.


If you’ve ever wondered which Arduino boards are the most popular, which are the most used processors, which are the most common Libraries (and Example) and how are they being used, you’ll appreciate this post from codebender founder Vasilis Georgitzikis. For those of you who may not be familiar with the site, codebender is an online Arduino IDE that enables you to program your ‘duino on the cloud.

Imagen-5.png

“At codebender we have a unique insight on this, since we have more than 40,000 people using codebender to write Arduino code, and more than 100,000 sketches. This gives us the ability to gather anonymous data on board usage, popular boards, etc. And since we host more than 500 built-in libraries, we also get a great view on the preferred Libraries as well,” Georgitzikis explains.

The Most Popular Kid on the Block

First, codebender took a look into the popularity of each Arduino board. The easiest way to count this is to take a look at which board people use most often. They counted how many times people programmed/”flashed” a particular board (say, an Arduino Uno) versus the total number of times someone programmed a board on codebender during September (which was 123,967 times).

Before diving into the data, a few things should first be noted:

  • When you look at this, keep in mind that codebender only supports AVR-based boards right now, so boards like the Due, Zero and Galileo/Edison are not counted here.
  • This research is based on usage on codebender, not across all Arduino users. But there’s no reason to think that this would be any different, so it’s fair to say that what is seen here applies to the Arduino community at large.
  • There is a caveat to the above — codebender has some partnerships with hardware manufacturers who suggest codebender for their boards, so naturally there will be slightly inflated numbers for these.

So, without further ado, here are the results (showing only boards with more than 1% usage):

image1

Wow! Everyone knows Arduino Uno is the most popular board, but did you know that in more than half of the instances an Arduino is programmed, it’s an Arduino Uno?

“I also personally didn’t expect the Arduino Nano to be so popular, let alone #2! I’m more of a Pro Mini/Pro Micro guy myself, since I’m a bit of a SparkFun nerd. A reason for this spike could be the recent surge of ridiculously affordable Arduino Nano-compatible boards from China, using the very inexpensive CH340G chip for the USB-to-Serial instead of the more common FTDI chip,” Georgitzikis adds.

Another thing worth mentioning is the number of Duemilanove boards still in existence (remember, they are six years old), which are still almost as popular as the Leonardo.

“The Leonardo, by the way, is much lower than I expected. It goes to show that issues with the way the Leonardo’s programming was implemented – the less-than-stellar robustness when programming and all the inconsistencies it brings with existing code and Libraries – outweigh the extra features and lower price,” Georgitzikis shares. “Long live the Uno!”

(By the way, notice that 4 out of the 13 most popular boards are manufactured by SparkFun. Not bad, huh?)

Official Boards Only

Okay, as mentioned above, some boards are bound to be a bit inflated because their manufacturer suggests codebender as the tool of choice for Arduino coding. Let’s look at the same numbers, this time using only the official Arduino boards.

According to codebender, here are the results (showing only boards with more than 1% usage):

image2

Old But Gold

For its last chart, the codebender crew thought it would be interesting to see the most popular microprocessor chip in Arduino land.

On the left chart, they measured the number of boards that use a certain chip. Out of the 80 boards that codebender supports, how many boards use each chip? The right chart reveals the number of times an Arduino is programmed, so you can see how many times people programed a board with a certain processor (i.e. ATmega328), compared to the total number of times people programmed a board.

alt text

And the winner is, of course, the ATmega328 by a landslide.

“First, we see that a good third of the boards supported in codebender are using the ATmega328. ATtiny in second place seems weird at first, but given that there are around 20 different boards for the various ATtiny chips and configurations, it makes sense,” Georgitzikis writes. “And then, you have the ATmega32U4 devices. There are a lot of independent manufacturers making boards based on this chip, but as we saw on the previous chart (and as you can see on the Processor Usage chart above), they end up not being used too frequently.”

As you can see on the Processor Usage chart, more than four out of five times someone programs an Arduino, it’s using an ATmega328. Isn’t that simply amazing? (We sure think so!)

Editor’s note: These insights are based on anonymous usage data gathered by codebender. 

[h/t SparkFun]