Tag Archives: microcontroller

ATmega328P-based TinkerBots hit Wired’s Gadget Lab

TinkerBots is an Atmel-powered (ATmega328P MCU) building set that enables Makers and hobbyists of all ages to easily create an endless number of toy robots that can be brought to life without wiring, soldering or programming.

http://vimeo.com/91590326

Indeed, TinkerBots’ specialized “Power Brain” and kinetic modules twist and snap together with other TinkerBots pieces – and even LEGO bricks – adding movement and interest to whatever sort of robot a Maker can imagine and build.

The centerpiece of the TinkerBots building set is a square, red “Power Brain” module (approximately 1.5”x1.5”x1.5”) that contains Atmel’s ATmega328P microcontroller. This module is tasked with providing wireless power and data transmission to kinetic modules such as motors, twisters, pivots and grabbers.

Kinematics launched its official TinkerBots Indiegogo campaign a few weeks ago, with the building set garnering coverage from a number of prominent publications, including Wired’s Gadget Lab.

“Once you snap together a contraption, you can program it in a few different ways. By pressing the ‘record’ button on the Powerbrain brick and twisting the robot’s motorized parts, it will remember those movements and replicate them when you hit the ‘play’ button. And if you want to step it up and write your own code, you can also program your robots via the Arduino IDE,” writes Wired’s Tim Moynihan.

“TinkerBots started out as an Indiegogo campaign, and it blew past its $100,000 goal in less than a week; its funding now is nearly double that amount, with about a month left to go in its campaign. You can preorder various kits now, and prices vary depending on the number and type of pieces in each set. For $160, you get a basic car-building set with the Powerbrain, motors, wheels, a twister joint and some other bricks. There’s an animal-themed set for $230, a grabber claw set for $400 and $500 gets you a fully loaded kit with bricks to build anything.”

Interested in learning more? You can check out the official Indiegogo TinkerBots page here.

Atmel-powered Printoo featured on Gigaom, EDN

Printoo – powered by Atmel’s ATmega328 microcontroller (MCU) – is a lineup of paper-thin, low-power boards and modules that offer Makers and devs new levels of creative flexibility.

The open source platform, created by the Ynvisible crew, made its official Kickstarter debut last week and has already been covered by a number of prominent publications, including EDN, Gigaom and Quartz.

“A spin-out from YDreams, Ynvisible was founded in 2010 with the goal to bring more interactivity to everyday objects and surfaces, mostly through the use of flexible and printed electronics including the company’s fully transparent electrochromic display. The paper-thin display, which only becomes visible when activated can easily be integrated with different background graphics,” writes EDN’s Julien Happich.

“Running Arduino software, the first Printoo packs include novel printed modules including LED light strips from VTT lab, 1.5V printed batteries from Blue Spark and Enfucell, 0.350mm thin organic photodetectors from ISORG, printed polymer solar cells from Mekoprint, and Ynvisible’s own transparent printed displays running from 1.5V. Also included are modules like Bluetooth LE, DC motor control, flexible LED matrixes, and a variety of sensors. The Printoo core is powered by the Atmel ATmega328 microcontroller.”

As Gigaom’s Signe Brewster notes, printed circuits are currently being considered for everything from shipping labels to tiny spacecraft NASA might send to Mars.

“Ynvisible expects Printoo to find a home among 3D printer owners and DIYers already familiar with Arduino,” Brewster explains.

“The modules are small enough to slip into a 3D printed object, opening up ways to easily create robots and other moving or connected devices. They could also be worn as a bracelet or sewn into clothes.”

Meanwhile, Lio Mirani of Quartz points out that bendable electronics could be the future of the rapidly evolving Internet of Things (IoT).

“When the first Harry Potter movie came out in 2001 the idea of the Daily Prophet, a newspaper that contains moving pictures, qualified as magic. A Kickstarter campaign by Ynvisible, a Lisbon-based technology firm, is bringing that magic to life with its displays, held together with paper-thin circuitry,” writes Mirani.

“Ynvisible’s ‘vision’ is to ‘bring everyday objects to life.’ For that to happen, it isn’t just processing power that needs to get cheaper and smaller, which it has, but the input and output mechanisms also need to be smaller and easily adaptable. Ynvisible is betting there is a broad market for such technology. The roaring success of its Kickstarter campaign is an early validation of that belief.”

Indeed, Ynvisible has already raised close to $36,000 – with support from almost 300 backers. Interested in learning more? You can check out the project’s official Kickstarter page here.

Getting started with Adafruit’s Atmel-powered FLORA

Adafruit’s Becky Stern and Tyler Cooper have penned a new book about the company’s popular Atmel-powered FLORA platform.

Titled “Make: Getting Started with Adafruit FLORA,” the upcoming book details various wearable electronics projects that can be designed and built using the device.

Indeed, FLORA weighs in at 4.4 grams and measures only 1.75 inches in diameter. Featuring Arduino compatibility, the platform is one of the most beginner-friendly way to create wearable projects.

“This book shows you how to plan your wearable circuits, sew with electronics and write programs that run on the FLORA to control the electronics,” Stern explained in a recent blog post.

“The FLORA family includes an assortment of sensors, as well as RGB LEDs that let you add lighting to your wearable projects.”

As we’ve previously discussed on Bits & Pieces, Adafruit’s wearable electronics platform is built around Atmel’s versatile Atmega32u4 microcontroller (MCU).

The microcontroller boasts built-in USB support, eliminating the need for pesky special cables and extra parts.

According to Adafruit’s Limor Fried, FLORA is extremely “beginner-friendly.” Indeed, the device is difficult to accidentally destroy by connecting a battery backwards, thanks to a polarized connector and protection diodes.

Meanwhile, an onboard regulator ensures even connecting a 9V battery won’t result in damage.

Interested in learning more about Adafruit’s Atmel-powered FLORA? You can check out the platform’s official page on Adafruit here and sign up for book updates here.

Making your own ATtiny (model) police light



Jan Henrik has designed a multi-functional police light for model cars using Atmel’s ATtiny tinyAVR (25/45/85) microcontroller (MCU).

The project – which recently surfaced on Instructables – features several “animations” or sequences that can be easily changed by simply pressing a button on the circuit board.

“It has two channels, which can be controlled with PWM,” Henrik explained.

“This allows us to add serval animations or police light flashing sequences. The maximum rated current per channel is 500mA, [enabling] us to control high power LEDs, LED stripes or old light bulbs.”

Aside from Atmel’s ATtiny MCU, key project components include:

  • Two buttons (off/on)
  • Two resistors (1kOHM)
  • Two resistors (220kOHM)
  • Two resistors (450OHM)
  • Two diodes (1N4007 or Equal)
  • Terminals with screws
  • One 8 pin IC holder
  • Two BC548 (or Equal)
  • Un-isolated wire
  • One circuit board

As you can see in the circuit board layout above, the two output channels are on pins 0 and 1 (PWM outputs), while pins 3 and 4 are designated as input pins for the buttons.

To program the ATtiny, Henrik used an Arduino Uno with a shield, although as he points out, a simple breadboard will suffice.

On the software side, Henrik wrote two separate programs for the police light. The first is easier to understand and alter, while the second features German and American police light sequences, along with a more responsive menu.

Interested in learning more? You can check out the DIY ATtiny police light official Instructables page here.

Self-learning ‘copter navigates with an ATmega644 MCU



Akshay Dhawan and Sergio Biagioni of Cornell University have designed a self-learning (RC) helicopter powered by an advanced machine learning algorithm paired with Atmel’s ATmega644 microcontroller (MCU).

Aside from Atmel’s ATmega644 MCU, key project components include:

  • Syma S107 Micro Helicopter
  • Custom PC Board (for MCU)
  • RS232 UART connector
  • Max233CP
  • Power Supply
  • Infrared Emitter 365-1056-ND
  • Infrared Receiver 160-1030-ND
  • Wooden platform
  • Balsa wood 24 inch dowel
  • White board (holds phototransistor circuit)

As HackADay’s Will Sweatman reports, the ‘copter is attached to a boom which restricts its movement down to one degree of motion. Meaning, the helicopter can only move up from the ground, rather than side to side or front to back.

“The goal is for the helicopter to teach itself how to get to a specific height in the quickest amount of time. A handful of IR sensors are used to tell the ATmega644 how high the helicopter is,” writes Sweatman.

“The genius of this though, is in the firmware. Akshay and [Sergio] are using an evolutionary algorithm adopted from Floreano et al, a noted author on biological inspired artificial intelligences.”

Essentially, the ‘copter creates random “runs” and then check the data. The runs that are closer to the goal are refined, while the others are eliminated in a process that emulates evolution via natural selection. In short, the project’s goal is for the ‘copter to start at Point A, go to Point C and hover. The allotted time is 10 seconds per run, with the helicopter expected to teach itself the routine as quickly as possible.

“A neural network is used to determine at what level the throttle should be at to achieve the highest Fitness Value. This network is a part of the Evolutionary Algorithm that runs in the firmware. Basically, it starts off with random values that generate random levels of throttle,” Sweatman explains.

“The values that achieve the highest Fitness Value get ‘mutated’, while the others are discarded. The mutations in the values are done at random and the process repeats. In the end, the firmware learns the best throttle levels to achieve the goal of being at Point C for the longest time in the allotted 10 seconds.”

Interested in learning more about the self-learning ‘copter? You can check out the project’s official Cornell page here.

Video: Atmega328p MCU drives LINBUS signal injector



Zapta has created a LINBUS signal injector powered by Atmel’s Atmega328p microcontroller (MCU) to simulate an automatic “Sport Mode” button press in his vehicle.

Essentially, the Atmel-powered signal injector connects on a LIN Bus between the master and slave – observing and manipulating the data flowing on the line. 

The device is also equipped with a 115kbs serial interface for programming and logging bus activity on a standard computer, along with two LIN bus ports.

“One acts as a slave and should be connected to the LIN bus master and another that acts as a master and should be connected to the LIN bus slave,” Zapta explained in a recent blog post.

“The firmware includes a set of files named with the prefix custom_ that implements an application specific logic (simulating pressing the Sport Mode button of my car whenever the ignition is turned) and should be modified to match the target logic and behavior.”

In addition, the USB/Serial port is also compatible with the Arduino IDE (emulating an Atmel-powered Arduino Mini Pro) which can be used to edit/compile/download software updates.

“The serial output of the injector can be viewed directly with a terminal emulation software or using the provided script that adds timestamp,” Zapta added. 

”The injector provided sample application is configured for 19,200bps linbus that uses LIN V2 checksum but can be configured for busses with different speeds and checksum formula.”

Interested in learning more? You can check out the project’s official page and relevant files here.

ATmega328 powers paper-thin Printoo board

Printoo – powered by Atmel’s ATmega328 microcontroller (MCU) – is a lineup of paper-thin, low-power boards and modules that offer Makers and devs new levels of creative flexibility.

The open source platform, created by the Ynvisible crew, made its Kickstarter debut this week.

“Printoo is the first development board that is flexible and light enough to bring any of your 3D printed objects to life – no matter what shape it is. Add Internet and Bluetooth connectivity, input, output, motorization, light and motion sensing and power. Even solar, to almost any configuration or weird shape you print,” a Ynvisible rep explained.

“Plug the modules together, tinker with the Arduino sketches we are making available, and use the apps to connect and control Printoo – bringing your ideas to life. [Plus], we built the apps you need to connect Printoo to the Internet. You’ll be able to remotely control your Printoo creations or use them to trigger or perform action on the Web – from your smartphone, tablet or laptop, from anywhere in the world.”

As we’ve previously discussed on Bits & Pieces, the core Printoo module is powered by Atmel’s ATmega328 microcontroller (MCU).

Additional hardware modules include a display driver, battery connector, batteries (soft and ultra-thin), battery holder, sensor module, solar cell connector, conductive ink adapter, DC motor drivers, electrochromic display, organic photodetector slider, polymer solar cell and LED strip.

The Ynvisible crew has also created a number of Printoo-powered demos such as a Bluetooth fan, 3D printed watercraft, solar powered 3D printed hovercraft, “girlfriend communicator,” electronic voter and the Printoo Man.

Interested in learning more? You can check out the project’s official Kickstarter page here.

Video: Designing a mesh networked conference badge

Andrew Nohawk recently attended ZaCon V, a free South African security conference. In honor of the event, Nohawk decided to design an interactive mesh networked conference badge.

As HackADay’s Mathieu Stephan reports, the slick platform is powered by Atmel’s stalwart ATmega328 microcontroller (MCU). Additional features include a Nokia 5110 LCD, a 433MHz AM/OOK TX/RX module, a few LEDs and an assortment of buttons.

“The badges form a mesh network to send messages. This allows conversations between different attendees to be tracked,” Stephan explained.

“Final cost was the main constraint during this adventure, which is why these particular components were chosen and bought from eBay & Alibaba.”

According to Stephan, the first PCP prototypes were CNC milled and required quite a bit of soldering to finish off the 77 final boards. Meanwhile, the protocol itself was verified using Maltego.

“Of the 77 badges soldered together (at various stages of ‘full working order’ – especially the BYOB people) the front computer captured 9810 transmissions, 49 badges and 201 different relationships,” Nohwak confirmed in a blog post detailing the project.

Interested in learning more? You can access the relevant code, raw sqlite database and Maltego graphs from GitHub here or visit the project’s official blog post here.

Atmel’s ATtiny85 MCU powers ButtonDuino dev board

ButtonDuino – which recently made its Indiegogo debut – is an uber-mini (0.73in x 0.718in), USB programmable development platform powered by Atmel’s popular ATtiny85 microcontroller (MCU).

The open source ButtonDuino is breadboard compatible, so it plugs, with no pin conflict, directly into any standard pitch (2.54mm) breadboard as well as vero-boards. In addition, the platform can also be easily stacked with any ButtonDuino compatible ButtonShields and is expandable via I2C or SPI.

Upcoming ButtonShields include:

  • Real time clock (RTC)  – I2C
  • EEPROM – I2C
  • Temperature sensor  – I2C
  • RGB LED
  • Pressure resistive sensor
  • Coin battery pack
  • 3-axis digital compass

“[Users can] create amazing Graphical User Interfaces (GUI) with LabVIEW by National Instruments. All you need is the same micro-USB cable that you already have to program and power ButtonDuino,” the ButtonDuino crew explained.

“The best feature? ButtonDuino’s schematics, code and bootloaders are all free and open source. All the details will be released once the product is finalized.”

Aside from Atmel’s popular ATtiny85 microcontroller (MCU), key ButtonDuino components include:

  • USB Regulated power up to 800mA via external power supply or 500mA from PC/laptop
  • Programmable via USB or AVR mkII
  • Arduino IDE 1.0+ (Windows/OSX/Linux)
  • 6 x available I/O Pins and I2C and SPI expandable
  • 8k flash memory without bootloader (6k after USB bootloader)
  • 3 x 8 bit hardware PWM pins
  • 4 x 10 bit ADC pins
  • Power LED
  • Test LED (Pin 1)
  • Soon to be available in deep red (PCB silkscreen)

Interested in learning more?

You can check out ButtonDuino’s official Indiegogo page here.

Mixed martial arts training with Fight Coach

Mixed martial arts (MMA) is a full contact combat sport that allows the use of both striking and grappling techniques from a variety of other fighting genres.

Image Credit: Wikipedia

While an experienced trainer is essential to prepare for an upcoming bout, aspiring fighters may also want to step into the practice ring with Fight Coach.

As HackADay’s Will Sweatman reports, the training platform, created by Cornell University’s Vincent Nguyen and Jooyoung Park, is built around Atmel’s ATmega32U4 microcontroller (MCU), an MPU-6050 6-axis accelerometer and a RN-41 Bluetooth module – all packed into a pair of boxing gloves.

“Fight Coach is a sensor that can be embedded into combat-sport equipment that can allow combat athletes to get a better gauge of their performance. By tracking the athlete’s movement and displaying it in real-time, Fight Coach can help athletes optimize their training,” Nguyen and Park explained on the project’s official page.

“In addition, Fight Coach is small enough to fit inside muay thai shinpads, boxing gloves, or even on your hand wraps. [Plus], Fight Coach records data from the fighter’s gloves so that it can not only be analyzed to improve performance, but also interact with the fighter in real-time.”

Currently, Fight Coach offer three primary modes of training: defense, damage and free-training, which is likely more than enough to help fighters hold their own in the ring.

Interested in learning more about Fight Coach? You can check out extensive documentation on the project’s official Cornell page here.