Tag Archives: Arduino

This Mecanum wheel robot has some serious parallel parking skills


Build an Arduino-based, Bluetooth-controlled Mecanum wheel robot that can move in all four directions, without rotating itself. 


Mecanum wheels have additional secondary rollers offset at an angle. These allow for a device or robot equipped with four of them to move in any direction, even directly left and right depending on which combination of four wheels is actuated. If you’ve never seen this sliding locomotion method before, be sure to check out the video below to see just how this robot works. Although only shown traveling in straight lines there, these type of wheels are also capable of rotating a vehicle.

FZIGX0BIGZGRI72.MEDIUM

According to the author of this project, a Warsaw, Poland-based Maker named Adam, “Since I can remember I always wanted to build a mecanum wheel robot. The Mecanum wheel robotic platforms available on the market were a little too expensive for me so I decided to build my robot from scratch.”

His build is simple but elegant, with two pairs of motors attached to each other via metal tubing, then fastened to a simple chassis made out of a rectangular piece of plastic. As needed for this type of locomotion, wheels are spaced so that the smaller rollers are all pointing toward the center of the bot.

FWJYI30IGZGVDU5.MEDIUM

The Maker used an Arduino Mega (ATmega2560) along with a Bluetooth module that enables him to wirelessly control the robot using an Android app. The electronic system is equipped with two power sources: an 11.1V 1300 mAh LiPo for supplying the DC motors and a 7.4V 1800 mAh LiPo for the ‘duino. Adam explains what is physically happening in his Instructables article, as well as how the code generally works. If you’d like more details on his code, the full program is available on GitHub.

A CNC machine made from old furniture and printer parts


Goes to show that one man’s trash is another Maker’s treasure! 


Computer-controlled tools are a welcome addition to any garage; however, they usually cost hundreds or even thousands of dollars. On the other hand, you could just build your own CNC router using chipboard (aka particle board) recycled from an old piece of furniture, motors from an optical drive, a PC power supply, and, of course, an Arduino Uno (ATmega328).

cnc_v0_6_026_1920x1080

Norbert “HomoFaciens” Heinz describes the build on his site and in the excellent 0.6 video below, as well improvements he made to it in the following 0.6.1 video.

The DIY CNC router is meant for mostly two-dimensional parts as the vertical axis is controlled by a normal hobby servo. The horizontal axes are each controlled with 3mm threaded rods that rotate inside of brass nuts that are soldered in place using a candle (seriously). These rods are handled by the optical drive motors with encoders made from optical sensors and disks with teeth cut out of metal.

cnc_v0_6_018_1920x1080

It’s really an amazing display of what one can do with simple tools and materials, and an incredible amount of ingenuity! If that wasn’t impressive enough, he also wrote the control software, consisting of an Arduino Sketch and a Linux program that transmits motor commands over USB.

For another interesting trash build, check out this router made from PC parts. It’s available as a kit, so you won’t have to cut up your furniture to make it!

[h/t Hackaday]

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]

Maker builds her own robotic Wheatley


Hey Portal fans, who wouldn’t want their own Wheatley capable of talking and moving?


Wheatley is a fictional artificial intelligence from the Portal 2 video game franchise. And like any true fan, Maker Genevieve Bee thought it would be cool to build an interactive replica of her own from scratch, complete with both sound and movement.

IMG_5026

Wheatley’s body is comprised of blue insulation (XPS) foam, foamed PVC and epoxy putty. For its iconic glowing eye, the Maker used parts of a flashlight, a plastic CD case, some LEDs and a hexagonal plate she made in Photoshop. Meanwhile, a Velleman kit wired to an Adafruit Sound Board and speaker enables the LEDs to flash in unison as Wheatley talks.

20151123_130718

Wheatley also has an an Arduino Uno (ATmega328) for a brain, which drives three servos. Two are responsible for moving the eye, while another allows the lid to to open and close. She even created a joystick controller for operating the head and eyelids.

Feeling inspEYEred? Check out the project’s page for more, or see it in action below.

 

Turning an NES into the ultimate 8-bit game console


This system transforms 8-bit side-scrolling console video games into totally immersive multiplayer experiences.


There’s no denying the nostalgic appeal of blowing into a Super Mario Bros cartridge, slipping it into your Nintendo Entertainment System and immersing yourself in an 8-bit world of blocky graphics and chiptunes. The side-scrolling game that we all grew up playing in our family rooms is pretty limited, though. You constantly move forwards, jumping over obstacles and hitting blocks, until you get to the end of a level — that’s about it. There’s no going back, you can’t zoom out and you can only have a maximum of two players.

Image1

What if there was a way to transform the beloved game into a collective, totally immersive experience? That’s exactly what a group from ETH Zurich and Disney Research set out to accomplish by developing the world’s first cooperative 8-player, 8-bit NES capable of continuous, panoramic side-scrolling.

For this endeavor, the team employed a real NES with real cartridges, giving it a true old-school effect. And it should be pointed out that there was no hacking of the actual console; instead, its creators enhanced the game using DIY hardware and software that multiplexes eight gmepad inputs to automatically handoff control from one pad to the next.

Image2

To connect eight controllers to the NES, they used an Arduino (ATmega328)-based multiplexer. Video from the NES is fed through an upscaler to get the output up to a solid 576p at 50Hz, whereas audio output goes directly from the NES to the room’s sound system.

Meanwhile, the NES output video signal is first captured and sent for analysis. A “tracking PC” running custom software processes the video stream, tracks the background and creates a wide, panoramic image. This image is then sent to a media server, which outputs the stream via eight projectors — two for each wall. Ars Technica notes that the tracking PC also has a real-time GPU algorithm to correct any distortion, enabling it to display clear graphics.

Image4

The Arduino multiplexer has two modes of operation: it can either cycle through each gamepad after a fixed amount of time, or the tracking PC can let the Arduino know to change to a specific gamepad, depending on where the players are in a level.

Once complete, the researchers tested the impressive system at a gathering with over 400 guests inside a Swiss night club. As you can imagine, it was a hit! The hope is that it will bring an entirely new level of social interaction to traditional game play. Think about it: Partygoers can swap in and out as they attempt to go from level to level, all while adding a unique ambiance to the environment. (Not for anything else, it can surely make for one heck of a drinking game!)

Image3

For those who don’t happen to have several projectors or giant walls, not to worry. The platform supports a virtual reality version as well, which reproduces a similar environment using an Oculus Rift headset.

Intrigued? Head over to the researcher’s official page to see how they’re ‘unfolding the 8-bit era.’ You can also head over to Ars Technica’s writeup or simply watch it in action below.

[h/t Ars Technica via ETH Zurich]

LattePanda is a $70 Windows 10 mini computer


This single-board computer comes pre-installed with Windows 10 and an Arduino-compatible coprocessor. 


Microcomputers aren’t only getting smaller, they’re getting a whole heck of a lot cheaper, too. Just in recent months alone, both the $9 C.H.I.P. and the $5 Raspberry Pi Zero have generated quite a bit of buzz amongst the Maker crowd. However, getting a single-board that runs Windows is a bit more difficult and requires you to dig a little deeper into your pockets. That was until now, at least.

2

Meet the LattePandaa $69 board equipped with an Intel Atom x5-Z8300 Cherry Trail processor, 2GB of RAM, 32GB of storage, and yes, a preloaded Windows 10 operating system. What’s more, there’s a pricier ($130) LattePanda Enhanced that boasts the same processor and design along with 4GB of RAM and 64GB of storage.

LattePanda is the perfect portable computing device, enabling you to do typical PC things like create documents with Microsoft Office, play HD videos and run Windows apps, all on the go. Since it’s pre-installed with Windows 10, each board features tools including Visual Studio, NodeJS, Java and Processing. Plus, the microcomputer supports a number of accessories, ranging from sensors and joysticks to Leap Motion controllers and Kinect.

b8510ea8bc73a2f0ce44184d45ee9e3c_original

Both versions pack HDMI, USB 3.0 and two USB 2.0 ports, built-in Wi-Fi and Bluetooth, a microSD card slot, an audio jack, Ethernet, as well as microUSB for power.

And here’s the part that really fascinates us: The board, which measures just 3.5” by 2.8” in size, includes an ATmega32U4 coprocessor for Arduino compatibility, serial ports and a touchscreen connector.

“Whether you are a Windows developer, an IoT developer, a hardware DIYer, an interactive designer, a robotics whizz or a Maker, LattePanda can aid your creative process,” its team writes.

LattePanda_Block_Diagram

Among the example use cases provided are camera-enabled robots, security monitoring system, cloud-connected IoT devices and real-time data research projects. With onboard Ei-Fi, Bluetooth 4.0 and Ethernet connectivity, data transmission can be seamless.

Ready to say goodbye to your bulky laptop? Not only can it serve as a fully-functional Windows PC, it also offers serial connectors, GPIO pins and Arduino support. Head over to its Kickstarter campaign, where the LattePanda crew is seeking $158,858. Delivery is slated for March 2016.

BeMap lets you pick the least polluted way to work


This device features GPS for tracking, a lamp for visibility and sensors for measuring pollution along your cycling route.


Most folks typically like commute to work everyday either by car or mass transit. Not only do these vehicles create congestion on the roads, they’re often times costly and not always flexible to one’s schedule. And while cycling is certainly an alternative mode of transportation, many people don’t feel confident riding to work in non-bike-friendly cities. This is something that one team of microengineers have set out to change with their Arduino-based system.

11247975_843103625738113_8048899189193984746_n.jpg

With hopes of encouraging more people to bike to work and improving everyone’s general well-being, four EPFL students have developed an innovative handlebar device with an air pollution gauge and headlight. The system, called BeMap (Bicycle Environmental Mapping), is capable of measuring CO and NO2 levels in the air and transmitting that data to a computer for environmental mapping. These readings can then be crowdsourced online and mapped to help cyclists choose routes with the lowest level of vehicle exhaust and pollution. During any given bike ride, anywhere from 500 to 1,000 pollution readings can be taken and then uploaded in real-time over Bluetooth.

Aside from a CO and NO2 sensor, BeMap is embedded with a temperature and humidty sensor along with an Arduino Leonardo (ATmega32U4) that handles communication and data collection. What’s more, the gadget is equipped with GPS for tracking the path followed by a cyclist throughout their commute and combining the sensors’ data to points on the map. There’s also an LED light to enhance nighttime visibility and for keeping you up to date on the current pollution levels.

1024x683

According to its creators, BeMap is geared towards to specific users: municipalities who could provide the device to users in order to collect specific information about cycling infrastructures’ quality and air pollution, as well as data-loving riders who’d like to analyze their cycling routes. Plus, the students are already in talks with OpenSense — a project designed to measure air quality through mobile monitoring — who has already placed sensors on trams and buses in Zurich and Lausanne, for instance.

“With bicycles, we can go down narrow streets and reach other spots that are off limits to buses. The readings crowdsourced by BeMap will also help cover more ground,” explains Chloe Dickson, a member of the BeMap project team.

11224102_866506903397785_4005652144889936399_n

In true Maker spirit, BeMap is entirely open source and all of its documentation and 3D-printable files are available online. Although the project was initially devised as part of the iCan competition, the group is considering marketing a commercial-grade unit, which we wouldn’t be surprised to find on Kickstarter in the near future!

This sound-reactive LED wall is groovy


Now you can install an Ex Machina-inspired, music-responsive light fixture in your home.


If you’ve ever watched the sci-fi flick Ex Machina, then chances are you’re familiar with Nathan’s (played by Oscar Isaac) infamous dance scene. The character flips a switch to transform his home’s concrete-walled lounge into a disco floor, complete with music-synced flashing lights.

For those of us not lucky enough to be billionaires and install high-tech walls inside our homes, engineer Dan Chen has revealed that it only takes some laser-cut cardboard, LEDs and a little ingenuity to devise an affordable replica of the groovy, sound-reactive light fixture of your own.

The movie-inspired project consists of two parts: sound sensing software and the actual hardware installation. To make the embedded LED strip react to the tunes, he employed a sound detection sensor along with an Arduino Uno (ATmega328) programmed to sink or provide current to the LEDs.

sound1-628x4711

Additionally, Chen kicked it up a notch by putting together a more advanced version. For this, he mapped the sound in Max MSP and applied a low-pass and high-pass filter to generate different colors. This signal is sent to the Arduino (or any ATmega-based board, for that matter), which reads the number and then maps the value to the number.

All that was left was creating the geometric wall. Chen was able to reproduce this by using a still from the film to trace and cut the pattern out of cardboard. He proceeded to paint it white and bend it over a cylinder surface for some curvature. The project was then mounted to the wall with a piece of light-diffusing paper sandwiched in between.

IMG_0758-628x4711

Whenever Chen is ready to get down, he just has to sound the music and the lights will move to the beat in red, purple and blue.

Intrigued? Check out the entire project — including its code and wall pattern — on its page here. In the meantime, see it in action below!

 

3D printing an Arduino-controlled stepper motor


As a way to help teach others how stepper motors work, this Maker designed one of his own. 


Normal DC motors are fairly easy to use. Connect the propper voltage across the positive and negative leads, and one of these motors should spin. Stepper motors, however, are somewhat more complicated, both in how they are controlled and how they are constructed.

F9PQFSYIDCXDR9T.MEDIUM

Maker “Proto G” decided to not just learn how to control one of these mechanisms, but actually built one from scratch. To achieve this, he 3D printed a stator (body of the motor) as well as a rotor that he could attach six permanent magnets to. These magnets were then sequnetially pulled by eight electromagnets on the outside, each made out of a nail wrapped with 25 feet of wire. You can see his hand drill wrapping process at around the 1:30 market in the video below.

FT0NM5EIDCXFWDF.MEDIUM

Control is handled by an Arduino Uno (ATmega328), along with some other electronic components, nicely enclosed in a project box. The motor is turned by energizing the electromagnets in a counterclockwise direction to spin the rotor clockwise, and clockwise to spin in the opposite direction. It is capable of 15-degree full steps, as well as 7.5-degree half steps, accomplished by energizing two pairs of coils at the same time.

As linked toward the end of that video, Proto G has made a version 1.1 version of his motor with a NeoPixel LED ring to show which coils are activated. The results are visually quite interesting, though the video also notes that he’s working on a second version!

Interested? You can check out the entire project on its Instructables page here.

Control your home theater with any IR remote


This Maker’s sketch emulates a USB keyboard to control Plex when it receives button presses from a remote.


Once you have a home theater PC (HTPC) set up in your living room, how to elegantly control it is a huge priority. A wireless keyboard is an obvious solution, but the limited range and general “largeness” of many of them can make this less than ideal. Of course you could always buy a tiny keyboard meant for this type of use, but if you’ve got an Arduino Micro (ATmega32U4) and an infrared receiver, you can simply use your existing remote!

photo

A Maker by the name of “Ep1cman” decided to do just that since he had the parts available, as documented the setup on GitHub. In his case, the Arduino receives IR signals from a NOW TV remote and translates it into a keyboard press from a virtual USB keyboard. His sketch will take any unknown IR codes it receives and output them on a serial port. This would, of course, be extremely useful for soemone that wanted to adapt this to his or her own remote control.

One thing that the Arduino does not support by default is waking a sleeping PC. For this, he used NicoHood’s library. He also employed the IRremote library to properly receive signals. Finaly, to complete his control package, he wrote an EventGhost script that allowed him to switch between Plex and Steam.