Tag Archives: MCU

ATtiny85 goes uber-mini with The Nanite



The Nanite is an uber-mini dev board built around Atmel’s ATtiny85 microcontroller (MCU). The board – which measures 0.4″ wide – boasts the same pin configuration as a DIP ATtiny85.

“[I wanted] to have my own ATtiny85 based development board based on a USB bootloader and optimized for the ubiquitous 170 point mini-breadboards. [The Nanite] sports a reset button, but lacks an integrated voltage converter as it is supposed to be powered by USB,” Nanite creator Tim explained in a recent blog post.

“Apart from the size considerations, the Nanite also uses a neat circuit trick to share a single pin with the LED and the reset button. The circuit of the board is shown below, the circuit attached to the reset pin, PB5, is to the right.”

Meaning, if PB5 is configured as the standard reset, the push button will simply act as a reset button, with the LED taking on the role of a pull up for the reset button. However, if reset is disabled and PB5 is configured as a normal I/O pin, the state of the button can be polled by simply reading from the port.

“The LED can be turned on by setting the output to ‘low’ and turned off by configuring the output into a high impedance state. It is not advised to set the output ‘high’, since in that case the pushbutton could short the output to ground,” said Tim.

“I use micronucleus in a configuration where it only starts when the button is pushed. This means that the user program is started without a delay after the device is powered up.”

Meanwhile, the functionality of the reset button is emulated via software, periodically polling the state of the button and activating the watch dog timer if it is pressed. If the watch dog times out, the device resets.

“Apart from the LED output, user interaction and soft-reset button, PB5 can also be used as a simple serial debug output – connected to the RX input of a serial to USB adapter. I use a simple software-UART implementation and a macro to redirect STDOUT to the serial output. This allows very convenient debugging with printf(),” he added.

Interested in learning more? You can check out Nanite’s official page here, while the Eagle design files and example code are available on Github here.

ATmega328 powers open source WatchDuino


Watch-a got on your wrist?


The WatchDuino is an open source project that combines inexpensive electronic parts with complex Arduino (C++) code.

Key project components include Atmel’s versatile ATmega328 microcontroller (MCU), a crystal oscillator, LiPo battery and Nokia’s 5110 LCD screen.

“WatchDuino is not only programmable, it’s fully hackable from hardware to software. You can build your own out of [inexpensive] components [available] at a local electronics store,” a WatchDuino rep explained.

“[Plus], you have the full source code of the watch’s operative system at your disposal. The ability to build the whole thing from scratch and being able to hack at every level of it will greatly appeal to electronics hobbyists and Makers.”

Currently, primary WatchDuino features include:

  • 

Time and date (analog and digital output)
  • Alarm / countdown (with custom music)
  • Games (Pong & Snake)
  • Rechargeable battery (via USB) and meter
  • Low-battery mode (lasts up to two years with a 240mAh battery)
  • Integrated screen light
  • Compact design
  • Framework-like architecture to easily program custom screens

On the software side, the WatchDuino can be programmed via two methods: hacking the system itself or simply customizing various features and apps.

“Since WatchDuino’s software is open source, you have the full source code at your disposal to make any modifications you like,” the rep added.

The WatchDuino will likely hit Kickstarter at some point in the near future as a fully assembled device. In the meantime, you can check out the project’s official page here.

What’s behind the Star Wars stormtrooper mask?

John Edgar Park of DisneyToon Studios recently designed and built a Star Wars stormtrooper helmet music box. Dubbed the Imperial Melody Discharger, Park’s creation was showcased at the Stormtrooper Helmet Art exhibit in downtown LA on Star Wars Day (May 4th).

“My intention for the piece was to provide a view behind the mask of the anonymous Stormtrooper, while creating a fun, interactive moment for the person experiencing it,” Park explained in a recent article published on BoingBoing.

“I wasn’t sure exactly how to get there, but I was certain I’d need to cut the vinyl helmet open. You only have one shot at that, so I decided to first cut apart a CG model inside Maya and rig it with pivot points that could be used in the real world for the facial articulation.”

For the brains of the operation, Park used an Atmel-based Arduino Uno (ATmega328 MCU) with a prototyping shield, soldiering cable interconnects, a piezo buzzer and a Pololu Pushbutton Power Switch for power management.

He then programmed the Uno with a small sketch instructing the board to wait for a button press, open the right half then the left half of the mask, play the Imperial March theme on the piezo buzzer and close the two mask halves.

“I’m very happy to say that my Imperial Melody Discharger (named by my friend Mike Greenholt) was a big hit with patrons at the show opening at the Robert Vargas Gallery in Downtown L.A. I was thrilled to watch people interact with it and smile,” he added.

Interested in learning more? You can check out the original BoingBoing article here for detailed build instructions.

Atmel-based ChronosMEGA measures time

A Maker by the name of N.fletch has debuted the ChronosMEGA, a beautifully designed wristwatch powered by Atmel’s versatile ATmega328P microcontroller (MCU).

“I’ve always loved watches; not only are they aesthetic and beautiful, but they are functional, precise and useful. An elegant fusion between engineering and art; two normally opposed perspectives, now joined in harmonic unison,” N.fletch explained in a recent Instructables post.

“However, all technologies like the dial-up internet, the CVT monitor and the abacus, inevitably will become relics of our past with the advent of advancing technology and have since become less pragmatic for the typical person to own. Unlike these archaic technologies, the wrist watch still thrives on the wrists of many, standing forever as a testament to one of mankind’s greatest inventions: the measurement of time.”

Aside from Atmel’s ATmega328P, key ChronosMEGA specs include binary time encoding (via 10 Blue 1206 LEDs), a slew of buttons to control time, sleep mode and display, a 32.768kHz external crystal and an 8MHz internal clock source.

Additional key features?

  • Micro-USB and charge management controller (for 400mAh Li-ion battery)
  • Draws 4uA in its Deep Sleep mode to last up to 11 years on a single charge
  • Battery indicator 0603 LED
  • Boost TI switching regulator for power regulation
  • Low loss PowerPath controller IC for power source selection
  • Total form factor of 10mm x 40mm x 53mm
  • Custom 3D designed case cast in pure polished silver
  • Genuine crocodile leather watch band

As you can see in the videos above, the layout of the watch configured in a circular array of 10 LEDs. Four of the LEDs account for hours, while six of the LEDs account for minutes.

“The LEDs count in binary to display the time on the watch face. By utilizing a combination of the 10 LEDs, the watch can display any possible time accurate to the minute,” N.fletch continued.

“This is a very clean and elegant way to display time. I also really like this technique because of its esoteric and mysterious nature.”

In terms of the MCU, the ATmega328P is wired in a straight-forward manner, connected to power and ground, with a pull up resistor on the RESET pin. Essentially, the AVR is tasked with driving all the LEDs from its GPIO, although one of the MCU’s AVR’s ADC pin is connected to the battery to detect the voltage level. As such, the watch is equipped with a small red status LED to indicate when battery power is low.

“The AVR has a 32.768 kHz crystal wired to its XTAL pins. It uses the 32.768 kHz crystal to drive its Timer2 module asynchronously for counting the seconds, [while] its internal 1MHz RC clock drives the SW,” N.fletch added.

“32.768 kHz is a very common frequency to drive Real Time Clock (RTC) systems because 32,768 in decimal is equal to 8000 in hex. Therefore, 32,768 can be evenly divided by multiple powers of 2 including 1024. Dividing 32,768 by 1024 yields 32, so configuring the timer to count to 32 with a 1024 pre-scaler will equal an exact second.”

Interested in learning more about the Atmel-based ChronosMEGA? You can check out the project’s official Instructables page here.

Atmel looks back at Q1 2014 wins and launches

Yesterday, Atmel execs detailed the company’s Q1 2014 highlights. Key launches, collaborative projects and product wins spanned multiple markets, including:

Winning with maXTouch (smartphones) – LG’s G Pro 2, G2 Mini and L Series 3 L90; Verizon’s Lucid 3, Xiaomi’s RedRice 5.5″, Gionee’s Elife S5.5 and ZTE’s Grand S Lite.

Winning with maXTouch (Android and Windows 8 tablets) – Samsung’s Galaxy Tab 4 10.1,” Galaxy Tab 12.2,” Galaxy Note 12.2″ and HP’s EliteBook 1000 G2.

Collaborating with Corning – Developing ultra-thin, next-generation capacitive touchscreens using Gorilla Glass and XSense.

Working with Mentor GraphicsAccelerating development of next-gen IoT devices using Atmel’s ARM-based Cortex M3 and M4 based microcontrollers under the auspices of the Embedded Nucleus Innovate Program.

Launching maXTouch 1066T and 1068T – Extending product leadership in the large screen capacitive touch market with devices targeted at 7″ – 8.9″ high performance tablets.

Introducing the new automotive maXTouch S lineup – Targeting touchscreens up to 14″ in center consoles, navigation systems, radio interfaces and rear-seat entertainment systems.

Debuting the SmartConnect platform – Integrating Atmel’s ultra-low power microcontrollers (MCUs) and wireless connectivity solutions into turnkey solutions for the Internet of Things (IoT).

Introducing new low-power ARM Cortex M0+ microcontrollers (SAM D21, D10 and D11) – Offering Atmel’s peripheral event system, support for capacitive touch button, slider and wheel user interfaces, multiple serial communications modules, along with a full-speed USB interface, as well as additional pin and memory combinations.

Unveiling new $79 SAMA5D3 Xplained evaluation kit – Providing a low-cost, fast prototyping and evaluation platform for microprocessor-based design built around Atmel’s SAMA5D3 ARM Cortex-A5 processor-based MPU.

Xplaining 8-bit development– Offering a development board for Makers and engineers based on Atmel’s 8-bit AVR technology.

Launching the ATPL230A – Introducing a Power Line Communications (PLC) modem designed to implement the physical layer of the PRIME standard (Power Line Intelligent Metrology Evolution).

Rolling out Atmel Studio 6.2 – Upgrading the popular integrated development environment for Atmel AVR and ARM based microcontrollers.

Ramping up with LIN – Extending Atmel’s automotive in-vehicle networking leadership position with the launch of next-generation, low-power local interconnect networking (LIN) systems.

ATMega32U4 drives vacuum florescent display clock

Hobbyist electronic shop Akafugu is selling a slick Atmel-powered vacuum fluorescent display (VFD) clock.

“A VFD display is typically green or blue and emits a bright light with high contrast. A VFD display tube looks like an old Vacuum Tube, the predecessor to the transistor. The inside of the tube contains segments that can be lit up to form numbers and letters,” an Akafugu rep explained in an official product description.

“Most tubes contain segments for one digit and several must be stacked together to make a complete display. [However, our] clock is modular, it comes with a base board, which is powered by [Atmel’s] ATmega32U4 microcontroller (MCU) and contains a high-voltage VFD driver used to light up the display shield that sits on the top board.”

Aside from the ATmega32U4 MCU packing an Arduino Leonardo bootloader, key product features and specs include:

  • Swappable display tube shields.
  • HV5812 VFD driver with 20 outputs.
  • Capable of driving up to four 16-segment alphanumeric displays or twelve 7-segment numerical displays.
  • Open source firmware (available at GitHub).
  • DS3231M Real Time Clock (RTC) with battery backup.

Akafugu is also selling several different display shields, each coded with a three-bit numerical identifier.

“This allows the firmware to automatically recognize the shield that is plugged in and it will adjust the display automatically. Support for shields added in the future will be released as firmware upgrades,” the rep added.

Interested in learning more about Akafugu’s VFD Modular Clock (mkII – IV-4 – 6 digit)? You can check out the product’s official page here.

Recycled greenhouse goes off-the-grid with Uno

Students at the Kennebunk High School in Maine have successfully constructed and maintained an off-the-grid greenhouse using Atmel-based Arduino boards, solar panels and a sprinkler system.

Photo Credit: Alex Acquisto, Kennebunk Post

According to Alex Acquisto of the Kennebunk Post, Arduino Uno boards (ATmega328 MCU) are deployed in the greenhouse as soil moisture sensors.

“If the soil is too dry, the Arduino will trigger the battery-powered sprinkler system, also designed by students. The greenhouse is powered exclusively by a solar panel and depletes no other electrical sources, thus it is considered off the grid,” he explained.

Photo Credit: Alex Acquisto, Kennebunk Post

“As the soil moisture sensor triggers the sprinkler system if it’s too dry, students are preparing a temperature sensor to test the heat level inside the greenhouse. If the heat becomes too high, the goal is that the window, by programming another Arduino robot, will peel open on its own.”

Acquisto also noted that much of the greenhouse material is recycled.

“The six rain barrels were at one time used by a restaurant to store soy sauce, [while] the screen window students [recently] began installing was pulled from a dumpster behind the school,” he said.

Photo Credit: Alex Acquisto, Kennebunk Post

“It sounds like the work of trained professionals, but most of the students only became familiar with what it takes to maintain a greenhouse this year.”

In related news, Roberts Farm in Maine is currently testing an inexpensive Arduino-powered agricultural system that automatically monitors and waters crops. As Scott Taylor of the Lewiston-Auburn Sun Journal reports, the system has already proven itself by allowing Earl Morse, a retired teacher and volunteer at the Roberts Farm project, to successfully harvest a crop of spinach grown last winter in an exterior green house.

“[The system] keeps watch on the soil temperature and interior moisture through freezing temperatures and darkness. It works, not with hundreds of dollars worth of computer equipment but hobbyist-grade, [Atmel-based] Arduino boards,” wrote Taylor. “While the farm’s goal is teach local kids about growing their own food and the technology behind farming, Morse hopes to create an automated system that not only gives the plants light and keeps them watered but extends the growing season — and does it cheaply.”

According to Taylor, Morse hopes to publicly release the open source, Arduino-based system this fall.

“What we’re trying to do is make all the mistakes now, so it’s ready for everyone else to use,” said Morse.”That’s basically what we’re trying to do, make a farm robot. Maybe a robot farmer.”

Interested in learning more about farming with Atmel-based systems? You can browse through some of our previous stories on technology and farming including “The Internet of Things, Stalk by Stalk,” “Smart Urban Aquaponics in West Oakland,” “DIY Farming with Atmel and Arduino,” “Open Source Aquaponics with APDuino,” Agricultural Monitoring with Atmel AVR
” and “Arduino-Based Farming in Maine.”

IViny is an ATtiny85-powered DAQ



The Ivmech crew was recently in need of a small, inexpensive device capable of sensing analog values and toggling a few digital pins – all while logging everything to a PC.

Ultimately, the team decided to build the IViny DAQ, a mini data acquisition device powered by Atmel’s ATtiny85 microcontroller (MCU).

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

  • 2 channels 0 – 5V ve 0 – 3V digital input/output
  • 2 channels 0 – 5V 10 bit analog input
  • Channel maximum current 20 mA
  • USB power supply
  • V-USB based comms
  • PC user interface (UI)
  • 150 S/s (set to increase with future firmware upgrades)
  • 50 mm x 33 mm x 17 mm

“The IViny features two digital channels and two 10 bit analog channels, just like you’d find in any ATtiny85 project,” writes HackADay’s Brian Benchoff.

“Power is supplied over USB, and a connection to a computer is provided by V-USB. There’s also a pretty cool Python app that goes along with the project able to plot the analog inputs and control the digital I/O on the device.”

As Benchoff notes, the device doesn’t exactly run at light speed, with the firmware currently supporting 100 samples per second.

“[However], an upcoming firmware upgrade will improve that. Still, if you ever need to read some analog values or toggle a few pins on the cheap, it’s a nice little USB Swiss army knife to have,” he adds.

Interested in learning more about IViny, the ATtiny85-powered DAQ? You can check out the project’s GitHub page here.

Building the IoT with Mentor Graphics and Atmel

Atmel has joined Mentor’s Embedded Nucleus Innovate Program, an embedded initiative that helps promote development of the rapidly evolving Internet of Thing (IoT).

Specifically, the Mentor Graphics Corporation is offering businesses earning under $1M (in annual revenue) a free license for the Embedded Nucleus RTOS and Sourcery CodeBench toolset. Both software packages run on Atmel’s ARM-based SAM3x and SAM4x microcontrollers (MCU).

nucleus

Mentor Graphics’ collaboration with Atmel is expected to accelerate the development of medical, industrial, smart energy and consumer applications – helping to power the next generation of devices for the IoT.

“We see tremendous value in the Nucleus Innovate Program with our high-performance MCUs which provide optimized connectivity for IoT development,” explained Atmel VP Steve Pancoast. 
”Mentor’s Nucleus RTOS and Sourcery CodeBench tools supporting our advanced devices will help small businesses realize the potential of their innovative ideas.”

According to Pancoast, a board support package (BSP) will be available for Atmel’s SAM3X ARM Cortex M3 MCUs and SAM4X Cortex-M4 MCUs in the context of Mentor’s initiative. Indeed, Atmel’s device families, combined with the Mentor Embedded RTOS and tools, are ideal for applications that require high-performance connectivity, power efficiency and high memory densities. To be sure, the program offers devs a complete embedded environment for Atmel-based system designs.

“Our Nucleus Innovate Program with Atmel will give small businesses a competitive edge in developing leading-edge products, including applications for IoT,” said Scot Morrison, general manager of runtime solutions, Mentor Graphics Embedded Software division. “We want to be at the forefront of helping these businesses realize their design ideas without having to worry about the capital required to use best-in-class MCUs, RTOS and embedded software development tools.”

According to Morrison, the Nucleus Innovate Program is ideal for applications where small footprint, high-performance and low power are critical.

“Easy-to-use demonstrations and configurations help shorten development time for medical, industrial, automotive and consumer applications—from days to minutes. The Nucleus Innovate Program for Atmel MCUs is a one-year license agreement and includes one BSP,” he added.

Interested in learning more about Mentor Graphics? You can check out the company’s official embedded software page here.

Retro gaming DuinoCube goes live on Kickstarter



Developed by Simon Que, DuinoCube is described as a portable platform that allows Makers and gamers to develop their own retro titles using the popular open-source Arduino environment.

Essentially, DuinoCube comprises two shields: GFX (audio and graphics) and the Atmel-based UI (file system, extra memory, on-board controller chip). Currently, DuinoCube is compatible with the Arduino Uno, Mega and Esplora.

“When you combine a GFX shield and UI shield with an Arduino board, you get a DuinoCube. The UI Shield goes on top of the Arduino and the GFX Shield goes on top of the UI Shield,” Que explained in a recent Kickstarter post.

“With DuinoCube, your Arduino becomes a retro gaming system with the capabilities of classic game systems like the SNES and Gameboy Advance. DuinoCube is highly portable so you can show your friends the games you’ve made.”

Key platform technical specs include:

  • 

320×240 VGA graphics (higher resolutions expected soon).
  • 256 independent objects (sprites).
  • 4 independent tiled layers.
  • 18-bit color in four palettes, each with 256 colors.
  • Hardware scrolling.
  • Hardware collision detection.
  • Stereo audio output.
  • MicroSD card file system.
  • USB gamepad support.

Powered by Atmel’s ATmega328P microcontroller, the UI shield for the Uno/Mega is equipped with an SD card, extra RAM, USB host and controller chip.

Similarly, the UI shield for the Esplora features Atmel’s ATmega328P, SD card, extra RAM, controller chip and Uno-style headers.

“The UI Shields can [also] be used as a generic file system, or as a USB host controller for the Arduino Uno/Mega version,” Que confirmed. “[Plus], the GFX Shield can be used as a generic FPGA shield [by] reprogramming the FPGA with an Altera USB Blaster cable.”

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