Tag Archives: ATmega2560

Controlling a robotic arm with your brain


Mind = Blown.


When it comes to brain-controlled interfaces, advancements in the space have come a long way since its earliest days of research at UCLA in the 1970s. Under a grant from the National Science Foundation and followed by a contract from DARPA, the papers published following the study marked the first appearance of the expression BCI in scientific literature. Now fast forward nearly 40 years and Makers are inspiring a wide-range of possibilities, from EEG beanies that can read and change colors based on a wearer’s mood to amputees instructing a prosthesis to gain movement in their arms.

(Source: MAKE)

(Source: MAKE)

Writing for MAKE: Magazine, Nathan Hurst highlights a recent project from Cognitive Technology for their recent Make it Move interactive display in San Francisco. The device was simply plugged into a computer and screen, and into a two-jointed robotic arm.

To bring the exhibit to life, the team adapted an EEG board from OpenBCI. The ATmega328 based platform measures brain activity in both hemispheres, and records that data on eight channels. However, for it to work, it requires electrodes to be pasted onto the skull — something which wouldn’t work for a public exhibit. Subsequently, the Makers decided to use a soft neoprene cap with dry electrodes that was capable of sitting on the head with a velcro strap under the chin. It would then read and output brainwaves to the OpenBCI board.

OpenBci

“I think if this technology advances more, it will help a lot of disabled people who can’t move their arms,” Jisoo Kim tells MAKE. “Since everything is open-source, people can build it themselves, so I think it will advance a lot more.”

Maker Tomas Vega, who is a University of California student and Cog Tech member, shares that an EEG device can read that in the form of electrical signals on the scalp. Those signals are then processed, filtered and analyzed into more digestible form of feedback. Software interprets the information from the EEG and assists in processing the signals to create useful output. However, these signals can come in rather noisy, and as a result, the program must employ some machine learning to sort it out.

(Source: MAKE)

(Source: MAKE)

As MAKE points out, EEG interpretation faces a bit of skepticism from the academic community, and in the current exhibit’s setting, the team was faced with an additional barrier of teaching visitors to actually control the interface. While brain-controlled interfaces have been used primarily for science, the Cog Tech crew hopes that new tools will help spur further research and more importantly, address more practical problems including assisting those who are paralyzed.

For the exhibit, Cog Tech is harnessing the powers of BCI to command a robotic arm that Jon Ferran devised using an Arduino Mega (ATmega2560) along with some parts from an old bartending arm. At the moment, motion is limited to waving left and right.

Kim explains to MAKE that after just a few hours of training, she could already feel herself getting better with controlling the arm — something that the team hopes others will one day have the chance to experience. “It was pretty difficult. The most difficult part was to think the way that can control the arm; imagining moving my left or right arm is different from moving it.”

(Source: MAKE)

(Source: MAKE)

While BCI boasts several possible applications in basic computer control, such as replacing mice and keyboards, some have a more personal goal as well. “I want to be a cyborg. That’s my long-term goal,” Vega concludes. “I’m going to work all my life to make this a reality. There’s nothing that makes my heart beat faster than this dream of being enhanced by technology. This dream of being augmented, and augmenting my capabilities as a human, and trying to push the boundary.”

Interested in learning more? You can read the entire feature in MAKE: Magazine here. 

MIT Media Lab’s morphing table has Atmel under the hood


Tangible Media Group has created a shapeshifting display that lets users interact with digital information in a tangible way. 


As previously shared on Bits & Pieces, MIT Media Lab’s Tangible Media Group has devised a morphing table with several ATmega2560 MCUs under the hood. The installation was recently exhibited at the Cooper-Hewitt Smithsonian Design Museum in New York, and can be seen in action below!

car

inFORM is described its creators as a dynamic shape display that can render 3D content physically, so users can interact with digital information in a tangible way. In order to make that a reality, the table is equipped with 900 individually actuated white polystyrene pins that make up the surface in an array of 30 x 30 pixels. The interactive piece can display 3D information in real-time and in a more accurate and interactive manner compared to the flat rendering often created by computer user interface.

flashlight_remotesite

This was all accomplished by tasking a Kinect sensor to capture 3D data. This information was then processed with a computer and relayed over to a display, enabling the system to remotely manipulate a physical ball. Aside from being able to produce a controlled physical environment for the ball, the pins are able to detect touch, pressing down and pulling.

flashlight_hands

An overhead projector provides visual guidance of the system, with each pin capable of actuating 100mm and exerting a force of up to 1.08 Newtons each. Actuation is achieved via push-pull rods that are utilized to maximize the dense pin arrangement — making the display independent of the size of the actuators. The table is driven by 150 ATmega2560 based Arduino PCBs arranged in 15 rows of vertical panels, each with 5×2 boards. The boards then communicate with a PC over five RS485 buses bridged to USB. Meanwhile, graphics are rendered using OpenGL and openFrameworks software.

“One area we are working on is Geospatial data, such as maps, GIS, terrain models and architectural models. Urban planners and architects can view 3D designs physically and better understand, share and discuss their designs,” the team writes. “Cross sections through Volumetric Data such as medical imaging CT scans can be viewed in 3D physically and interacted with. We would like to explore medical or surgical simulations. We are also very intrigued by the possibilities of remotely manipulating objects on the table.”

sphere_hands02

Its creators are hoping to spark several collaborations with everyone from urban planners and architects, to designers and modelers, to doctors and surgeons. The display could be used as an alternative to 3D printing low-resolution prototypes as well as rendering 3D data — ranging from construction plans and CT scans — that a user will be able to interact with by physically molding the pins.

Interested? A detailed paper of the project by can be found here.

An open-source PLC to control the Internet of Things


Controllino is the first software open-source, Arduino-compatible PLC. 


Designed by the SG-Tronic team, the Controllino is an open-source programmable logic controller (PLC) built around Atmel’s ATmega328 and ATmega2560 microcontrollers (MCUs). Recently funded on Kickstarter, the Arduino-compatible PLC allows Makers to produce and control their next Internet of Things project, ranging from industrial to home automation applications.

photo-1024x768

“When I was at electronic school, I would have loved Arduino. But back then, microcontroller programming wasn’t that easy. When I became aware of Arduino, I thought… What a great idea for young people and those who are not hardcore microcontroller programmers,” creator Marco Riedesser explained. “The only problem with Arduino is [that] when you don’t really know so much about electronic hardware, driving more than a LED can become difficult. And using an Arduino board in a professional project or even a product that you want to sell is quasi impossible if you want to get certification.”

Now fully UL and CE-certified, Makers can begin creating and actually shipping gadgets such as drones, home appliances, or any other electronic project that comes to mind. The Atmel powered PLC is currently being presented in three models: Mini, Maxi and Mega.

“I had to repair the coffee machine for my brother-in-law. I thought it would be easy to use Arduino but there was nothing on the market that could handle switching high voltage and high current. So I thought I had to come forward with a product,” Riedesser revealed to TechCrunch earlier this year.

automatic-input-voltage-range-selection

All Controllino PLCs are equipped with an internal RTC using SPI, which can be switched on/off and allow for the use of SPI for other purposes via pin header. With built-in processor contact, Makers have a direct link to a number of boards (like Arduino). All pins are also 4000V ESD protected. What’s more, both the Controllino Maxi and Mega let users select between internal RTC and Ethernet using SPI, as well as turn it off so they can use the SPI for other purposes via pin header.

The versatile device works in altitudes up to 2,000m above sea level, in temperatures ranging between 5°C to 55°C, and in maximum relative humidity 80% for temperatures up to 31°C decreasing linearly to 50% relative humidity at 55°C. Each Controllino features an automatic input voltage range selection. This internal function changes voltage dividers ratio on the processor input, and enables the use of one input for analog and digital and for 12V or 24V input voltage range without user action. In addition, the Controllino’s main supply voltage fluctuates up to ±10% of the nominal voltage

e3ea5b4bf1a713af6f0f90899c84d908_large

Key Mini specs:

  • MCU: ATmega328 MCU
  • RTC
  • Clock speed: 16 MHz
  • 1x RS232 interface
  • 1x SPI interface
  • 6x relay outputs (230V/6A)
  • 8x digital outputs (2A @12V or 24V)
  • 8x analog/digital inputs
  • 10A input current max

8cb6d192e0aa469906eeb2b889ec8146_large

Key Maxi specs:

  • MCU: ATmega2560
  • RTC
  • Clock speed: 16 MHz
  • Ethernet connection
  • 2x RS232 interface
  • 1x RS485 interface
  • 1x I2C interface
  • 1x SPI interface
  • 10x relay outputs (230V/6A)
  • 12x digital outputs ( 2A @12V or 24V)
  • 12x analog/digital inputs
  • 20A input current max

00abfb9840ea9be26fcda783c07e395d_large-1

Key Mega specs:

  • MCU: ATmega2560 MCU
  • RTC
  • Clock speed: 16 MHz
  • Ethernet connection
  • 2x RS232 interface
  • 1x RS485 interface
  • 1x I2C interface
  • 1x SPI interface
  • 16x relay outputs (230V/6A)
  • 24x analog/digital inputs
  • 12x digital outputs – high side switch (2A @12V or 24V)
  • 12x digital outputs – half-bridge (2A @12V or 24V)
  • 20A input current max

Interested in learning more? You can check out Controllino’s official page here. Those wishing to purchase the Mini, Maxi and Mega can now do so for € 119.00, € 199.00 and € 269.00, respectively.

This 6-axis robotic 3D printer was inspired by spiderwebs


This project looks to eliminate the line between “designing” and “fabricating.”


As creepy and crawly as spiders may be, their inherent ability as Makers have inspired a new generation of additive manufacturing. Based on the micro-formation of webs, a team of designers in Shanghai has devised a spatial 3D printer based on a 6-axis robotic arm.

cf4d3f6cc3e958709d7224f05539671a

“It is more like the revival of craftsmanship in digital age. Factories only require technology showing capabilities in making things; but designers must arm themselves with technology that perform smart strategies outside the scope of replacing human labor,” the team reveals.

The project — aptly dubbed Robotic 6-Axis 3D Printing — is a highly-integrated installation that combines modern-day robotics, additive manufacturing and an interactive interface. While the KUKA-based system uses the same material (ABS) as traditional printers, the extrusion process itself resembles that of silk threading often seen by arthropods. According to its creators, this enables printing in a more simple, self-supporting form. Based on a standardized 3D printing module, the tandem of a built-in sensor and heater ensure that the temperature remains within appropriate range, while tubes send compressed air to the front of printing head to cool the end result. Subsequently, the system is capable of printing a biomimetic object.

7709b27898d2b8be0f5a3ec1c2b05ea7

“By studying the material and structure performance of 3D form in nature, we figured out a way to incorporate biomimetic fabrication strategy into 3D printing process. And by designing the special robotic-end effector and utilizing the great flexibility and accuracy of KUKA robot system, the biomimetic fabricating process has been fully realized,” the team writes.

At its core lies a petaloid turn-plate equipped a fixed printing head in the center tasked with extruding linearly, while three movable print heads attached beside on another create separate and sinusoidal wave shaped materials to reinforce the object’s structure. The rotation of the turn-plate leads to the oscillating motion of the three movable printing heads, which in turn produces the spindle-knot-like motion trail.

Similar to other devices on the market today, the robotics are based on an Arduino Mega 2560 (ATmega2560) while the machine is driven by four individual servo motors. One motor is responsible for handling the rotating motion of the central turn-plate, while the speed of material delivery and rotation can be changed via a switch on the center stack.

0932af1786f6ca9f9fe088c69c3b0d1b

Interested in learning more? Head over to the project’s official page here, and watch it extrude in spider-like fashion below.

http://vimeo.com/111879424

Recreating the game of Flappy Bird with AVR


If you’re missing Flappy Bird, just whip out an Arduino, some components and code, and get playing.


There have been quite a number of hardware crossovers in the gaming world as of late, with various physical incarnations of Dong Nguyen’s Flappy Bird taking the world by storm. After the Super Mario-like game was pulled from app stores last year, the market experienced an uptick in cloned apps and makeshift recreations hoping to cure the public’s addiction and fill the void in our leisure time. And as expected, it wasn’t before long that Makers joined the party by exercising their imagination to bring it to life.

Most notably, Fawn Qui gained mainstream popularity last year with her mockup in a cardboard box, which was built around an Arduino, three motors and a magnet sensor. Qiu’s iteration used a scrolling background with two controls to move the bird up and down to avoid obstacles, while any wrong move would cause the box lid to close and to emit a “game over” sound.

maxresdefault

Now, more Makers have have launched their own Atmel based versions. Take Aron Bordin, for example, who has taken a more minimalistic approach using simply an ATmega2560 powered board and 16×16 LED Matrix. Aside from the ‘duino, the only other components necessary were a push button and a 1K resistor attached to a breadboard to control the flapping. The project was coded using both the Timer Object and Led Matrix Helper libraries, while a few easy-to-follow steps and diagrams can be found on its official page.

screenshot-from-2015-01-29-115401

Those Flappy Bird fanatics looking for a little more complexity will enjoy another rendition from Maker “huy,” who essentially swapped out the aforementioned 16×16 matrix for a Nokia LCD screen. In similar fashion, the unit is driven by an Arduino — this time an Uno (ATmega328) — along with a single push button commissioned for commands. The code and the project’s simple pair of steps can be found on its Hackaday.io log.

7324271421836398724

Then, there’s SuperDuino. Created by Maker Mohsin Farooq, it’s a coin cell operated, Arduino-compatible board with a built-in 1.7-inch color display and a three-axis accelerometer. Powered by an ATmega328, the project was a suitable match for a wide-range of DIY games, gadgets and wearable devices. As you can imagine, this includes a game controller for Flappy Bird.

Arduino’s-SuperDuino-Flappy-Bird

The ATOM 2.0 isn’t just any Delta-style 3D printer


Makers, meet the most refined Delta printer yet.


Over the past few years, the Maker Movement has ushered in a wave of Delta-style 3D printers. Given their open-source, easy-to-assemble and expandable nature, not to mention affordability, the machines have become a popular choice for hobbyists throughout the world. However, these DIY devices have been found to sometimes be on the flimsier and fragile side. Well, one Taiwanese company is looking to change all that by launching what they believe to be “the most refined Delta printer yet.”

IMG_5191B-1030x686

Unlike some others we’ve seen before, the ATOM 2.0 embodies a much sturdier look and feel than its predecessors, constructed entirely out of metal using a modular assembly system. Based on an Arduino Mega 2560 (ATmega2560), the printer boasts a spacious build volume and packs an all-new triple fan cooling system in its center hub. One fan is dedicated for stabilizing the hot end temperature, while remaining dual fans provide accelerated cooling for freshly laid down filament. This, of course, enables precise prints in relatively fast speeds, at extreme angles, and even bridges without support material.

“We’ve re-designed the entire hot end assembly from the ground up and custom built our parts so they can fit together seamlessly to provide a super consistent extrusion of filament. The hot-end is CNC milled from titanium and, paired with the custom aluminum heatsink, ensures that the heating stays in a very localized area for better temperature control and better preservation of filament integrity,” the team writes.

ATOM2-TopViewCroppedB-1030x686

Designed with Makers in mind, the megaAVR powered ATOM 2.0 not only features a single extruder, but its unique modularity allows for users to swap out for double extrusion attachments or a laser engraver. With various conditions and factors meticulously controlled, the consumer-friendly machine print extremely thin layers, so thin that the layers are almost indistinguishable by the eye.

  • Printer size: 42cm x 42cm x 76cm
  • Printer weight: 13kg (28.6 lbs.)
  • Layer thickness: 0.5mm (50 microns)
  • Nozzle diameter: 0.4mm
  • Filament type: 1.75mm ABS and PLA
  • Connectivity: SD Card, USB

ATOM2-PrintBedB-1030x686

The company has launched a crowdfunding campaign on the Chinese funding site ZecZec, where it has already garnered its initial goal. The ATOM 2.0 is currently priced at $1,599, with the first batch of printers expected to be shipped in May 2015. Interested in one of the sleekest, most comprehensive Delta printers to date? Head over to its official page here.

BQ hopes to inspire young Makers through 3D-printed robotics


“What you see is remembered, what is done is learned.”


Those who say learning can’t be fun have surely never come across BQ’s latest set of robotics kits that provide young Makers with all of the necessary tools to construct their very own robot and control it right from their mobile device.

IMG_20140116_122832_preview_featured

The kit is comprised of 10 components and a battery-holder, each of which are used to assemble the electronics of a vibrantly-colored PrintBot. The body of the robot is constructed entirely through 3D printing, where like 3DRacers, Makers have the option of either ordering the frame online or creating their own a printer is readily accessible. For those with programming knowledge, BQ even enables users to customize their PrintBot by developing and installing its own code.

Once a Maker has completed piecing together the friendly little bot, they can traverse its environment using an Android smartphone or tablet via its embedded Bluetooth module. In addition, the easy-to-use kits are packed with IR and light sensors, a potentiometer, a buzzer, LEDs, mini servos and a control board based on the versatile ATmega328.

Screen-Shot-2015-01-13-at-10.08.10-PM

Advocates of inspiring future tinkerers to pursue STEM disciplines, the BQ team seeks “to revolutionize the learning process, even from the very first stage, playing. Education is our greatest resource to be exploited to change and improve the world in which we live.”

In addition to its DIY robotics kits, BQ recently debuted a desktop 3D printer, the Witbox. The device boasts a rather big build volume of 29.7cm x 21cm x 20cm, with a resolution of 50-300 microns and at a recommended speed of 60mm/second, giving it the capacity to print large-scale objects and multiple parts simultaneously. Its innovative design also allows for multiple devices to be stacked, making for space-saving storage in any makerspace or lab. This is possible through the Witbox’s reinforced chassis and specially-designed power supply system, located inside the printer.

While the machine is clearly not a toy for children, the company emphasizes that the Witbox is, indeed, safe for young Makers looking to explore. The 3D printer is equipped with a locking front door system, a nice feature preventing access during printing. Based on an Arduino Mega 2560 (ATmega2560) and RAMPS 1.4, the machine is entirely open-source and can run a variety of software including Slic3r, Cura, Pronterface and Repetier.

bq-witbox-08

Interested in learning more about both PrintBots and the Witbox? Head on over to BQ’s official page here.

Little Monster is a 3D printer with big promise — and an ATmega2560


A desktop friendly consumer 3D printer that won’t scare your wallet. 


You may recall the Cobblebot 3D Printer from its successful Kickstarter campaign last summer. Like a number of other low-cost devices on the market today, it was powered by an Arduino Mega 2560 (ATmega2560) and boasted an impressively-sized build area, allowing Makers to create objects up to 15″ x 15″ x 15”. Not too shabby for a $300 consumer desktop printer, if you ask us.

photo-1024x768

Led by Jeremiah Clifft, the team has returned with its latest affordable, easy-to-assemble machine that they hope will help redefine the market. Dubbed Little Monsterits incredibly minimalist design and “frighteningly awesome performance” will surely make it a hit amongst Makers everywhere. The $199 device, which was designed to provide a desktop 3D printer experience capable of high speeds and high resolution, sports a a standard build area of 6″ x 6″ x 6” that is also expandable up to 10″ x 10″ x 10″.

Aiming to capitalize on the success of his original large-build Cobblebot, Clifft and his team have just launched a new Kickstarter campaign.

“Whether you are looking to put your creativity to work and bring your ideas to life or to start a business, Cobblebot Little Monster can help you get there. Our high quality and low-cost 3D printer makes Cobblebot Little Monster an unequaled consumer 3D printer that can be used for business or personal use,” Lifft writes.

cobblebot-3d-printer-4

Although the sub-$200 3D printer is designed to primarily print using PLA and ABS filament, those interested in other materials can however purchase an upgradeable all-metal hexagon hotend that will enable extruding in other commonly-used materials such as nylon, polycarbonate, flexible filament, LayWood, PVA and HDPE.

Aside from the super low price tag, perhaps what makes the Little Monster 3D Printer the perfect desktop 3D printer for casual users is its simplistic assembly and calibration, which can be done in just about an hour — compared to the better part of a day for more complex FDM 3D printer models.

8b774d4ad69bd95f912f9aeafa367b90_large

In addition to being driven by an ATmega2560 and RAMPS 1.4, other notable specs include:

  • Layer Height: 100-300 micron
  • Print Speed: 30 – 60mm/sec (which can be faster with hotend upgrade)
  • Weight: ~10 lb
  • Compatibility: Windows, Mac or Linux
  • Connections: USB and SD card
  • Filament Size: 1.75mm
  • Power Supply: 12V 30A recommended )
  • Stepper Motors (x4): NEMA 17 stepper motors
  • LCD: Model 2004 LCD (Upgrade: Model 12864 LCD)
  • SD Card Slot: Included
  • Stepper Drivers: A4988 (Default: Allows 1/16 stepping)
  • Heated Bed: PCB heatbed is an optional upgrade

Those interested in learning more or backing this desktop printer can head on over to its official Kickstarter page, where the team is currently seeking $100,000. If all goes to plan, shipments to early bird backers will begin late spring/early summer with fulfillment expected to be completed by the end of the year.

ATmega2560 powers this interactive robot orchestra


Artist creates a robotic orchestra that lets you conduct an algorithmic symphony with hand gestures.


Moscow-based artist Dmitry Morozov — commonly referred to as ::vtol:: — is no stranger to Bits & Pieces. From creating digitized images from air pollution to cyborg-like instruments, prolific Maker has unveiled some slick Arduino-based designs in recent months that combine both modern music, robotic concepts and a contemporary take on creative art. However, none may compare to his latest project: Nayral-Ro.

6_670

Nayral-Ro is best described as an orchestra comprised of 12 different robotic manipulators, each of which equipped with a sound-transmitting speaker and placed onto a podium. When combined, the robotic arms form a single multi-channel symphonic sound. In order to interact with the orchestra, ::vtol:: used a Leap Motion controller to guide the robots and sound through simple hands gestures in the air, just as any conductor would lead an actual symphony.

IMG_5196_670

::vtol:: powered the design using an Arduino Mega (ATmega2560), a modified OWI-535, some servo motors and actuators, along with a 12-channel sound system. As for the software, the Maker turned to the Pure Data language and ManosOSC to turn hand gestures of various heights into both audio and visual control.

IMG_5201_670-1

When approaching the exhibit, a viewer must only wave their hands as if they were a magic wand to trigger the tiny robotic performers. Nayral-Ro features a algorithmic system, in which sound and musical composition are produced in real-time, while the acoustic environment changes simultaneously with the process of creating the musical piece.

“Due to constant displacement speakers in space, changing direction of the sound and the algorithms for generating compositions, the orchestra creates a dynamic soundscape,” Morozov explains.

At the moment, the piece is on display at the Garage Museum of Contemporary Art in Moscow. According to ::vtol::, future iterations are in the works. Perhaps when put into the hands of musicians, this could yield even more symphonic sounds. Intrigued? Learn all about the Maker masterpiece here, or see it in action below.

Check your heart rate with this Arduino-based sensor


No more trips to the pharmacy or buying pricey detectors! View your pulse and calculate your heart rate with this simple DIY design.


With the emergence of wearable trackers today, there seems to be more ways than ever before to electronically detect a heartbeat. However, Maker Orlando Hoilett wanted to create an even simpler approach by using just a few components and an Atmel based Arduino.

heartbeat-sensor

His DIY finger-mounted pulse sensor features a light source, a detector and a high gain circuit, which also sports a finger cuff with an integrated IR LED and photodiode. As blood is pumped through the body, the volume of blood in extremities fluctuates with the beating of the heart. This change in blood volume in the finger tips can be sensed by shining a light through the finger and detecting the amount of light that passes in and out of the finger using a photodiode.

“The photodiode produces a current that is converted to a voltage using a transimpedance amplifier (current-to-voltage converter). The signal is then high-pass filtered to remove the DC bias from the signal and then biased at Vdd/2 so that the wave is symmetrical about 2.5 V. We have a final gain stage that amplifies the AC part of the waveform (the actual pulse),” Hoilett shares on his Hackaday page.

3359121416086662749

The sensor is hooked up to an op amp circuit. Once the current produced by the photodiode is converted to a voltage by an amplifier and read by the Arduino (while the Maker notes that any ‘duino can be used, a Mega (ATmega2560) was selected for this project). This information is then relayed to a computer via serial. Hoilett has written both a LabVIEW and Processing program to plot the data as a waveform.

Want to build your own heartbeat detector? Head over to the project’s official page here.