Tag Archives: Building Automation

SAMA5 and SAM9: Atmel’s big iron microprocessors

Atmel is rightly famous for its AVR line of 8-bit Flash microcontrollers. But we also have “big iron” chips like the SAMA5 and SAM9 ARM-core microprocessors. A microcontroller has its own internal Flash memory. A microprocessor uses external memory, as much or as little as your application might need.

Hardware engineers have two big worries with any “big iron” microprocessor. First, they are in big packages, hundreds of pins in a ball-grid array. That can be hard to prototype with, since it needs a fine-line PCB that costs a lot to spin. The other big concern is laying out the DDR memory interface. These are wickedly fast and require best layout practices and some register tweaking to get them up to full speed.

SAMA5D3_Xplained_angle

The SAMA5D3 Xplained kit has connectors for Arduino Shields and dual Ethernet ports.

Thankfully, Atmel has solved both problems with a series of evaluation systems. For the SAMA5, you can start with a 79-dollar SAMA5D3 Xplained Kit. It has solved your DDR memory problem since it’s got 256MB on-board. One of the coolest things is that it has connectors where you can plug in any Arduino Shield. Now you can’t use the Arduino libraries, those are based on Atmel’s 8-bit AVR, but it’s not hard to re-write the open source code libraries into something that will run on ARM, if someone hasn’t done it already. The eval board has Atmel’s SAMA5D36 Cortex-A5 Microprocessor, 256Mbytes of NAND Flash, LCD connectors, dual Ethernet (GMAC + EMAC) with PHY and connectors, three USB connectors (2 Host + 1 Device), one SD/eMMC and one MicroSD slots, expansions headers, and power measurement straps.

SAM9N12-EK_SAM5D3x-MB

Atmel makes eval kits for the SAM9N12 (left) and SAM5D3x ARM-based microprocessors.

For those that are doing higher-level applications, the fact that you can run Linux brings all the advantages of open-source development to the SAMA5 and SAM9 microprocessors. And best yet, you get a powerful CPU that uses very little power thanks to Atmel’s architecture. The SAMA5 uses 150mW when running at full speed. It has a DDR controller that give you 1328MB/s of bandwidth. It comes with for gigabit Ethernet, 3 USB ports, dual CAN, UARTs, SPI, and an LCD controller with a graphics accelerator. There is a camera interface, a 12-bit analog to digital converter (ADC) and 32-bit timers.

A SAMA5 chip can run Linux and even has the power to run Android in a “headless” application, that is, where there is not a high-resolution display to eat up your CPU cycles. With an ARM core it’s ideal if you want to do “bare metal” development, where you are writing native ARM code.

SAM9N12-block-diagram

The SAM9N12 architecture gives you low power and a great peripheral set.

Looking at the SAM9, the SAM9CN runs at 400MHz. They have security built in with a cryptographic engine and a secure boot. There is an LCD controller with touchscreen interface, USB, MLC NAND memory support, along with multiple UARTs and I2C. It sips 103mW at 400MHz.

You can get separate LCD panels made to work with the SAMA5 Xplained kit. But if you want to get a SAMA5 kit with the LCD already included, look at the 595-dollar SAMA5D31, SAMA5D33, SAMA5D34 and SAMA5D36 kits. There is also the 445-dollar SAMA5D35 kit, which is cheaper since it does not have an LCD system. These kits cost more but they come ready to go. These are a small working computer that you can immediately start programming in high-level languages or Linux scripts. The kits come with installed applications for its Qt-based GUI.

SAMA5D3-EK_launch-screen

The SAM5A5Dx-EK demo kit comes with Linux and some demo applications pre-installed.

And if you dread laying out a PCB with a working DDR memory interface, but don’t need the whole $595 kit, you can get help there as well. You will notice that the microprocessor and memory are on a little mezzanine PCB in the SAMA5D3 demo kits. This PCB will be available from Embest and other partners. The SAM9 is also available as a tiny SBC (single-board computer).

SAMA5D3-EK_mezzinine_PCB

The SAMA5D3-EK series are designed with a mezzanine card holding the CPU and DDR memory. You can use this card in your high-volume designs.

So now you can develop your custom hardware starting with the SAMA5D3 kit, and then make your own custom hardware that still uses the same exact CPU+memory mezzanine card. While you are perfecting and troubleshooting that hardware, your software team can be working on the Atmel eval kit. This paralleled development will substantially speed up your time to market. And best yet, you won’t be bogged down trying to troubleshoot the DDR memory interface, since it is already working on the mezzanine card.

So don’t just think of 8-bit AVRs when you consider Atmel. We make some really high-power MPU products for everything from IoT (Internet of Things) servers to routers and industrial automation. With Atmel’s kits and our extensive partner network, we can get you up and running in no time, for very little cost, and you can have confidence you designs will work on that final hardware spin.

Passing CE immunity testing

When I was working on semiconductor machinery, we used TUV to get CE certification so we could sell the machines in Europe. We got through emissions alright, it’s similar to the FCC testing we already did, but immunity testing was brutal. When we broadcast RF at a machine, the wafer elevators went nuts and started breaking wafers. We had managed to convince the TUV guy that the speckles and snow on the monitor were not technically a failure, since you could still read it. But robots going open-loop? No, nobody could talk that past TUV. Turns out the cabling was the culprit. There was shielded twisted pair to the Banner sensors that located the elevator stops. In fact, I think they even used braid+foil shielded wire. But the semiconductor machinery company connected the cables with those red-brick AMP connectors, the MR series.

MR-connector

MR These MR (miniature rectangular) connectors work great for appliance wiring, but they provide no continuous shielded path for radio frequency interference (RFI).

Now designing cabling is often thought of as a mechanical engineering function. But mechanical engineers often don’t understand the principles of RF shielding. Get this— they cut the cable shielding about 2 inches back, connected the power, ground, and signal to pins, and yeah, they connected the braid to a pin, and sent it into the connector, to mate with another cable that had 2 inches pulled back. The cables were all dressed beautifully and shrink tubing everywhere. But like my buddy says—“4 inches of untwisted unshielded wire is a nice antenna.”

D-sub_metal-shell

D-sub The D-sub connector was developed for military applications and then picked up by PC makers for serial, parallel and video ports. One reason is its good RF performance. Make sure your cable braid contacts the metal shell.

I switched them to D-subs using 9 pins with a metal shell, and we finally passed. So remember, RF energy is like light—it can leak into the smallest spaces and screw things up. Make sure the EE department revises the detailed design of the cable, or your machine might get held up in certification too.

Arc explosions illustrate the dangers of electricity

I wrote a blog post a while back about the difficulty or having cars with 42V instead of 12V batteries. I also pointed out the difficulties of distributing dc inside your house and to your house. It got picked up by EDN, and the comments were interesting. Someone challenged my assertion that 24V relays switches are less reliable. Sorry, I worked for GMC Truck and Coach as an auto engineer in the electrical group. Heck, just read any switch or relay datasheet and you can see you have to de-rate for dc and de-rate even more for higher-voltage dc. Someone pointed out the phone company uses 48V dc, and I had to explain that the 48V the POTS (plain-old telephone system) sends to your house is also high impedance, 600 ohms, so that make is much less arc-prone and easier to switch.

Arc-flash-person

Others challenged my observation that it is hard to distribute dc in your house due to the fire hazard from the arcs and the same problems with switches and relays. Well, even ac has arcs that are hard to quench. Bigger dc circuit breakers have magnets in them to pull the arc one side and make it longer so it can break. Really big breakers, both ac and dc, have compressed air that blows the arc out just like your kid with a birthday candle.

Arc-flash-box-person

So here is a nice video of an ac arc flash that should give you some idea of the difficulty of quenching an arc. Palo Verde had a horrible arc flash in 2008 that thankfully had no injuries. And here is a training video of an arc flash form the fine folks at e-Hazard.com

Here is another training video from Westex flameproof clothing:

And if you wondered if there was any glory left in the American worker, check out this high-voltage lineman working from a helicopter.

So that’s the trouble with dc. Since the voltage is not going through zero 120 times a second it is much harder to quench the arc. The operative word is “plasma”. That is what Fran Hoffart from Linear Tech taught me about li-ion batteries. He said that the burning lithium is certainly a problem. But the real mess is that a plasma ball forms, and that shorts out any other battery cells in the vicinity. An arc is plasma, and that is some nasty stuff. I mentioned to Fran that the iron phosphate chemistry lithium cells are supposed to be burn-proof. Fran looked at me with an expression that said “you can’t be that stupid” and replied “they all burn”. It is remarkable the difference you hear when talking to people who are making and selling the battery cells versus the people like Fran, that are making the chips to reliably charge the cells.

Arc-Flash-outside

I guess that is why that outlaw biker told me that the only thing that he was really scared of was electricity. I asked why and he said “Because it can kill you and you can’t see it.”

Bend your mind with Atmel’s XSense contest

We all know that bendable, flexible touchscreens are the future, and here at Atmel, we consider ourselves to be riding the crest of that curve with XSense, our high-performance, ultra-flexible touch sensor which allows for some crazy shaped, touch-able devices.

Go to any tech website today, and you’ll see the same ol’, same ol’ curved touchscreen phones and tablets. Cool stuff, but we can’t help feeling there’s got to be something more creative out there.

That’s why we’re inviting you to push past previous touch boundaries and create curved, pliable surfaces for anything you could imagine.

cardash

Sure, we have some ideas about how WE would use curved, flexible touchscreens. We want to hear what YOU would build with touch unleashed.

The sky’s the limit when it comes to creativity on this one, folks, so go crazy!

The top 10 creative ideas get automatically entered to become finalists and eligible for a grand prize of $1500!

But, better yet, if you reckon you could actually build whatever it is you’ve just thought up, there’s extra prize money on the line.

While you don’t need technical expertise to win our creative contest, if your design is built firmly around our Atmel Design Contest Sensor Specifications, you could win our XSense technical design contest for an additional $1500.

Or, if you’re feeling lazy, you can just browse other people’s designs and vote for your favorite. Easy!

FizzJelly with Atmel and the IoT

The Mobile Minds crew has debuted an Atmel-powered cellular connected platform designed to track and monitor a wide range of sensors. FizzJelly works straight out of the box, allowing users to effortlessly monitor and control their IoT devices.

“From motion to temperature and from water leaks to GPS tracking, [FizzJelly] will let you know by sending an alert,” a Mobile Minds rep explained in a recent Kickstarter post.

“It makes it easy to check to see if anyone has been in your house, find out where your car is, if your rooms have got too hot or cold or even turn on and off the lights.”

Indeed, users can command and query FizzJelly simply by sending and receiving text messages with a cell phone. To be sure, configuring and using FizzJelly is extremely simple, requiring a regular SIM card, a connected sensor and a text message. As expected, each unit can be configured with a unique PIN code to secure it against unauthorized access.

Additional key specs and features include:

  • Atmel ATmega32U4 MCU (microcontroller)
  • One internal temperature sensor
  • 8 I/O ports
  • One expansion port
  • GPS module (optional)
  • Programmable over Micro-USB
  • GSM Quad Band – 850/900/1800/1900MHz
  • Open Source development kit
  • Power range 6v – 16v (Motion Detector requires 9v – 16v)
  • Either Battery or AC adapter
  • CE & FCC approved
  • GCF (Worldwide approved module)
  • PTCRB (North America approved module)

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

Designing next-gen UIs with the SAMA5D3 MPU

Intuitive user interfaces (UIs) are ubiquitous for smartphones, tablets and personal media players. But what about user interfaces in the world of industrial automation applications and home control units?

userinterface

Frédéric Gaillard, Atmel Product Marketing Manager, tells Bits & Pieces the use of MIMIC diagrams and traditional switches and rotary controls are still quite commonplace for industrial equipment. Ditto for home thermostats, the majority of which are mechanical.

“There are actually some very good reasons for this, as gloved hands, moisture, and condensation can play havoc with touchscreen controls. The industrial operating environment may dictate large switches for these reasons,” Gaillard explains.

“Safety considerations may warrant the use of traditional control mechanisms such as switches. Nevertheless, equipment manufacturers are keen to update both the functionality and cosmetic aesthetics of their products. Industrial automation equipment is increasingly networked.”

sama5d3flat

Clearly, when it comes to home automation, there is a need for an integrated display and control center to control heating, ventilation and smart-energy monitoring.

“You need a higher performance microprocessor, but with a more intuitive, easy-to-understand user interface (UI). When embarking on a new control panel application, embedded developers are likely to select a microprocessor device rather than a microcontroller,” says Gaillard.

“This is dictated by the processing power required for the connectivity and the need to manage a TFT LCD screen and associated UI. An example of such a microprocessor is the Atmel SAMA5D3 MPU, based on an ARM Cortex-A5 core. It’s 65nm low-power process geometry delivers up to 850 DMIPS (drhystone million instructions per second) at 536 MHz and up to 1,328 MB/s at a 166 MHz bus speed.”

The SAMA5D3 also features a floating-point unit (FPU) for high-precision compute-intensive applications, along with a 24-bit TFT LCD controller and graphics accelerator for image composition. Optimized for use in industrial control and HMI (human-machine interface) applications, the device is equipped with a comprehensive set of peripheral interfaces including dual Ethernet, high-speed USB and dual CAN.

Simply put, the Atmel SAMA5D3 MPU is an ideal candidate for most control panel-oriented designs. With its Cortex-A5 core and vector FPU, the MPU is capable of achieving accelerated graphics processing. Coupled with the 32-bit DDR (dual data rate) controller performing up to 1,328 MB/s, it offers enough raw horsepower to drive a high-resolution screen display via the 24-bit TFT LCD controller block. Resistive touchscreen support is integrated into the device, although one can alternatively interface to an external Atmel maXTouch capacitive touchscreen controller.

sama5d3sketch

On the software side, Atmel has partnered with TimeSys to port the Qt framework and its comprehensive range of development tools for easy UI design. Qt can best be described as a cross-platform application framework with a reliable, easy-to-use toolkit to develop complex graphical user interfaces.

“Qt is based on a comprehensive set of widgets that you use to create a GUI screen design. Within the Qt Creator development environment, the Qt Designer tool allows you to lay out the interface design and plan the human interaction,” Gaillard adds.

“The excellent support for multimedia and 3D graphics, plus all the traditional concepts of text entry, check-boxes, and radio buttons, all help to facilitate the easy creation of industrial interface designs. Indeed, the Qt Designer creates C++ code that integrates into your application, while QML defines all the necessary visual graphical interface elements to create and animate visual interaction.”

Interested in learning more? Check out Atmel’s official white paper on the subject here.