Tag Archives: microcontroller

The future of embedded automotive technology

Rob Valiton, senior VP and general manager, Automotive, Aerospace and Memory Business Units, Atmel Corporation, recently participated in an EE Catalog panel discussion about the future of embedded automotive technology.

According to Valiton, there is a wide variety of of technology that will continue to find its way into in-vehicle infotainment (IVI) systems – with capacitive touchscreens projected to be one of the fastest-growing spaces.

“The current dominant touchscreen technology in automotive is resistive. However, resistive technology does not allow consumers to interact with their car the way they interact with their smartphone, tablet and Ultrabook. The superior user interface, including common gesture recognition utilizing pinch/zoom and swiping motions is enabled by the adoption of capacitive technology,” he explained.

“Some newer features such as hover and proximity may also have the potential to create a less-distracted user environment than what exists today. Hover and proximity can be used in combination to ensure that the drivers’ eyes stay on the road for as long as possible and changing basic setting does not require several menu changes.”

In addition, Valiton noted that there are a number of standards which should be (further) unified to accelerate the IVI experience between on-board systems and connectable consumer products, with standards ranging from security and software considerations, to technology such as Bluetooth and Wi-Fi.

“Standards identified by technology standards bodies, such as the Bluetooth SIG or Wi-Fi Alliance, are required in order to unify the IVI experience on-board, specifically in relation to consumer products. These are required to ensure a smooth and seamless connection, as well as a positive experience for the end user,” he said.

“Firmware specifications are identified within a car to ensure connectivity is established flawlessly. [Plus], continued development of standards such as those being developed by the Connected Car Consortium will ensure that drivers can continue to control their devices using existing in-vehicle equipment. Of course, software considerations are also important. Since the infotainment lifecycle of an automobile is typically much longer than in the home, future cars must consider software standards along with the ability to upgrade.”

Valiton also pointed out that there are a number of technologies required to connect a car to the roadway and municipal infrastructure, along with vehicle-to-vehicle communications.

“[Such technology] requires a microcontroller (MCU), numerous sensors, a connectivity solution which can range from Wi-Fi such as 802.11p, GPS and 3G or 4G networks and security. The combination allows cars to connect to roadway and municipal infrastructures such as Fastrak, toll payment or Onstar security systems—all of which are connected to terrestrial and/or wireless connectivity,” he said.

“Clearly, security in automobiles is very important. Remember, we are all used to having virus protection readily available on our PCs, but are unlikely to think that much about how secure our software is in the modern automobile. Until now, the software has been part of a closed system and not subject to hacking. With the new V2V and V2X systems, we will need technology to ensure secure firmware updates and prevent hackers from communicating with unsuspecting drivers and their vehicles.”

Last, but certainly not least, Valiton commented on the future of self-driving cars, citing a recent ORC International survey that claimed only 18 percent of consumers would consider buying a self-driving car.

“Despite this survey, we believe consumers do not have a full understanding of self-driving cars. There are a number of technologies today that are baby steps towards a self-driving car (think automatic braking),” he explained. “One example is the safe park, where the vehicle parks itself. Another example is autopilot, a system used to guide a vehicle without assistance from a person, developed in 1912. Autopilots are used in aircraft, boats (known as self-steering gear), spacecraft, missiles and other vehicles.”

Similarly, an aircraft autopilot still requires human intervention—a pilot and a co-pilot—to ensure that if anything is amiss, they can be sure to steer the plane to safety.

“With self-driving cars, drivers will have the option to set the car in drive and not worry about a long trip or traffic. Similar to cruise control, the self-driving car can be turned off or if there is an emergency, the driver can still have full control of the car,” he added.

The car-to-x system warns of road works, congestion, obstacles and dangerous weather (courtesy Daimler).

“However, with strict automotive standards currently in place, to make this idea a reality, hardware and software must work closely together to achieve a safe and reliable self-driving car and one that is not hackable. Embedded technologies such as microcontrollers, sensors and touch solutions, encryption and even technologies such as 3D scanning are already in place to enable an autonomous vehicle. We are ready for self-driving cars; the real question is whether both manufacturers and drivers are ready to embrace it.”

Interested in learning more about Atmel’s comprehensive automotive lineup? You can check out our full automotive portfolio here.

These Furbies sing Queen (Bohemian Rhapsody)

A recent Maker Society display hosted under the auspices of the University of Kent featured a group of Furbies “singing” the classic Bohemian Rhapsody performed by the late Freddie Mercury and Queen.

According to HackADay’s Adam Fabio, each of the doll’s functions are run from a single motor and cam system, with a limit switch “telling” the on-board (Atmel ATmega328) microcontroller (MCU) when the cam is at the zero position. Meanwhile, an optical encoder keeps track of the cam as it moves.

“Many classic animatronic systems use an audio recording for motion. Typically a stereo recorder would perform double duty, [with] the first track containing the audio for the animation. A second track would contain audio tones corresponding to movement of each of the degrees of freedom of the doll being animated,” Fabio explained.

“Because the two tracks were on the same strip of magnetic tape, the audio and movement would always be in sync. Multitrack tape record and playback systems added even more flexibility to this type of system.”

However, the Maker Society decided to go with a “computerized twist” on the above-mentioned system for their Bohemian Rhapsody singing Furbies.

More specifically, a set of positions and times are stored in Comma Separated Variable (CSV) format, while a java program plays the song and reads the file – relaying movement commands to the Furbies at appropriate intervals.

Interested in learning more about the Atmel-powered singing Furbies? You can check out the project page here.

MEMSIC debuts eCompass Library for Atmel’s Xplained Pro

MEMSIC has announced an Electronic Compass (e-compass) library for Atmel’s popular Xplained Pro platform. According to John Newton, MEMSIC VP of Marketing, the e-compass library will help embedded developers create smarter, more connected devices for the rapidly evolving Internet of Things (IoT) and growing wearables market.

Indeed, the Electronic Compass extension provides a highly accurate, fully tilt compensated electronic compass with calibration that supports MEMSIC’s recently introduced MMC3416xPJ ultra low noise, low power magnetometer in a 1.6 x 1.6 x 0.6 package.

“Integrating sensors can be complex and time consuming. A thorough understanding of the theory of magnetics, sensor behavior, calibration and tilt compensation is required before the design can start, [while] the digital outputs of counts per gauss and counts per g need to be filtered and translated into a tilt compensated heading,” Newton explained.

“MEMSIC can simplify this integration on the Atmel Xplained platform by providing a calibration and Electronic Compass library as a Gallery program. In addition, the MMC3416xPJ provides a high dynamic range of 16 Gauss, which simplifies design by allowing more placement options on the board.”

Newton also noted that Atmel’s ultra-low power processor is an “ideal” match for the MMC3416xPJ magnetic sensor.

“Together they enable an ultra-low power and high performance e-Compass solution; our partnership with Atmel and their Gallery library will enable customers to bring new solutions to market quickly and efficiently,” he added.

The Electronic Compass library is slated to go live in Atmel’s Gallery later this month.

As we’ve previously discussed on Bits & PiecesAtmel’s comprehensive lineup of Xplained Pro boards offers engineers everything they need to start designing microcontroller (MCU) applications in minutes. First off, the boards are quite easy to connect, linking to PCs with just a USB cable.

As expected, the boards are automatically recognized by Atmel Studio, facilitating direct access to example projects and documentation. Meanwhile, hardware extension boards provide easy access to all functionality of the MCU.

Currently, Xplained Pro kits are grouped into three primary categories:

  • Evaluation kits – Lowest cost kits starting at $39 for evaluating MCUs and developing with example projects in Atmel Studio.
  • Starter kits – Low-cost bundle of MCU and extension boards starting at $99 for rapid application prototyping and development with Atmel Studio and Atmel Software Framework.
  • Extension kits – Boards with additional functionality, connecting to Xplained Pro MCU boards through standardized connectors.

On the evaluation side, Atmel offers the SAM D20 Xplained ProSAM4N Xplained ProSAM4S Xplained ProSAM4L Xplained Pro and the ATmega256RFR2 Xplained Pro. In terms of extension boards, there are the I/O1 Xplained ProOLED1 Xplained ProSLCD1 Xplained Pro and the PROTO1 Xplained Pro.

Video: Building a tiny Arduino laser cutter

A Maker by the name of SilverJimmy may have already had a full-sized 50 watt laser cutter, but that didn’t stop him from wanting to design something smaller and microcontroller-driven.

Enter the MicroSlice, which HackADay’s John Marsh describes as an adorable little engraver.

“To keep the design simple, SilverJimmy opted for a fixed cutting table, which meant moving the cutting head and the X-Axis as a unit along the Y-Axis,” Marsh explained.

“The solution was to take inspiration from gantry cranes. He snagged a couple of stepper motors with threaded shafts, designed the parts in Inkscape, then fired up his full-size cutter to carve out the pieces.”

The MicroSlice’s bottom platform includes an Atmel-powered Arduino Uno (ATmega328) and the relays for the laser and fans, while two EasyDriver motor controllers sit above them on the next layer.

Interested in learning more about SilverJimmy’s tiny Arduino laser cutter? You can check out the project’s official page on Instructables.

Wireless chipsets for the Internet of Things (IoT)

The Internet of Things (IoT) refers to a future world where all types of electronic devices link to each other via the Internet. Today, it’s estimated that there are nearly 10 billion devices in the world connected to the Internet, a figure expected to triple to nearly 30 billion by 2020.

In a recent article about the IoT, the LX Group took a closer look at a number of chipsets on the market that can be used to integrate wireless networking and existing embedded designs with low complexity and cost. One of the chipsets highlighted by the LX Group is Redpine Signals’ Connect-IO-n series of modules which allows 802.11 wireless LAN connectivity to be added relatively easily to an embedded microcontroller system.

“In collaboration with Atmel these modules have been optimized for use with Atmel microcontrollers (MCUs), particularly the Atmel AVR XMEGA and AVR UC3 series microcontrollers,” an LX Group rep wrote in an article published on the Australian-based Ferret. “Some modules in this family provide 802.11a/b/g/n Wi-Fi connectivity, while all modules provide the TCP/IP stack on board and are FCC certified, simplifying RF compliance certification of the entire design.”

More specifically, noted the LX Group rep, these modules are aimed at providing the ability to add 802.11 wireless connectivity to 8-bit and 16-bit microcontrollers with low integration effort and low memory footprint required in the host microcontroller to support the WiFi device, especially where 802.11n support is desired.

“The modules in this series can also be interfaced to the host microcontroller over a UART or SPI interface, while a standby current consumption of only a few microamps potentially allows for years of battery life with no external energy source as long as the radio is only briefly enabled when it is needed,” the rep added.

“The RedPine RS9110-N-11-28 module from the Connect-IO-n family is relatively unusual in that it provides dual-band 2.4GHz/5GHz 802.11 a/b/g/n connectivity for an embedded device, supporting connection to any Wi-Fi device or network and potentially avoiding congestion in the 2.4 GHz band as used with 802.11b/g devices.”

Clearly, wireless connectivity is more important than ever for developers and engineers, as wireless extends from PC peripherals and home entertainment applications to the smart grid and beyond. To support these sophisticated applications, Atmel offers a complete line of IEEE 802.15.4-compliant, IPv6/6LoWPAN based, ZigBee certified wireless solutions.

They are based on Atmel’s family of RF transceivers, 8-bit and 32-bit AVR and ARM microcontrollers. To facilitate rapid development and speed time to market, Atmel offers a variety of free software stacks, reference designs, wireless modules and development kits. Simply put, the provide everything engineers need to meet the unique needs of low-cost, low-power, wireless control and sensor network applications.

Key features include:

  • Single-Chip Solutions — The Atmel IEEE 802.15.4-compliant single-chip solution combines an AVR microcontroller and best-in-class 2.4GHz RF transceiver. This particular combo is ideal for applications requiring minimal board space and cost – without compromising MCU and RF performance.

  • Transceivers – Atmel’s wide range of high performance, low-power IEEE 802.15.4-compliant transceivers support regional 700/800/900MHz frequency bands available in China, Europe, Japan and North America, as well as the 2.4GHz band available worldwide. For maximum flexibility, these unique RF transceivers can be combined with Atmel’s microcontrollers over the SPI Interface.

  • Bundles – Flexible IEEE 802.15.4-compliant bundles make it easy to create a solution that is appropriately aligned to your application needs.

  • Modules – ZigBits are compact 802.15.4/ZigBee modules featuring record-breaking range performance and exceptional ease of integration. ZigBits also pack a complete FCC/CE/ARIB certified RF design that eliminates costly and time-consuming RF development and gets your product to market on-time and on-budget.

Additional information about Atmel’s MCU Wireless controllers can be found here.

 

FreeRTOS with Atmel’s SAM D20 Xplained Pro

Atmel’s SAM D20 lineup is based on the ARM Cortex- M0+ core, setting a new benchmark for flexibility and ease-of-use. The microcontroller (MCU) series is ideal for a number of low-power, cost-sensitive industrial and consumer devices, such as GPS trackers, appliance controllers, intelligent remotes and optical transceivers.

As William Wong of Electronic Design notes, the SAM D20 specifically targets the entire low-end space currently handled by 8- and 16-bit microcontrollers, while also hitting the low-end 32-bit space.

“The SAM D20 incorporates high-end support like the high-speed bus matrix linked to three AHB/APB bridges. System and power controllers can be found off one bridge. Memory controllers are found off another,” Wong wrote in an article posted on Electronic Design earlier this year. “The third bridge handles the convention interfaces that include up to six programmable serial ports, eight timers, a 20-channel, 350-ksample/s analog-to-digital converter (ADC), a pair of comparators, and a 10-bit, 350-ksample/s digital-to-analog converter (DAC). There is also Atmel’s touch interface controller.”

Recently, a detailed SAM D20 demo project went live on FreeRTOS.org (FreeRTOS, FreeRTOS+CLI).  The demo – which targets Atmel’s SAM D20 Xplained Pro evaluation board – leverages the FreeRTOS ARM Cortex-M0 GCC port and builds with the free Atmel Studio IDE (using the Visual Studio framework and kernel aware FreeRTOS plug-in).

Meanwhile, the command line interface character input and output employs drivers provided Atmel’s Software Framework (ASF), with a #define tasked with switching the build between a simple blinky style application and a comprehensive test/demo application that incorporates the FreeRTOS+CLI component.

Want to build and run the ARM Cortex-M0+ RTOS Application? It should probably be noted that the FreeRTOS download contains the source code for all FreeRTOS ports, so obviously there is a surplus of unneeded files for this specific SAMD20 demo. As such, it might be a good idea to check out the the Source Code Organization section for a description of the directory structure. The Atmel Studio solution file is called RTOSDemo.atsln, which is located in the FreeRTOS/Demo/CORTEX_M0+_Atmel_SAMD20_XPlained directory.

Building and running the ARM Cortex-M0+ RTOS application

  1. Open FreeRTOS/Demo/CORTEX_M0+_Atmel_SAMD20_XPlained/RTOSDemo.atsln in the Atmel Studio IDE.
  2. Locate the mainCREATE_SIMPLE_BLINKY_DEMO_ONLY definition at the top of main.c.
  3. Set mainCREATE_SIMPLE_BLINKY_DEMO_ONLY to 1 to create the simple blinky demo, or 0 to create the comprehensive demo that also includes the command line interpreter.
  4. Select “Rebuild RTOSDemo” from the Atmel Studio “Build” menu (or press F7) to build the demo project.
  5. Connect a USB cable between the USB port on the SAMD20 Xplained Pro board and the host computer.
  6. Select “Start Debugging and Break” from the Atmel Studio “Debug” menu to program the microcontroller flash memory and kick off a debug session.

Interested in learning more about running FreeRTOS on Atmel’s SAM D20 Xplained Pro? Be sure to check out the official FreeRTOS demo here.

ControLeo is a quad relay controller

The ControLeo – designed by two retired Silicon Valley engineers – can probably best be described as a quad relay controller enclosed in a professional box.

The platform is powered by Atmel’s ATmega32u4 microcontroller (MCU) paired with an Arduino Leonardo boot loader.

Additional key specs include:

  • Four relay outputs with red indicator LEDs
  • LCD display (2-line x 16-character)
  • Two buttons
  • Buzzer
  • Real-time clock (optional)
  • MAX31855 for reading temperatures (optional)
  • I2C GPIO chip to free up digital I/O on Leonardo
  • A solid, custom-fit ABS plastic case

“We wanted to build our own reflow oven [which] would be used about once every two weeks so we could prototype the next board. We also wanted a LCD screen, buttons and indicator LEDs to show which of the oven elements were on at any given time,” the two engineers explained in a recent Kickstarter post.

“Most importantly, we wanted a robust, good looking box for this project that covered all the exposed wiring and connections. [That is why] we made ControLeo as generic as possible so that it could be used for a variety of projects. We think it is awesome as a reflow/pottery oven controller, but [the platform] can also be used to control sprinkler systems, lights, motors and more.”

The software for ControLeo consists of a single Arduino library that regulates all of ControLeo’s functions, with 14 sample programs available to help Makers get up and running quickly.

“Our schematic for ControLeo is in the public domain, and has already been posted to GitHub,” the duo added. “We’ve had fun working on the hardware and software and would like to see ControLeo used without restrictions.”

Interested in learning more about the Atmel-powered ControLeo? You can check out the project’s official Kickstarter page here.

Electronic building blocks with FEZ Medusa

FEZ Medusa is a recently debuted open source hardware (OSHW) processor board powered by Atmel’s ATmega328P microcontroller (MCU).

Aptly described as “electronic building blocks” by the GHI Electronics crew, the Fez Medusa is designed to keep soldering irons optional with a comprehensive ecosystem of mainboards, sensors and control modules.

“This modular design of building blocks does not require any hardware experience, we call it FEZ for fast and easy. On the software side, [Makers can] program using the Arduino IDE. On the hardware side, everything is modular building blocks, using a unified socket map,” the GHI Electronics team wrote in a recent Kickstarter post.

“[Meaning], FEZ Medusa uses modules instead of shields, [which offers] two [significant] advantages. First, there are no possible pin conflict issues. Second, when stacking multiple shields, the [finished] product is difficult to place inside an enclosure. Modules are smaller and connect through cables, ideal for laser-cut or 3D printed enclosures.”

In addition, the sockets on FEZ Medusa and modules are marked with one or more letters indicating the socket’s capability. For example, if the socket is marked with the letter “A” then it is an analog socket with three analog pins.

The Fez Medusa will be available in three iterations: Mini (one “program socket” and three user sockets), the S12 (12 sockets – one for programming, 11 for adding modules) and the 11-socket Shield, the latter of which can be plugged into an Arduino board like any other shield.

Interested in learning more about the Atmel-powered Fez Medusa? You can check out the project’s official page on Kickstarter.

Building a Halloween knock box with an Atmel MCU

A Maker by the name of Kyle has constructed a “Halloween knock box” powered by Atmel’s versatile ATtiny45 (or 85) microcontroller. According to Kyle, the box is fairly easy to put together, as basic components include an MCU, a piezo element (amplifier) for the knock sensor and a motor to provide the knocking feedback.

“The motor I originally tried was a cheap 6v [unit] for $2 or $3. Unfortunately, it didn’t have enough torque to move the weighted end and it had several ‘dead’ spots where it wouldn’t engage,” Kyle explained in a recent blog post. “I had even taken careful measurements of the motor’s dimensions and transferred them to Sketch-Up where I created a motor mount and later printed it in ABS. In the end, I rummaged through my junk boxes and found a motor that seemed small enough to fit.”

To make the knocking sound, Kyle took a small section of 12 gauge wire (about 1.5″) and made two loops – one for the knocking end and the other to mount to the motor.

“I used a hammer to tap the loop end of the wire over the motor shaft and used some super strong double stick tape to adhere the motor to the box. I had problems with the motor not returning fast enough and the knocking sound being too quiet,” he continued. “To fix this I put a weight (in this case a bolt) on the end. This gave it more than enough momentum to move the box and allows the motor to return fast. To get rid of that annoying clunk sound when it returns to the resting position, I glued some foam to the back of the weight.”

As noted above, electronic components for the Atmel powered Halloween knock box include a driver for the motor (simple 2n2222 transistor with a protection diode) and an amplifier for the piezo element, the latter of which allows the circuit to detect quieter knocks.

“The amplifier consists of a NTE490 MOSFET which was measured to have a threshold voltage of 1.7v,” said Kyle. “[Meanwhile], the gate is biased at just under 1.7v by a series of 7 diodes and a 11MΩ current limiting resistor. The current is so small that the diodes don’t fully conduct and as such, only drop about 230mV each.”

Once Kyle was satisfied with the operation of the circuit, he drew up a quick board in DipTrace and laid out the board in just under 1.5″x1.0″, allowing it to neatly fit on the smaller side of the box. The board was subsequently etched and populated, with Kyle continuing to test the microcontroller on the breadboard.

“On the software side of things, the microcontroller sleeps while waiting for a knock to trigger an interrupt. Once triggered, TIMER1 begins counting. When the next knock occurs, the current TIMER1 value is recorded in an array and TIMER1 cleared for the next knock. This repeats until either TIMER1 overflows or the array is filled,” he added. “If the overflow event occurs, then the knock timed out and it begins repeating the pattern back with the motor. A special event occurs when either 13 or 20 knocks are registered. When the first occurs, the box plays the Addam’s Family theme song. When the latter occurs, then the box waits for 15 seconds, then randomly begins knocking at the box for 30 second.”

Interested in learning more about building an Atmel powered Halloween knock box? You can check out a detailed breakdown of Kyle’s project here.

Arduino Yún powers this electricity monitor

A Maker by the name of “Akellyirl” has designed an electricity monitor built around an Atmel-powered Arduino Yún.

As previously discussed on Bits & Pieces, the Yún – designed in collaboration with Dog Hunter – is based on Atmel’s popular ATMega32u4 microcontroller (MCU) and also features the Atheros AR9331, an SoC running Linino, a customized version of OpenWRT. The Yún is somewhat unique in the Arduino lineup, as it boasts a lightweight Linux distribution to complement the traditional microcontroller (MCU) interface.

Key features of Akellyirl’s project include a WiFi connection to facilitate continuous monitoring, TEMBOO for cloud support (with Google APIs), as well as automatic recording and writing of power consumption to a Google Drive Spreadsheet (+ analysis).

“A nice feature of this project is that the monitoring is flexible and completely wireless (except for the current transformer of course),” Akellyirl wrote in a detailed Instructables post. “This allows continuous monitoring from a PC or phone and permanent storage on the Cloud.”

To build the above-mentioned electricity monitor, Makers will require the following components:

  • Arduino Yún (ATmega32u4)
  • Current transformer (e.g. SCT-013-030)
  • 2 x 10kOhm resistors
  • 1x 47uF capacitor
  • Some wires, breadboard
  • 5V power supply for the Yún (smartphone charger)

“The circuit is actually very simple. It consists of a voltage divider to bias the ADC of the Arduino to a DC voltage, [with a] voltage output current transformer adding an AC voltage proportional to the AC current flowing in the cable. The capacitor forms a low pass filter with the resistors to remove noise,” Akellyirl explained.

“[Meanwhile], the current transformer produces a current proportional to the current flowing though it’s magnetic circuit. The proportion of the current in the cable that you get in the transformer is equal to the turns ratio. [For example], 30A corresponds to an output voltage of 16.67mA x 62 Ohms = 1V (rms).”

Interested in learning more about building an Arduino Yún-powered electricity monitor? You can check out Akellyirl’s detailed tutorial over on Instructables.