Tag Archives: ATmega328

Keep the mosquitoes away with this ultrasonic water lily


This 3D-printed, ATmega328 powered floating lily pad repels insects from your pool.


If those Citronella torches and repellant sprays can’t keep the mosquitoes away from you during a nighttime swim, perhaps this 3D-printed ultrasonic floating water lily will do the trick. Devised by Maker Jake Reeves, the project uses ultrasound in the 38-40kHz frequency range to repel pesky insects from your pool at dark. This, of course, not only deters them from joining you as you take a few laps, but will reduce how much you have to skim in the morning, and even better, prevents any future breeding.

image4_preview_featured

The simple object consists of two parts, a top and bottom, both of which were printed using a MakerBot Replicator. Upon being created, Reeves sprayed each of the components with a clear sealant to keep water from seeping through to its embedded electronics, which consists of an ICStation Nano 3.0 board (ATmega328), a 40kHz ultrasonic microphone and a rechargeable 9V battery.

image2_preview_featured

As you would imagine, the unit is designed in such a way that the lily pad sits just below the pool’s surface, with the flower pedals emerging from the water as the system emits a 38kHz frequency.

“I chose part of that spectrum to try and repel the unwanted insects from pools and standing water. Mosquitoes in particular dislike the 38kHz frequency as males emit that frequency, so during breeding the males avoid each other and when the females are preparing to give birth, they avoid the males to reduce competition over food.”

image6_preview_featured

With summer in full swing, are you tired of skimming countless mosquitoes from your pool? If so, check out the project’s Thingiverse page here.

Photon Printer is a $20 micro laser engraver


The Photon Printer is a 3D-printable laser engraver made from recycled DVD drives.


It seems like nowadays Makers can transform any form of electronic waste into a fully-functional device. Case in point: this pocket laser engraver comprised of recycled DVD drives.

main_preview_featured

In a project he calls the Photon Printer, Maker Stephen Brockett has successfully developed a micro laser engraver made from a pair of spare DVD burners, some stepper drivers and an Arduino, of course. Inspired by a previous Instructables project he happened to stumble upon, the idea was originally meant to be a simple weekend activity, but didn’t take long to evolve into a much more elaborate endeavor.

Brockett points out that the laser diode needs to be from a DVD drive capable of writing to discs, because the laser from a read-only drive isn’t powerful enough to engrave. In his case, the Maker used a set of LightScribe drives from an old HP GSA-H60L that he had lying around, and the Photon Printer’s X and Y mounts have been designed to fit these drives.

“The newer the drive, the more powerful the diode will be. After about 2009, they changed the diode package making it harder to use, so aim for something before that,” he advises.

DSC_3588_preview_featured

Powered by an Arduino Nano (ATmega328), the engraver features laser housing with a glass lens and a pair of EasyDrivers that rely upon the regulation of a 5V USB supply. Aside from that, Brockett decided to 3D print a few of his parts including the enclosure with built-in roller door access, as it enabled him to customize the housing to best suit the oddly-shaped DVD components. Since the parts had one large flat surface, 3D printing was super easy.

To modify the DVD axes, Brockett suggests unscrewing the hub ends to expose the circuit board, and then from there, soldering wires to the two terminals on the far right, as they connect to the end stop micro switch. Afterward, reassemble and then solder four wires to the stepper motor.

DSC_3562_preview_featured

In terms of software, the Maker employed GRBL — an open source, high-performance CNC milling controller written in optimized C that will run on an Arduino — and generated a Gcode for the engraver. As a whole, the Photon Printer itself works quite well, especially given the minimal parts and cost associated with the project. What’s more, the device boasts various adjustment options and a spring-ensioned Z axis to reduce vibration.

Intrigued? You can head over to Brockett’s Thingiverse page here, or watch it in action below.

Creating an elaborate BB-8 replica


Inspired by BB-8, one Maker is bringing some Star Wars magic of his own to life with a ball-balancing robot. 


It didn’t take long for everyone (ourselves included) to fall in love with JJ Abrams’s adorable new BB-8 droids, who have stolen much of the Star Wars: The Force Awakens spotlight even before hitting theaters. As you can imagine, countless fans are already counting down the days before the arrival of what will surely be a holiday best-selling robot toy this year. However, instead of waiting, a number of Makers like James Burton have decided to take it into their own hands by devising fully-functioning replicas.

BB8_11

Whereas the actual character is comprised of two separate parts (a remote-controlled body and a separately remote-controlled head), Burton’s latest project consists of a balancing robot that sits atop a 500mm diameter polysyrene ball serving as its body. This lightweight material gives more relative inertia, and therefore, stability for the droid positioned on top.

As seen when the robotic creature made its debut on stage in Anaheim, the “real” BB-8 features a robotic ball for its body with an independently-moving head that doesn’t fall off, which is clearly the work of physics and maybe some magnets?

Bal

And this Maker has taken a somewhat similar approach. Gyroscopes and accelerometers from SparkFun are tasked with maintaining the ball-balancing robot’s equilibrium. Meanwhile, the Maker has employed an Arduino Pro Mini 5V (ATmega328), a couple motor drivers, a few DC motors, a level shifter, and of course, a set of omni wheels for multi-directional movement. These components are all mounted to a 3D-printed chassis and housed inside a 300mm acrylic hemisphere.

BB8_16

With that working well, he also tried to make it remote-controlled. This required the addition of an RC receiver along with another Arduino that offsets the gyro value to make it roll in one direction. For a while, BB-8 was only capable of running on carpet; however, as you can imagine when trying to demonstrate the project at shows and other conventions, carrying around a small piece of rug could be quite tedious. So in an effort to solve this problem, Burton improved his design with some trial-and-error by adding ball bearings inside the hollow sphere, thereby emulating the slowness of carpet.

BB8_29

With a little more 3D printing for additional details, such as its eyes, and some airbrushing of its exterior, Burton was just about complete with his impressive project — that is at least, until he begins a second version. For those of you who are familiar with this Maker’s work, it should come as no surprise that he has put together an extremely elaborate playlist of steps, which you can find below. Interested? You can find the project and its entire code on Github.

Converting a Guitar Hero controller into MIDI drums


Maker transforms his old game controller into a real MIDI drum set that can interface with digital audio workstations.


Back in 2008, it seemed like everyone was rocking out to Guitar Hero World Tour. And well, a lot has changed over the last seven years. Like many other Makers out there, Evan Kale wanted to retrofit somewhat out-dated gadgetry into a fully-functional, modern-day piece of musical equipment. In this case, he converted a secondhand Guitar Hero controller into a real world MIDI drum kit capable of interfacing with digital audio workstations like Ableton Live, FL Studio and Pro Tools.

FOG1J89IBXML6JL.MEDIUM

Not only is it cheaper than creating a set from scratch, it’s much easier as the game controllers are practically drum pads with piezo sensors already on the bottom. Kale employed the help of an Arduino Uno (ATmega328) given that he only needed six analog inputs; though, if more than six piezo sensors were required, the Maker suggests using an Arduino Mega (ATmega2560) with its 16 inputs.

Aside from the Arduino, the mod calls for a proto board, a 1MΩ resistor for every piezo sensor, male headers and a MIDI port with a 220Ω resistor. Fortunately for him, this particular controller already featured a MIDI input port. This was perfect, as he was able to save a MIDI jack and rewire it to transform it into MIDI output port.

F5GREQ6IBXML9CX.MEDIUM

For those unfamiliar with Guitar Hero World Tour, the device comes with three drum pads, two cymbals and base pedal. There’s even a pair of stereo 3.5mm audio jacks — one of which connects the base pedal, the other for further modifications.

To get started, Kale removed the back of the controller to access the piezos, which were plugged directly into the main board. However, this board was swapped out for the Arduino. The Maker went on to build a shield for the Arduino that would allow him to plug in the piezos to the pin headers on the proto board.

Beyond the main board, the controller includes an additional board on top tasked with holding the back panel, whose inputs are also directly plugged into the main board. According to Kale, “Since we’re reusing the MIDI port on the back panel of this controller, we’ll need to make a slight modification to the back panel board. By adding a jumper between the two pins pictured above, we can ground the middle pin of the MIDI port which would otherwise be missing for a MIDI output port. We can then plug the last four pins of the cable ribbon directly into our proto board.”

FOIH65FIBXMLDD7.MEDIUM

To devise the shield that would sit on top of the Arduino, Kale added some pin headers, took a few resistors and connected them to a common ground. From there, he broke the pin headers in half and soldered the ends of each onto the end of the resistors, and attached the other pins of the headers to the ground as well. This enabled the piezos to be plugged directly into the headers.

As for software, the Maker uploaded his custom MIDI Drum code to the Arduino. With his retrofitted Guitar Hero unit, the default program worked fine right out of the box, while for others, you’ll most likely need to make a few minor adjustments. Intrigued? You can watch the entire breakdown of the build in the video below, or head over to its Instructables page here. Rock on!

Vinduino is a wine grower’s water saving project


Vineyard + Arduino = Vinduino


Given the current water crisis affecting the Golden State, farmers are constantly seeking alternative ways to reduce agricultural consumption. Take Reinier van der Lee, for example, who has developed a solution that can cut H2O use by up to 25%. And for that reason alone, it makes for an excellent Hackaday Prize entry.

9022141435287685823

The project, which is aptly named Vinduino, began as a necessity to better manage irrigation on his Southern California vineyard. However, it’s not just the U.S. west coast that is impacted by drought. There are 36 countries, spanning from Africa to India, that are facing similar situations due to lack of rainfall. With this in mind, van der Lee hopes that his DIY system can reach a widespread audience by making it open source, affordable, and easy to build.

As a whole, the system is comprised of calibrated gypsum soil moisture sensors, a handheld sensor reader and a solar-powered remote platform. Based on an Arduino Pro Mini (ATmega328), the Vinduino is equipped with three inputs for soil moisture sensors, an RTC module, a load switch, irrigation valve control, and wireless communication via either a ESP8266 Wi-Fi or a long-range RF module. Most recently, the Maker installed extra gypsum sensors and implemented a 4G hotspot for Internet access on his vineyard by connecting to the ESP8266.

345501435286211123

“Using a single soil moisture sensor, you can determine when to start irrigation, but overwatering is hard to avoid,” van der Lee writes. “By the time the irrigation water reaches the sensor, the layer above is saturated and likely there is more water than the plant can consume. The surplus water will now seep below the root zone, out of reach of the plant, taking unused nutrients with it as well.”

Instead, this problem was solved by using three sensors. The lowest most sensor is placed below the roots, so it should never go off. If it does, this means that the plant is not taking in all the water, and subsequently, the output can be reduced. The two sensors above it monitor the H2O as it transitions through the soil, and adjust the water amount and interval frequency accordingly.

9531491435293794901

With multiple sensors located at various depths, users can actually control irrigation to not exceed the active root zone, thereby saving water. Rather than have to irrigate for an extended amount time and with long periods of rest in between, Vinduino allows for much shorter, more frequent irrigation cycles. The result? The plants will be able to absorb the water before it even has a chance to reach the level below the active root zone. It is important to keep in mind, though, that different crops call for different depths. For instance, recommended sensor depths for grape vines are 24, 48 and 60 inches.

Resistive sensors, like gypsum sensors, need to be excited with short pulses of alternating current to avoid electrolysis effects. The Vinduino interface alternates currents through the sensor, while a pair of analog inputs are utilized to measure voltages over the bridge. This compensates for differences in battery supply voltage, as well as sensor bias voltage.

1597141435287668290

Since the sensors are connected together through a soil resistance path, multi-sensor measurements can only be achieved if the sensors are disconnected when not in use. For this, Vinduino employs regular 2N7000 FETs. The handheld reader is capable of only measuring one sensor at a time, thus can use a simpler interface circuit without FET switches.

For vineyards, irrigation reduction is sometimes practiced in the days leading up to harvest in order to get highly-concentrated wine grapes. The idea is that the best wines come from vines that have suffered water stress. In case you’re interested in van der Lee’s status, his vines are doing well under the new irrigation regime.

Intrigued? Check out the Maker’s entire project on Hackaday.io here.

This Arduino-powered robot will open your beers for you


Having trouble opening your bottle? Let this robotic device do it for you.


We’ve all been there: The big game is about to start, you head over to the fridge to grab a cold brewski, only to find out it isn’t a twist-off cap and there’s no bottle opener in sight. Luckily, thanks to a group of Makers, you won’t even need to get up from the couch let alone have to open your own beer.

FGYPTQNHZJOQWHY.MEDIUM

Led by Maker Sasha Schrandt, the team successfully modded a non-functioning robot to successfully open a beer bottle using some DC motors, a relay shelf, some resistors and an Arduino Duemilanove (ATmega328), among several other electronic components.

After stumbling across the old robotic device, the Makers decided that it would be a good idea to bring this piece of technology back to life and to give it a new purpose, one in which would come in handy for a party, a big game, or just any lazy Sunday. That purpose? To become an automated beer opener.

“The task of controlling a robot to have it interact with specifically shaped objects and operate heavy loads is challenging and required significant prototyping and modelling. After many tests and many failures, we were very excited to watch our robot successfully maneuver through arm movements to open a beer bottle,” Schandt writes.

FJFAT28HZJOPFOJ.MEDIUM

The robot is controlled by the ATmega328, which is attached to a relay shield. Connected to those are three recycled DC motors, switches, wires, and a couple resistors. Additionally, the Makers employed a couple zip ties, nuts, bolts, washers and short screws, along with a MDF board to mount everything on, and eight empty soup cans plus various scrap pieces of metal and rods.

Schandt reveals that there were four primary tasks to prepare the hardware for the robot. These included weight reduction of the robot arm to allow maximum torque / force from the arm; bottle holders for the beers (which were created using the empty soup cans); mount the bottle opener and limit switches to the robot; and, mount the robot parts to a sheet of MDF to maintain alignment.

F6D4YQQHZJOPEXJ.MEDIUM

To reduce the weight of the arm, the team simply took off the last two motors of the robot arm to make the carriage head lighter. This left them with an arm that was much easier to control and to get the necessary torque to open the bottle caps. From there, all that was left was a bit of coding and connecting the electronics. After some programming magic and electrical know-how, the robotic contraption was ready.

So, did it work? The robot was able to open seven out of the eight bottles successfully. Not too shabby, if you ask us! Interested in crafting your own bottle bot? Head over to the project’s official page here for a step-by-step breakdown of the build.

Vortex lets kids program their own robotic toy


Vortex is a smart and responsive robot that kids can play with and program themselves. 


The emergence of robotic gadgets have inspired a new generation of toys that are not only fun but educational as well. Joining the likes of Sphero, Hackaball, Kibo, LocoRobo and several others, Shanghai-based startup DFRobot has introduced a smart and responsive device for kids. Named Vortexthe robot enables its young users to play various games, learn about programming and even create their own via an accompanying app.

Pic

Designed with the novice Maker community in mind, Vortex works right of the box and simply pairs to a smartphone (iOS and Android) over Bluetooth. Thanks to its built-in computer and a dozen sensors, it is capable of maneuvering around the floor, desk or table with a touch of the screen. Vortex features four pre-installed, multi-player games, which allow kids to compete against one another in sumo-like bumping fights, play a round of virtual golf, race throughout the house or partake in an immersive match of robot soccer.

While Vortex will certainly prove to be an amusing play-thing, its creators hope that it will encourage more children to pursue STEM-related disciplines and begin tinkering around with code. This is made possible through an easy-to-use, intuitive app that enables graphical programming in a simple drag and drop manner. Vortex also comes with pre-set courses that teach how to make use of its built-in capabilities, which include recognizing hand gestures and avoiding drop-offs.

8a773be2bbcd1f5ad3bc6b433ca98319_original

Aside from being open source, Vortex is completely compatible with both Arduino and Scratch. This opens up a wide range of possibilities, such as seeing and speaking through infrared, grayscale and sound speakers, and navigating around obstacles, detecting lines and reporting back to its user. With an ATmega328 MCU at its heart, the robot is equipped with 10 sensors ( two infrared proximity, two speed control, six line following), 12 independent RGB LEDs, as well as Bluetooth, USB and I2C connectivity options. Beyond that, it is powered by four AA batteries, boasts a life of 40-90 minutes, and can even show its emotions with up to 32 different eye expressions.

19f4d8f60cdbef589ad01281b21b089f_original

“We believe kids can benefit a lot from robotics, in identifying their own challenges, learning how stuff works, solving new problems, motivating themselves to complete a project, working together, inspiring and sharing with others. That’s why we created Vortex to be more than just a toy,” the team writes.

Know of a young one who would love such a device? Head over to Vortex’s Kickstarter campaign, where DFRobot is currently seeking $54,035. Units are expected to begin shipping in October 2015.

Young Maker builds a baseball training device for pitchers


Drawing strike zones out of chalk on walls is so 2014. This 13-year-old has created a high-tech solution.


One Virginia middle school student has invented a smart baseball training device for pitchers. During a Maker Camp last summer, 13-year-old Nick Anglin discovered that there was a problem for Little League pitchers learning how to pitch accurately in a strike zone. Whereas many players back in the day would simply draw a rectangular box out of chalk on a brick or concrete wall and then proceed to throw the ball at the makeshift target, this young Maker decided to take a much more high-tech route with the help of lasers and Arduino.

AnglinPitchingMachine

When asked at camp to pick a hobby and incorporate technology, it was a no-brainer for Angilino, who as a pitcher himself was always looking for a new way to hit the 28-square-inch strike zone in more game-like situations. To accomplish this, the Maker built a four by five-foot wooden frame equipped with sensors and several lasers controlled by an Arduino Uno (ATmega328) — 11 lasers horizontally, seven vertically.

It works just like most other baseball backdrops, except that instead of being caught by a net, a red light illuminates as it makes its way through the grid of lasers denoting a strike. When it barely breaks any of the lasers, a green light flashes representing a ball. And should the pitcher miss the frame entirely, well, safe to say that’s not a strike.

Ardui

In total, the project only cost Anglin about $67. Looking ahead, he hopes to enhance its design and begin mass producing the device.

Building a smartphone EMF detector with an electret mic and Arduino


A simple Arduino circuit can enable you to see a smartphone’s electromagnetic activity, even while it’s “asleep.”


As ubiquitous as smartphones have become, the jury is still out with regards to how their signals affect our bodies. Radio frequency energy is a form of electromagnetic radiation, which can be categorized into two types: ionizing and non-ionizing. Exposure to ionizing radiation, such as from radiation therapy, is known to increase the risk of cancer. However, although many studies have examined the potential health effects of non-ionizing radiation from electronic devices, there is still no consistent evidence proving it is detrimental to our health.

emfcircuit

With this in mind, Epic Jefferson decided to call attention to smartphones’ electromagnetic activity, even when the phone is “asleep.” The project had been part of a Making Things Interactive course at Carnegie Mellon University, which encouraged students to use Adafruit’s electret mic to take something from the background environment and bring it to the forefront in a non-invasive way.

“The first thing I remembered was that the RadioShack phone pickup that I have made some interesting noises when held close to any electronic device. Since this thing is essentially just like a guitar pickup (just a copper coil wrapped in a circle), that means it’s sensitive to disruptions in it’s electromagnetic field. If a phone can interrupt it’s EMF, we can use that to trigger an action to visualize the phone’s EMF activity,” Jefferson explains.

EMF1

Although the RadioShack device worked well for converting EMF activity to the audio spectrum, when it came to passing that into the electret mic and then into the Arduino Uno (ATmega328) for processing, it became highly susceptible to noise coming in through the mic. With a simple adaptation of the circuitry and code using fellow Maker Aaron Alai’s EMF detector project as a reference point, Jefferson was able to make it sensitive enough to detect the small electrical pulses emitted by any smartphone.

With the electronics all squared away, the Maker decided to house the components inside of a Walnut enclosure. After about 10 hours of milling, sawing and sanding, the project was complete.

Want to create an EMF detector of your own? The modified code can be found on GitHub here.

Retrofitting an espresso machine with Arduino


Maker mods his Brasilia espresso machine with custom electronics and a PID upgrade.


Like most Makers, Rhys Goodwin loves his coffee. So much so that he is the proud owner of a Brasilia Lady espresso machine. Yet, in comparison to modern-day equipment, the device was as simple as they come with some outdated electronics inside.

Assembly11

So in true DIY fashion, Goodwin took it upon himself to restore the appliance using an Arduino, a PID controller, an OLED display and a few other custom-machined components, all while keeping its inner workings as original as possible. He did, however, strip down the casing and powder coat it in flame red before reassembling.

Before the mod, the extremely basic machine featured a 300ml brass boiler with a three-way solenoid valve, as well as one of those frequently inaccurate bimetallic thermostats. What’s more, the Lady’s operation was entirely manual. With the absence of a microcontroller, the device was purely AC driven and controlled by a set of buttons and the thermostat.

Assembly02

For this project, Goodwin decided that he wanted a PID modification to maintain a constant temperature. He also swapped out the Lady’s original front-facing AC buttons for an Arduino Nano (ATmega328), while everything was controlled through software with solid state relays for the pump, boiler and solenoid. Beyond that, the Maker added an OLED display and two temperature probes: one for the coffee, the other for the brew kit.

Assembly08

The retrofitted espresso maker runs the Arduino PID library to manage the boiler temperature, while the old AC buttons are now directed to the Arduino, which in turn, allows Goodwin to navigate the menu and PID parameters. When all was said and done, the internal water tank was sacrificed in order to make room for the custom PCB and control box.

Interested? Browse through the entire project log here, or simply watch it in action below.