Category Archives: Engineering Perspectives

Video: Atmel demos QTouch tech at Computex



Atmel’s comprehensive QTouch Library makes it simple for developers to embed capacitive-touch button, slider, and wheel functionality into a wide range of microcontroller applications.

The royalty-free QTouch Library provides several library files for each device, supporting various numbers of touch channels – enabling both flexibility and efficiency in touch applications.

Simply put, by selecting the library file supporting the exact number of channels needed, developers can achieve a more compact and efficient code using less RAM.

Earlier this week at Computex 2014, Atmel staff engineer Paul Kastnes demonstrated the integration of QTouch solutions with low-power consumption, using ARM Cortex-M0+ microcontrollers and sensor engines.

In addition, Atmel senior manager Dr. John Logan showcased how mobile applications can be customized using customized sensors, exhibited by a modified SAM D20 ARM Cortex-M0 microcontroller and an accelerometer gyroscope.

Interested in learning more? You can check out Atmel’s official QTouch page here and Atmel’s SAM D lineup here.

Adafruit builds a GPS logging dog harness

Adafruit’s Becky Stern has put together a in-depth tutorial that details how to build a GPS logging dog harness using the Atmel-powered (ATmega32u4 MCU) FLORA platform. The project can be completed with conductive thread, so there is no need to break out the soldering gun.

Aside from the Atmel-based FLORA main board, key project components include:

Stern kicks off the GPS logging dog harness by presenting a circuit diagram that displays the following connections:

  • FLORA 3.3V -> GPS 3.3V
  • FLORA RX -> GPS TX
  • FLORA TX -> GPS RX
  • FLORA GND -> GPS GND
  • GPS BAT -> positive coincell battery terminal
  • GPS GND -> negative coincell battery terminal

Next up? Sew the various components, load the logging program in the Arduino IDE or Codebender and upload, paste logs into LOCUS Parser, copy the KML output into a text file and import with Google maps.

It should be noted that Stern has also created a brooch version of the above-mentioned circuit, adapting the design for fashionable humans who want to track and review their trips around town.

Interested in learning more? You can check Becky Stern’s full tutorial on Adafruit’s Learning System here.

Designing an Arduino-based programmable load

A programmable load is defined as a type of test equipment or instrument tasked with emulating DC or AC resistance loads normally required to perform functional tests of batteries, power supplies or solar cells.

According to Wikipedia, the platform allows tests such as load regulation, battery discharge curve measurement and transient tests to be fully automated – while load changes for these tests can be made without introducing switching transient that might alter the measurement or operation of the power source under test.

Recently, a Maker by the name of Jasper designed an Arduino-based programmable electric load using an Atmel-powered Nano (ATmega328 MCU).

“The load can be programmed, and the voltage and current are measured. You can set a constant current (CC), a constant power (CP), or a constant resistance (CR) load by simply typing it in to the Arduino Serial Monitor,” Jasper explained in a detailed blog post.

“The circuit is designed for up to 30V, 5A, and 15W. An opamp, a mosfet, and a small sense resistor form the constant current circuit. The current is set using a DAC. Two other opamps measure the power supply voltage and the current. The circuit is powered from the Arduino USB voltage.”

Aside from the Atmel-based Arduino Nano, key project components include:

  • Custom designed PCB ($23)
  • 2x 15pins 0.1″ pitch female header connectors ($2)
  • AD8608 Rail-to-rail opamps ($3)
  • MCP4725 DAC ($3)
  • IRLZ44Z N-channel MOSFET ($2)
  • SK 129 38mm Heat sink ($1)
  • 0603 resistors and capacitors ($2)
  • Screw terminal ($1)

“I chose to use an Arduino Nano board because it is small, cheap, easily interchangeable, it has a power supply that can be used to supply other circuits, and it can easily be programmed with the Arduino IDE,” Jasper continued.

“The Arduino is placed on female header connectors on the board. I chose to use the same DAC as on Adafruit and Sparkfun DAC breakout boards. The DAC can be supplied from 5V and the the output voltage is rail-to-rail. A description for using the MCP4725 DAC and library with Arduino can be found here on the Adafruit website. The DAC connects to the Arduino using I2C.”

On the software side, Jasper uses the the Arduino Serial Monitor to set the mode and value.

“For example, you can type ‘cc100’ to set a 100mA current, ‘cp1000’ to set a 1000mW power, and ‘cr100’ to set a 100 Ohm resistance. In overload condition, when the nominal power supply voltage drops, the CC circuit tries to maintain the current. This leads to an even further voltage drop and finally in a short circuit. In CP mode, the Arduino measures the voltage and adjusts the current so that the power remains constant,” he added.

“This is handy for testing power supplies designed to deliver a constant power. In CR mode, the Arduino measures the voltage and adjusts the current so that the resistance remains constant. This is handy if you want to simulate a resistor connected to the power supply – especially if you don’t have a box of power resistors of all kinds of values.”

Interested in learning more? You can check out Jasper’s Electric Load here.

Folding 3D silicon shapes with microscopic droplets



Researchers at the University of Twente in the Netherlands have successfully adapted the precise art of origami down to the microscopic scale. Using only a drop of water, the scientists managed to fold flat sheets of silicon nitride into cubes, pyramids, half soccer-ball-shaped bowls and long triangular structures that resemble Toblerone chocolate bars.

justaddwater1

“While making 3D structures is natural in everyday life, it has always been extremely difficult to do so in microfabrication, especially if you want to build a large number of structures cheaply,” explained Antoine Legrain, a graduate student at the MESA+ Institute for Nanotechnology at the University of Twente.

To help solve the challenge of building in miniature, researchers adopted a self-assembly technique, in which natural forces such as magnetism or surface tension trigger a shape change.

 As Legrain notes, self-assembly became a popular method in the 1990s to help cram even more computing power into shrinking electronic devices. Indeed, so-called solder assembly used the surface tension of melting solder to fold silicon, the electronic industry’s standard semiconductor material, into 3D shapes that more efficiently filled a small space with electrical components.

The University of Twente team also created silicon-based shapes, albeit with a more ubiquitous liquid – water – to activate and control the folding.

“Water is everywhere, is biocompatible, cheap, and easy to apply,” said Legrain. “Using water instead of solder also speeds up the folding of each individual structure. If the water-based process is further developed to fold multiple structures at once, it could become cheaper than current self-folding approaches.”

To create their three shapes, the researchers employed a custom software program to first design the flat starting pattern. They then “printed” the design onto silicon wafers, while hinges were inserted by etching away material just before depositing a thinner layer.

“Possible shapes are in principle limitless, as long as they can first be made on a flat surface,” Legrain pointed out.

justaddwater2

To fold the designs, the researchers pumped a small amount of water through a channel in the silicon wafer. The capillary forces created by water molecules sticking to each other and to the silicon puledl the flat surfaces together to form fully three-dimensional creations. The team also discovered that the final structures, which are approximately the size of a grain of sand, can be opened and closed up to 60 times without signs of wear, as long as they remain wet.

The ability to unfold and refold the structures could be useful in biomedical applications. For example, self-folding tools could deliver drugs exactly where they are needed in the body or grab a tiny amount of tissue for a micro-biopsy.

“Cleanroom fabrication at research level can be long, tricky and frustrating. It is a good feeling when we obtain such nice results out of it,” Legrain added.

For now, creating soccer ball and Toblerone shapes are fun ways for researchers to test their system and better understand its capabilities. In the future, the team hopes to design conductive hinges and create 3D sensors with their new technique.

The article “Controllable elastocapillary folding of three-dimensional micro-objects through-wafer filling” is authored by A. Legrain, T. G. Janson, J. W. Berenschot, L. Abelmann and N. R. Tas. It was published in the Journal of Applied Physics on June 3, 2014 (DOI: 10.1063/1.4878460) and can be read here.

CNC router goes xPRO with Atmel’s ATmega328

Spark Concepts has debuted the CNC xPRO on Kickstarter, a versatile platform powered by Atmel’s ATmega328 microcontroller (MCU).

The CNC xPRO can be used to drive:

  • Four-axis CNC Mill
  • Three-axis CNC Mill with dual drive motors
  • Laser cutter with XY, auto focus and rotary attachment
  • Plasma cutter
  • Pick and place for SMD components
  • Wireless robotics

The GRBL compatible CNC xPRO can be powered via an ATX PSU or a dedicated 12V/24V two wire power supply. The board is also capable of driving four motors with DRV8825 Stepper Drivers at 2.5A (peak) with 1.75A (RMS) and up to 1/32 microstepping.

“One driver is capable of cloning X,Y, or Z or being run as an independent axis, [with] hardware support offered for both USB and wireless operation (XBee, WiFly, or RN42-XV),” a Spark Concepts rep explained.

“In addition, there are 12V and 5V outputs for powering peripherals (fans, pumps, vacuums), [allowing Makers and engineers] to quickly connect Stepper Motors and limit switches with 3.5mm screw terminals.”

Meanwhile, an expansion port supports future upgrades, such as a handheld jog controller and integrated spindle speed control.

“The CNC xPRO ships fully assembled and ready to connect (except for those opting for the bare board). All you need to do is screw down your motor leads and limit switches, plug in your ATX supply (or 12V/24V supply) and computer. You can also add a kill, pause/stop, resume and abort switches,” the rep noted.

“To add Bluetooth wireless, simply plug the RN42-XV into the xPRO and pair it with your computers Bluetooth. When paired correctly, this creates a virtual serial port over Bluetooth linking the computer to the xPRO.”

Interested in learning more? You can check out the CNC xPRO on Kickstarter here.

Video: 3D printing houses in Minnesota



Andrey Rudenko is developing a 3D cement printer capable of printing medium-sized homes with concrete insulated walls.

The printer – powered by an Atmel-based Arduino Mega (ATmega1280 MCU) – is built to withstand real-world conditions.

“The next generation is currently in development and will be able to print homes on mountainous/hilly terrain, where traditional construction is more challenging,” Rudenko explained. 

”I’m looking to collaborate with fellow architects, designers, builders and interested individuals worldwide, including students in these respective fields. I’m open to suggestions, discussions and new ideas. ”

It should be noted that Rudenko’s 3D cement printer was recently featured on Engadget by Daniel Cooper, who writes:

“In order to make [the 3D printer] affordable to more than just a select few, the creator is using a cheap cement-and-sand mix, which is layered out 20mm at a time, holding its shape long enough for an operator to add-in some steel reinforcement before it hardens… Rudeno is planning to make a splash with the tech later in the summer, as he’s working on building both a small playhouse to test out the concept, before finding a plot of land upon which we can cook up a full two-story house.”

SAMA5D3 Xplained for the IoT in India



element14 has introduced Atmel’s new SAMA5D3 Xplained evaluation kit for Internet of Things (IoT) development in India.

“The Internet of Things is one of the most important trends globally that will boost the electronics industry in India. Within these few years it will impact nearly every segment of the economy and society,” said element14 exec Ravi Pagar. 

”[We are] excited to be bringing such a wide range of ground-breaking IoT-enabling solutions to India geared towards inspiring engineers with the ideas and building blocks to turn the Internet of Things into a reality.”

The board – built around Atmel’s SAMA5D3 ARM Cortex-A5 processor-based MPU – is packed with a rich set of ready-to-use connectivity and storage peripherals, along with Arduino shield-compatible expansion headers for easy customization. 

The platform is also a perfect target for headless Android projects, while a Linux distribution and software package facilitates rapid software development.

Aside from Atmel’s ARM-based SAMA5D36 Cortex-A5 microprocessor (MPU), key specs include:

  • 2GBit DDR2 – Micron
  • 2GBit Flash – Micron
  • 1- Ethernet 10/100/1000 (- Phy + connector)
  • 1- Ethernet 10/100 (-Phy + connector)
1- USB Device connector, 2- USB Host connectors
  • Active Semi PMIC
  • Power measurement straps
  • SD/MMCPlus 8-bit card slot
  • 1- Micro SDCard 4-bit slot footprint
  • 1- 6-lead 3V3-level serial port
  • 10-pin J-TAG connector
  • 2- push buttons, reset and startup
  • 1- general purpose push button
  • 2- general purpose LEDs
  • Arduino R3-compatible header plus LCD connectors mounted
  • Linux distribution
  • Bare Metal C code example
  • Headless Android support

Simply put, the new board offers features such as mid-range graphical user interfaces, capacitive touch capability, wired and wireless communication, free of charge Linux distribution and a QT developer’s kit.

As we’ve previously discussed on Bits & Pieces, the ARM-based SAMA5D3 series is ideal for wearable computing and mobile applications where low power and a small footprint are critical.

Atmel’s new SAMA5D3 Xplained eval kit can be snapped up for Rs.6,719.00 here.

Simple soldering – Arduino PID control

A proportional-integral-derivative controller (PID controller) is a control loop feedback mechanism (controller) widely used in industrial control systems. 

According to Wikipedia, a PID controller calculates an error value as the difference between a measured process variable and a desired setpoint.

Essentially, the controller attempts to minimize the error by adjusting the process through use of a manipulated variable.

Recently, a DangerousPrototypes forum member by the name of carlazar designed a simple soldering iron driver (SSID) with Arduino Uno (Atmel ATmega328 MCU) PID control.

Key features include:

  • Minimal number of components.
  • Additional control mode – on-off controller (+ PID PWM).
  • External power supply.
  • Fits into a 90mm x 110mm x 45mm (WxDxH) box.
  • Easy assembly.

“The HQ soldering iron HQ20/HQ30 (24V, 48W) was used [for this project],” carlazar wrote in a recent DangerousPrototypes post.

“It has the E-type thermocouple built in (68uV/degC) but you can change that value in software according to the soldering iron that is used (for example K-type is 41uV/degC).”

In terms of actual use, the SSID features:

  • UP and DOWN buttons, changes set-point temperature by 5 degC.
  • Button SET cycle through set-point temperature presets: 0 – 150 – 280 320 -350 degC.
  • Buttons UP and DOWN simultaneously, change the operating controller mode (PID control/on/off control).

Interested in learning more? You can check out carlazar’s original Dangerous Prototype page here.

Adafruit Narrative teardown reveals AT91SAM9G25



The Narrative Clip is a tiny, automatic 5 megapixel camera paired with an app that offers users access to a “photographic memory” which is both searchable and shareable.

NarrativeClip-001

Weighing in at 20 grams (0.7 oz) and measuring 36x36x9 mm (1.42×1.42×0.35 inches), Narrative boasts a storage capacity of 4,000 pictures and a two-day battery life. The device also features a double-tap function to more easily capture images, automatic sleep upon being placed face down, a specially coded companion smartphone app (iOS/Android) and cloud storage options.

Recently, the Adafruit crew conducted a detailed teardown of the device — confirming it is indeed powered by Atmel’s AT91SAM9G25 ARM-based microprocessor (MPU).

Additional confirmed specs include:

  • SanDisk SDIN7DU2-8G Flash card
  • Linear LTC3557 USB power manager with Li-Ion charger and three step-down regulators
  • ST LIS3DH 3-axis accelerometer
  • CellGuide ACLYS GPS module
  • TI LC07A hex level shifter
  • 125mAh lipoly battery

Interested in learning more about the $279 Narrative? You can check out the product’s official page here.

DIY quadcopter adoption takes off with Arduino

Analysts at IDTechEx recently reported that the starting point for Unmanned Aerial Vehicles (UAV) is rarely military or law enforcement. Rather, it lies at the other extreme – with DIY hobbyists and Makers.

“As the sophisticated sensor systems in mobile phones migrate to hobbyists’ microcontroller boards, such as [Atmel-based] Arduino boards used in their homemade quadcopters, their uses rapidly widen,” an IDTechEx explained.

“Professional quadcopters will also profit from the fact that over one million Arduino boards have been sold in a very short time to quadcopter hobbyists and the designers of wearable technology and Internet of Things (IoT) nodes.”

According to the analyst, equivalent boards sold directly out of China are also getting useful volume headed towards billions each year for IoT, driving down quadcopter costs.

“The last six months has seen many new applications for pure-electric quadcopters. [For example], Amazon proposed delivery of mail by quadcopter, others will use them for aircraft inspection, even indoors and yet others have new agricultural uses,” the analyst continued.

“[Meanwhile], easyJet, one of UK’s largest airlines, works with the Bristol Robotics Laboratory to make variants that inspect its 220 airliners. These quadcopters will be programmed to scan and assess easyJet’s planes, reporting back to engineers on any damage which may require further inspection or maintenance work.”

Last, but certainly not least, the analyst noted that professional quadcopters cost many times the price of toy versions – so they may one day become the bigger market and certainly the most profitable and many will form part of the Internet of Things.

“Advanced military capabilities such as intelligent swarming of small electric craft will also migrate to the civilian sector,” the rep added.