World Maker Faire in NYC was great, see you in Rome!

on Thursday, September 26, 2013

Banzi and Volunteers

Around 70.000 people attended the 2013 World Maker Faire, NYC this past weekend.

We want to thank all the people vising the Arduino booth (in the Arduino Zone powered by Atmel) and give a special thank to all the amazing volunteers helping us transmitting the passion for making, discovering and tinkering  with Arduino boards.  Temboo team spent the whole weekend with us: it was their first time at MakerFaire and they were astonished at the positive energy of the event.

Take a look at the collection of pictures below to discover also the cool friends coming by, like LadyAda, Phil Torrone, Joey Hudy, Josef Prusa… (if you have pictures to share use the hashtag #arduino or post the link in the comments below)

We’ll be back soon at Maker Faire Rome! Have you booked your ticket yet? Click and book it now with a discount code.



View the Original article

The Yún Way: less time debugging and more time inventing

on Wednesday, September 25, 2013

Back then secret device, back then secret Yun.

Today I’m happy to welcome Sven Kräuter as guest blogger on the Arduino Yún, as part of a series of posts exploring different unique features of our new board.

Sven works with Julia Kümmel focusing on agile & lean processes for soft- and hardware product development and together create projects at the intersection of the physical and the digital world, mostly using Arduino. His post below was orginally published at this link.

—————–

This summer I had a speaker engagement at the Codemotion conference in Berlin which I really enjoyed for many reasons. For starters Jule & me participated in an inspiring wearable computing workshop where we met Zoe Romano for the first time. The next day I talked about a possible and easy way how to build the internet of things.

Presenting thoughts on & actions how to build the IOT.

After the talk it seemed to appear like a a good idea to Zoe that I should get a sneak peek at some new Arduino hardware. There weren’t any more details since it was still secret back then. Of course it didn’t took me much time for consideration since I really love Arduino for making our hardware prototyping so much easier. I happily agreed on checking out this new mysterious device.

The talk was about how to connect anything to the internet using an open source framework I initiated called the Rat Pack, so I assumed it had to do something with online connectivity or that something had to be connected to the internet. Turns out it was about both ;-) .

Making things talk with each other online (source: slideshare).

When Zoe told me about the Arduino Yún I was immediately stoked: an Arduino Board equipped with wi-fi, plus being able to access a small real time Linux system. How awesome is that? Exactly. I couldn’t wait to get hold of the Yún, and when it finally arrived it became quite obvious to me that I had a well thought and rounded product in my hands. Before I really knew what hit me this thing took shape on our balcony (see pic at the beginning of this post)

I’ll skip the amazing deeper tech details if you don’t mind (Uploading via wireless LAN, remote debugging, SSH access, Ruby on your Yún…). If you do mind please tell me, I’m glad to blog about them too ;-) . I’ll just give you a rough outline of the journey I went through with the Yun so far.

The first idea was to integrate it into the Rat Pack ecosystem. Adapting the Arduino client code of the rat pack was fairly easy, it simply uses Linux shell commands on the Yun instead of putting the HTTP command together in the Arduino C code. It’s just a small detail but dramatically reduces the complexity of your project. You don’t have to implement the HTTP calls yourself, you can rely on the work horse that Linux is.

Being inspired by this first success with the Yún I thought maybe I could reduce complexity of the prototype of a device that we use to welcome guests at our place. I’m talking about the Bursting Bubbles Foursqaure Switch.

Foursquare & Arduino powered soap bubble machine.

When you check in to our balcony with foursquare, a soap bubble machine starts filling the air with bursting bubbles. The first prototype uses Arduino connected to an XBee Wifly to control the soap bubble machine and a Rat Pack server that handles the Foursqaure API.

Initial approach with lots of moving parts(tm).

Quite complex and actually and as you might have guessed the Yún helped reducing both the software and the hardware complexity drastically. Adding it to the project made it possible to cut off a lot of fat. Actually it now only consists of the Yun connected to the soap bubble machine.

The Yun way.

What’s true for the hardware is also true for the software. Have a look at the code base. Reduced comlpexity is achieved by processing the response of the Foursquare API on Linino as opposed to letting the Ruby server take care of it. And although there’s much debate when it comes to JSON processing with regular expressions in general, I just used grep and a matching regexp to extract the information from Foursquare’s JSON response. The parts marked green are the only ones necessary after adding the Yun to the setup.

Losing some pounds. Or rather kilobytes…

For us at making things happen the Yún will also be the platform of choice for our Internet Of Things workshops. Until now we use Arduinos and XBee WiFlys since they turned out to be the most robust solution for introducing a group of people to the principles of connecting things to the internet.

Current ‘IOT Basics’ workshop setup.

Although this works most of the time there is still time needed to wire things up and debug the hardware the participants build. With the Yún we can reduce the time necessary for setting things up and debugging the custom setup and use it to concentrate on spreading our knowledge on the subject. Actually you only need two wires for the basic Rat Pack example when using the Yún:

Future workshop setup: drastically reduced wiring effort.

So on the bottom line I see the Arduino Yún as a major milestone in making the internet of things available to a broader audience and empowering fellow makers and tinkerers to spent less time debugging and more time inventing.

Less complexity = more time for creativity (source: twitter).

It will also make our workshops far less complex and let the participants concentrate less setting things up and focus on their creativity.

I did not use all of it’s features yet, I’m more than curious to explore more of it. The feature I’ll focus on next is the possibilities of actually using the pins of your Arduino via RESTful web service. I guess I’ll keep you posted about that. Thanks Arduino for this awesome device and thanks for letting me have a look at it a little earlier. It seems like the beginning of a wonderful friendship…



View the Original article

Come and visit us at World Maker Faire in New York City this weekend!

on Saturday, September 21, 2013

World Makerfaire 2013

This year, once again we are participating at World Maker Faire for the whole weekend. You can come and visit our booth at the Hall of Science. We’ll have  4 hands-on demo tables allowing you to know more about Arduino boards, try using the IDE and experiment with the hardware yourself.
We’ll be demonstrating the new Arduino Yún and how to use Temboo. We also set up a special table to experiment with the Arduino Robot and allow visitors to try its wonderful capabilities live.

On Saturday afternoon there’ll be a couple of presentations you can attend:

- Massimo Banzi: The state of Arduino
Where: Innovation Stage
When: Saturday 2:30 PM    3:00 PM

- Michael Shiloh: Getting Started With the Arduino Yún
Where: Electronics Stage
When: Saturday    4:30 PM    5:00 PM

Looking forward to see you all at the Electronic Pavillion, ZONE C (check out the Makerfaire MAP in PDF)

World Makerfaire 2013



View the Original article

Talking about the “Evolution of Microcontrollers” at the New York Hardware Innovation Workshop

on Friday, September 20, 2013

Hardware Innovation Workshop 2013

Make Magazine published a short report of the panel taking place at the Hardware Innovation Workshop, yesterday in New York City. Massimo Banzi and Jason Kridner, co-founder of BeagleBoard, were on the stage talking about the evolution of microcontrollers:

Makers love to develop on their favorite microcontrollers. The creators behind two of the most popular took boards the stage at the New York Hardware Innovation Workshop (HIW) in a panel moderated by MAKE’s own Matt Richardson. Although makers might like to argue about which is the best platform, there was plenty of common ground for these two panelists.

Massimo Banzi, Co-Founder of the Arduino Project, began the session with a short discussion on how and why Arduino got started.

“Every time you design a system to do everything, you end up with a system designed to do nothing,” Massimo says. “The challenge is to build a platform that solves a simple problem for a specific group of people: beginners for example.”

Keep reading  the article on Make.

Evolution Of Microcontrollers



View the Original article

The new Arduino Robot is now in the store!

on Thursday, September 19, 2013

Arduino Robot

We are pleased to announce the availability of the Arduino Robot in our store and distributors worldwide, starting from 189€.

Designed in cooperation with Complubot, 4-time world champions in the Robocup Junior robotics soccer, the Arduino Robot promises endless hours of experimentation and play.
It is a self-contained platform that allows you to build interactive machines to explore the world around you.

You can use straight out of the box, modify its software, or add your own hardware on top of it. You can learn as you go: the Arduino Robot is perfect for both the novice as well as those looking for their next challenge.

To further explore the Arduino Robot, check out the documentation to getting started with it and  a collection of examples and tutorials that will quickly show its great features.

The Arduino Robot is the result of a collective effort from an international team looking to make science and electronics fun to learn. Read the article about the history of the Robot on Make Zine by David Cuartielles .

Check it out in the Arduino Store >> (This product is  available with UK Plug, US Plug and IT Plug)

Arduino Robot



View the Original article

Playing with the new Arduino Yún at the headquarters in Torino

on

arduino yun @ designboom

Designboom published the second part of the report after visiting Officine Arduino in Torino. This time the focus is on the Arduino YÚN!



View the Original article

MakerFaire Rome is getting closer: get your discount ticket!

on Monday, September 16, 2013

Makerfaire Rome

The greatest show and tell on earth is coming to Rome next October and it’s now time to organize and register to the events!

This is the agenda of MakerFaire Rome:

  • Thursday 3rd October- Opening Conference “How to Remake the World” with special guests like Joey Hudy, Dale Dougherty,  Leah Buechley, David Gauntlett and many more! Get your free ticket >>
  • Friday 4th October – Educational Day – Entrance for registered schools only – If you are a teacher and want to visit MakerFaire with your class book your reservations here (only in italian)
  • Saturday 5th and Sunday 6th October – MakerFaire Rome days with over 200 projects from all over the world will be on show, including workshops, live demonstrations, and conference panels. Buy your ticket now >> (if you register by the 20th of September there’s a promotional code)

Check out the video below to see why you shouldn’t miss this event:



View the Original article

Making a Gmail Lamp with Arduino Yún

on Friday, September 13, 2013

Arduino Yún

I am delighted to welcome Stefano Guglielmetti who, together with other Arduino friends/supporters, accepted to start experimenting with  Arduino Yun and write a blog post to present some hands-on results. Starting today we are going to host a series of guest bloggers exploring different unique features of our new board.

Stefano, has more than 16 years of experience in the Internet industry, working both with small companies and start-ups up to very big and complex environments. His post below was orginally published at this link.

————-

Finally!!! Finally I put my hands on a brand new  Arduino Yún. I’ve been waiting for this a long, loooong time. I’ve been playing with Arduino since the “diecimila” model came out and I, as a lot of people, always suffered the lack of connectivity and of real computing power. I tried to solve some of these problems using RaspberryPi and/or Electric Imp, but I always missed the Arduino approach… easy, lots of shields and Arduino ready parts, a lot of documentation, a strong community and the freedom of Open Source.

Now one of my dreams came true, and every time I go deeper into the discovery of the Yún’s capabilities, I find something amazing, very smart and very well done.

I won’t describe the platform itself, as many articles talking about that are already published and there will be many more to come. I’ll start directly with a real life example, in just a few hours I finally built something really, really useful to me, something I already built several times in various ways but none of which really satisfied me.

The task is pretty simple, and I believe it will be very useful to many people: I need to be alerted in real time when I receive some important emails. Not all the emails: we provide customer care for many clients, with different SLAs, and I need to be alerted only for the most important ones. Moreover, sometimes I look forward to receiving a precise email… a shipment confirmation, a mail from a special someone… I need something flexible, eye catching, that doesn’t depend on my computer or my cellphone (that always has only 1% battery)

So I decided to build a GMail Lamp and Arduino Yún was the perfect choice (and now that I built it, I can confirm that. It is perfect)

The working principle is very straightforward: On GMail, I defined a new label, so I can quickly change the rules for the messages that will go under it, then I tell to Arduino Yún which label to watch for (via REST APIs… amazing) and that’s it! The lamp (actually only just a led, the lamp will come in the future) turns on every time I get new messages under that label. It’s the bat-signal principle! :)

LED Display with Arduino Yún

Okay, now let’s get a bit more technical… how did I do it?

The hardware

  • An Arduino Yún, and it must be connected to the internet.
  •  A LED (or a relay if you want to turn on a real lamp, as I will do in the future)

This is the connection scheme (supersimple)

The LED goes on Digital Pin 13
The LED Display uses pins 10,11,12 and, obviously, GND and +5V

Schematic - Arduino Yún

Ok, the hardware is ready. When you will program the Yún for the first time, even if you can program it over the wifi network, I suggest you use the serial port via USB because it’s faster and I still use the serial port to debug (even if you have a brand new Console object :) . But it’s just a personal choice.

Now, the Code

Even if it’s short, I think it’s very interesting because I used many new features of the Yún. I’m not going to describe all the code, that you can freely download or fork from GitHub (https://github.com/amicojeko/Arduino-Yun-Gmail-Check). I’ll try to describe only the parts that involve brand new code and that are peculiar of the Yún

Let’s start from the beginning

#include 

With the Process library, you can run some code on the Linux side of the Yún and catch the stdout on Arduino. It’s amazing because you can delegate to Linux all the dirty jobs and the heavy computing. In this case, I use the Linux “curl” command to get the ATOM feed of my label from GMail.

The Process library also includes the Bridge library, that allows you to pass information between the two sides of the Yún (Linux and Arduino) using a key/value pairing. And it gives you the power of REST APIs, I use it to configure the label to observe.

#include 

With this library, you can use the inernal memory or a micro SD card/USB key for storage. All these features are native on the Yún!

#include "LedControl.h" 
/* Downloaded From http://playground.arduino.cc/Main/LedControl */

I use this library to control the 7 segment LED Display

const int ledPin = 13;

I’ve used the pin 13 for the led. As I told you before, you can replace the LED with a relay in order to turn on and off a real lamp!

const char* settings_file = "/root/gmail_settings\0"; 
/* This is the settings file */

I’m saving under “/root” cause /tmp and /var will be erased at every reboot.

Bridge.get("label", labelbuffer, 256);

This is a supercool line of code that uses an übercool Yún’s feature. I’m telling Arduino to listen for a REST call on the URL http://arduino.local/data/put/label/LABEL

When I get some data, it will put the value of LABEL in the localbuffer. The localbuffer was initialized like that

char labelbuffer[256];

That means that you can actually talk with your Arduino while it runs projects! You can get or put variables, you can finally make dynamic projects! I used it to tell Arduino which label to observe, but I can, and I will go further, I promise.

label = String(labelbuffer);
File settings = FileSystem.open(settings_file, FILE_WRITE);
settings.print(label);
settings.close();

This is cool too. Using the FileIO object, I save the label in a local file on the Linux side of Arduino, so when I will turn it off and on again, It will remember my settings.

File settings = FileSystem.open(settings_file, FILE_READ);
while (settings.available() > 0){
char c = settings.read();
label += c;
}
settings.close();

This is how I read a file from the filesystem.

Process p;

p.runShellCommand("curl -u " + username + ":" + password + "
\"https://mail.google.com/mail/feed/atom/" + label + "\" -k --silent |grep -o \"
[0-9]*fullcount>\" |grep -o \"[0-9]*\"");

while(p.running()); // do nothing until the process finishes, so you get the whole output
int result = p.parseInt();

This is another bit of Yún’s magic. I run the curl command to get the ATOM feed of a specific label, and then I parse it with the grep command, and finally I get the number of unread messages for that label. Even if on the Yún’s Linux stack there are both Python and Lua, I thought that this solution was the most simple and stupid, and I love to KISS.

That’s it, now i just have to turn the LED on and to display the number of unread messages on the LED Display…

In a single day I learned how to use the Bridge library to get data from REST webservices, how to save and load data from the Linux filesystem, and how to run processes on the Linux side and get the STDOUT results. I already knew how to use the LED Display but I hope that someone learned something new even about that :)

Now I will build the actual lamp, improving both the Hardware and the Software sides, I will make it gorgeous and fully configurable, and I will keep you informed about that!
Cheers to everybody and happy hacking!

——

Text and pictures by Stefano Guglielmetti



View the Original article

The interactive veil expressing emotions with Lilypad

on

LEYLA 01

Leyla is an interactive Niqab that reveals facials expressions on textile recreating the movement of facial muscles involved in smile and frown. The project was created by Patrizia Sciglitano and sent to us through our blog submission form. We got in touch with her to know more about it.

How come you started working at this project?

I started my BA graduation project in February 2012. I’m not Muslim but I’ve always lived in environment influenced by Islamic culture and I’ve been fascinated by it. Some months ago I participated to  a workshop in Prato about Wearable Technology with Riccardo Marchesi of Plug&Wear and I started to understand this new technology and to have real answers to my questions.

Leyla - schema circuito

How does it work?
Leyla’s circuit is composed by two facial-muscle sensors detecting micro-facial movements. The Arduino Lilypad receives data from them and sends the processed information to the Nitinol wires (muscle wires)  that are sewn into the fabric,  creating curls of the expressions hidden under the veil.

Leyla - inside

Have you got yet any reactions from girls wearing the veil?

I kept working on my research project while attending an association for non-EU women in my city, organized by a Muslim friend of mine since childhood. I met several women there, both young and old who’ve helped me understanding better their culture.  I explained the project to them and from the very first concept ideas I received a positive feedback.
Not very often designers create accessories suited for their necessities and thorough this object they could gain more “emotional communication” capabilities while maintaining their decency and this new opportunity  made them very happy.
They were both intrigued by the new technology I showed them (muscle Wires), and on how I was materializing my new idea of communication. Muslim women thought that my idea was very cool. It was a chance to give voice to a new way of communicating their emotions without needing to “undress”.

Until now I haven’t had the chance to test “Leyla” in Saudi Arabia, although I would love to do it in the future. Thanks to a friend of mine, however, I had the chance to show “Leyla” to some women wearing the Niqab staying in Istanbul for Erasmus program: they even asked me if I was selling it!

——

In the video and picture below you can see  the result, from left to right: Relaxed muscle – Contracted muscle: smile – Relaxed muscle – Contracted muscle: anger.

Leyla - expressions



View the Original article

The Power of Temboo: connect the Yún to 100+ APIs

on Thursday, September 12, 2013

1 - Arduino Temboo schema

(Guest post by Temboo Team)

Ever wish your Arduino could respond to the weather on the other side of the world? Or send you an email to let you know what it’s up to? Upload stuff to your Dropbox account? Or detect if you’re at risk of exposure to toxic chemicals?

Now it can. The Arduino Yún can easily grab all sorts of data and interact with tons of web-based services like Fitbit, Facebook, and Google because every Yún comes loaded with the power of Temboo. Using the Yún’s built in wi-fI capabilities, Temboo makes it easy for the Yún to connect to over 100 Application Programming Interfaces (APIs).

Don’t know what an API is or how to use one? Don’t worry. You don’t need to. With Temboo you can start using APIs with your Yún in minutes. We’ve standardized how to program with them and made sure they play nice with Arduino.

So how do you get your Yún to Temboo?

That’s easy too. When you’re setting up your Arduino account, you can quickly register for a free Temboo account right from your Arduino profile page. All you need to do for that is pick a Temboo username, and we’ll automatically email you your Temboo account details along with some ideas on where to begin. You should definitely check out the dedicated Arduino section of our website. We’ve created several how-to examples to get you Tweeting, texting, and more from your Yún in minutes. We’ve even put some examples right into the Arduino IDE (File->Examples>Bridge->Temboo).

Temboo's special page for the Arduino Yún.

Click on the image below to see one of the Temboo examples on Arduino IDE

One of the Temboo examples in the Arduino IDE.

What’s under the hood?

Temboo has written a special Python program on the Linino processor that interacts with the Temboo platform, sending and receiving data. A C++ library we created for the Arduino processor allows makers to communicate with the Linino-side Temboo program in a powerful yet user-friendly way. Sketch code for interacting with any Temboo process is generated live on our site for copying into the Arduino IDE. We’ve even developed a unique way for users to select the particular data they need from APIs and web-based resources, filtering out extraneous information and reducing the load on the board. For all the power that Temboo provides, our technology leaves a remarkably light footprint.

The Temboo website generates sketch code for the Arduino Yún. Above: Create an event on a Google Calendar.

We can’t even begin to imagine all the cool stuff that makers will do with the Yún. We’ll be adding more Arduino examples to our site as we continue to brainstorm, but we’d love to feature your ideas and projects as well. Shoot us an email at hey [at] temboo.com or tweet at us at @Temboo to tell us about what you’re working on or to ask any questions.



View the Original article

It’s time to enjoy the Arduino Yún: now available for purchase!

on Wednesday, September 11, 2013

Arduino Yún

We are extremely happy to announce the availability of the Arduino Yún in our store at the price of 69$/52€ (vat not included) and distributors worldwide.

The Arduino Yún is the combination of a classic Arduino Leonardo with a Wifi system-on-a-chip running Linino. It’s based on the ATMega32u4 microcontroller and on the Atheros AR9331 running Linino, a customized version of OpenWRT, the most used Linux distribution for embedded devices.

Alongside the new board, we are also releasing the new Arduino IDE Version 1.5.4 (available now for download) featuring support for Arduino Yún, some new features, and general bug fixes. The new features include:

  • Board recognition: every time you connect an Arduino board, the IDE recognizes the type of board you are working with
  • Memory: when you upload a sketch, the IDE tells you how much memory you are using
  • Copy Error button: you can more easily copy and paste errors to share them in the forum

A few days ago we published a couple of blog posts to give you an overview of the Yún’s hardware and the Bridge library, describing how it facilitates communication between the two processors. In the following weeks, we’ll keep sharing new content from some friends who are playing with it right now and can’t wait to give their feedback and show of what they’ve been working on using the Yun’s features.

As many of you already know, the Arduino Yún comes loaded with the power of Temboo, an innovative startup which provides normalized access to 100+ APIs, databases, and code utilities from a single point of contact: Tomorrow we’ll be posting on the blog how you can start using Temboo to mix and match data coming from multiple platforms (for example, Facebook, Foursquare, Dropbox, FedEx and PayPal to name a few).

Also, If you are going to be at Maker Faire New York on September 21 & 22, come and visit us at the Electronics Stage as Tom Igoe of the Arduino Team presents “Getting Started with the Arduino Yún“!

That’s all for now. If you want interact with the community and keep talking about the Arduino Yún, join us in the forum!



View the Original article

An etch-a-sketch on dope

on Tuesday, September 10, 2013

Magnetography

Arduino Facebook  page is a great source of inspiration  with plenty of people posting everyday about projects and experiments. Some days ago a user shared this interesting video about Magnetography, an alternative drawing toy using ferrofluid, a liquid which becomes strongly magnetized in the presence of a magnetic field.

Magnetography, by Christian Robach, is built out of old DC-Motors, a frame filled with water and ferrofluids.  The “pen” can be controlled by using the W-A-S-D letters on the keyboard allowing the users to play with the liquid metal without getting their hands dirty.
The commands are sent to the serial Port via Processing then Arduino UNO, with an Adafruit Motor Shield extension, reacts by powering the motors and moving the magnet according to the coordinates. Enjoy the video below:



View the Original article

Designboom visits Officine Arduino in Torino

on Saturday, September 7, 2013

image © designboom

Last week Officine Arduino in Torino was visited by a crew of Designboom – according to Time magazine one of the top 100 design influencers in the world. Today, they published a report of the tour to the factory and the fablab with many pictures and videos:

who would ever imagine that global cultural and economic revolution would spring from the tranquil fields of piedmont, italy, in tiny towns nestled against the stunning backdrop of the alps? but that’s exactly where arduino, the system of microcontrollers revolutionzing the maker movement and pioneering the concept of opensource hardware, was born in 2005 and continues to make its home today.

arduino’s story is unusual to say the least. five colleagues, seeking to empower students with the tools to create, developed the platform in 2005. now distributors estimate that over one million arduinos have been sold, and the arduino community is among the most resilent and inventive on the internet. forums like instructables and arduino’s own scuola connect enthusiasts to learn from one another, and arduino users build on the platform to open up new creative possibilities.

we traveled to turin, italy, to see arduino’s first officina, before setting off north to visit the italian factories that continue to be the heart of arduino manufacturing for the entire world…

Click and read the full article on their website!



View the Original article

Hands on: the Arduino Yún’s Bridge

on Friday, September 6, 2013

arduino yun - handson

The other day, we gave you an overview of the Yún’s hardware. Today, we are going to talk about the Bridge library, describing how it facilitates communication between the two processors. The Arduino Yún has two different processors on-board: an Atheros AR9331 running Linino (a customized OpenWRT GNU/Linux distribution maintained by Dog Hunter) linked through its serial port with an Atmel ATMega32U4 (the same processor as the Leonardo).
The Bridge concerns itself with communication between these two parts of the Yún.

The Bridge is made of two different parts
One part, written in Python, runs on the GNU/Linux processor and has three functions:

  1. it executes programs on the GNU/Linux side, when asked by Arduino.
  2. it provides a shared storage space, useful for sharing data like sensor readings between the Arduino and the Internet
  3. it receives commands coming from the Internet and passes them directly to the Arduino

The other part of Bridge is the library that runs on the 32U4. The library allows you to access the Linino parts of Bridge through your sketches.

The awesomeness of the Bridge
With the Bridge you can do some awesome things by communicating between the 32U4 and the AR9331 processors. Some examples could be commanding and controlling your sketch over the internet from a remote location, accessing remote APIs to get data for your sketch to process, or executing programs or scripts too complex to write in an Arduino sketch.

For example, if your shop is on the other side of the house, and you wanted to know if it was comfortable enough to work in there, you can connect a LDR sensor and thermistor to your Yún, which is also connected to your home wireless network. Your sketch can access the board’s shared storage to publish the readings every second to a webpage running on the AR9331. By accessing the URL http://arduino.local/data/get you can call up those readings, letting you know if it’s bright enough but not too hot to get to work on your next project.

Your sketch could also store the sensor readings on a Google Drive spreadsheet or publish them on Facebook. The Temboo library relies on the Bridge to access all the internet based services and APIs provided by Temboo.

Using Bridge, you would no longer need to upload a new version of a sketch to change text on an LCD screen: your sketch can use the shared storage to read the text to display, changing it remotely from a browser using REST based calls. If the text to be displayed is identified by the label “lcd_text”, accessing the URL http://arduino.local/data/put/lcd_text/Hello%20World will show “Hello World” on the LCD.

Finally, you can send your own command to your sketch remotely. You can create a firmata-like access to every single pin of the board, so that calling URL http://arduino.local/arduino/digital/13 will report the current state of pin 13, while http://arduino.local/arduino/digital/13/1 will turn it on. We’ve actually made such a sketch as part of the examples: you’ll find it in the upcoming Arduino IDE release.

Here’s one of the examples that come with the library, the TemperatureWebPanel. It gets the current reading of a temperature sensor and displays it on a web page in your browser. It demonstrates a number of Bridge’s more advanced features like Process (for executing Linux processes), the YunServer and YunClient (for server and client communication), and the ability to upload additional files for serving up to connected clients.

Setup
In “setup()”, start the Bridge with “Bridge.begin()”. This ensures the Python part of the Bridge on the GNU/Linux processor is up & running. Next, toggle pins to use a TMP36 temperature sensor so that it can be plugged directly into the board’s headers. YunServer is part of Bridge that enables Linino to pass URLS formatted with “/arduino/” to the 32U4. To listen to commands from connected clients, you need to start the server by calling “server.begin()”. “server.listenOnLocalhost()” forwards all local server communication to port 5555. Process allows you to call Linux commands through your sketch. Here, you’ll execute the shell command “date” by calling “startTime.runShellCommand(“date”)”, which will report the date and time the sketch started running.

Loop
In “loop()”, the sketch listens for incoming client connections (requests from the Internet) by creating an instance of YunClient. You can read incoming commands with “client.readString()”. If a connected client sends the command “temperature”, the Bridge executes the “date” command on GNU/Linux to report the time of the reading, then reads the sensor on A1 and calculates the temperature. The date and temperature information is combined into a HTML formatted string and sent back as a response.

Browser
Sketches for the Yún can now contain all the files needed to create a web application that can talk to your sketches through a browser. In the TemperatureWebPanel directory on your computer, there is another folder named “www”. This folder contains a basic webpage and a copy of zepto.js, a minimized version of jQuery.

You need a micro SD card plugged in to your Yún with a folder named “arduino” at the root. Inside the “arduino” folder, there must be a directory called “www”. You need to upload the sketch via WiFi to transfer the contents of the local “www” folder. You cannot transfer files via USB. Once uploaded, you can open your favorite browser and go to http://arduino.local/sd/TemperatureWebPanel. There you’ll see the browser reporting back the sensor readings, with the time information and total number of requests.

The browser calls the url http://arduino.local/arduino/temperature in the background. URLs that start with “/arduino/” are special: everything from the “t” of “temperature” is sent to the sketch via Bridge. You can send any command you like, as long as your sketch understands them.

—————
The next post about the Yún will focus on Temboo and how the Arduino Yún can easily grab all sorts of data and interact with tons of web-based services. Stay tuned!



View the Original article

Ask an Engineer, ask Massimo and Ladyada – video

on Wednesday, September 4, 2013

AskAnEngineer2013

Last week, Limor Fried and Phil Torrone had Massimo Banzi as special guest in their Saturday night live show Ask an Engineer!

Here’s the whole video:



View the Original article

Interactive table turns eating into a videogame

on Tuesday, September 3, 2013

pixelate_table

Pixelate is a Guitar-Hero-style eating game in which players compete in a one-minute showdown to see who can eat the most food in the correct order.

PIxelate interactive table

It was exhibited at Henry Moore Gallery, Royal College of Art in London:

A digital interface built into a custom dining table shows players which foods to eat and when, while the game detects whether they’ve eaten the correct food by measuring the food’s resistance on the fork. Potential applications for Pixelate include encouraging children to eat more healthy foods, helping to manage portions, and educating children and adults about nutrition. Built using Arduino and openFrameworks, Pixelate gamefies the act of eating, challenging players to consider whether they think before they eat, or eat before they think.



View the Original article

Arduino at school: People Meter

on Monday, September 2, 2013

classe virtuale 2013

After 13 years, Classe Virtuale project is once again an interesting opportunity for students to experiment a bridge between school and work. “Classe Virtuale” is a partnership between Loccioni and technical educational institutions started in 2001 when the group started offering to young students training periods and internships in the company giving the chance to work on a real project together with very skilled people and technicians. In 2012 they worked on a flow meter and this year the project focused on a similar project called People Meter, using Arduino Uno, wi-fi and rfid modules, and a 3d printer.

People_Meter

Below you can find more information (in italian) about the team, the project and the results!



View the Original article

Let’s explore Arduino Yún’s unique features – Hardware review

on

Arduino Yún

As announced a few days ago, the newest addition to the Arduino family, the Arduino Yún, will be available starting September 10. This is the first in a series of posts that will describe some of the Yún’s unique features. Today, we’ll focus on the hardware.

———————–

The Yún is unique in the Arduino lineup, as it has a lightweight Linux distribution to complement the traditional microcontroller interface. It also has WiFi and Ethernet connections on board, enabling it to communicate with networks out of the box. The Yún’s Linux and Arduino processors communicate through the Bridge library, allowing Arduino sketches to send commands to the command line interface of Linux.

Introduction
The Arduino Yún has the same footprint as an Arduino Uno but combines an ATmega32U4 microcontroller (the same as the Leonardo) and a Linux system based on the Atheros AR9331 chipset. Additionally, there are built-in Ethernet and WiFi capabilities. The combination of the classic Arduino programming experience and advanced internet capabilities afforded by a Linux system make the Yún a powerful tool for communicating with the internet of things.

The Yún’s layout keeps the I/O pins the same as the Arduino Leonardo. As such, the Yún is compatible with the most shields designed for Arduino.

With the Yún’s auto-discovery system, your computer can recognize boards connected to the same network. This enables you to upload sketches wirelessly to the Yún. You can still upload sketches to the Yún through the micro-USB connector just as you would with the Leonardo.

Connectivity
The Yún has two separate network interfaces, a 10/100 Mbit/s Fast Ethernet port and a IEEE 802.11 b/g/n standard compliant 2.4GHz WiFi interface, supporting WEP, WPA and WPA2 encryption. The WiFi interface can also operate as an access point (AP). In AP mode any WiFi enabled device can connect directly to the network created on the Yún. While a Yún in this mode can’t connect to the internet, it could act as a hub for a group of WiFi enabled sensors.

Historically, interfacing Arduino with web services has been challenging due to memory restrictions. The Yun’s Linux environment simplifies the means to access internet services by using many if the same tools you would use on your computer. You can run several applications as complex as you need, without stressing the ATmega microcontroller.

To help you develop applications that can connect to popular web services, we have partnered with Temboo, a service that simplifies accessing hundreds of the web’s most popular APIs. A Temboo library comes with the Yún, making it easy to connect to a large variety of online tools. Check out their website for the full list of services they offer.

Connection between the two processors
The Yún’s Bridge library enables communication between the two processors, connecting the hardware serial port of the AR9331 to Serial1 on the 32U4 (digital pins 0 & 1). Another post will describe the library in greater depth. The serial port of the AR9331 exposes the Linux console (aka, the command line interface, or CLI) for communication with the 32U4. The console is a means for the Linux kernel and other processes to output messages to the user and receive input from the user. File and system management tools are installed by default. It’s also possible to install and run your own applications using Bridge.

The ATmega32U4 can be programmed from the AR9331 by uploading a sketch through the Yún’s WiFi interface. When connected to the same WiFi network as your computer, the board will appear under the “Port” menu of the Arduino IDE. The sketch will be transferred to the AR9331, and the Linux distribution will program the ATmega32U4 through the SPI bus, emulating an AVR ISP programmer.

Power consideration
The Yún can be powered through the micro-USB connector, the Vin pin, or the optional Power Over Ethernet (POE) module. When powering the board though the Vin pin, you must supply a regulated 5VDC. There is no on-board voltage regulator for higher voltages.

Linux OS specifications
The Yún runs a version of the OpenWRT Linux distribution called Linino. The on-board 16MB flash memory that contains the Linux image has a full python installation and package manager you can use to install additional software.
The AR9331 has 64 MB of DDR2 RAM available, providing the resources to perform complex tasks like running a web server or streaming video from a webcam.
You can expand the storage memory by adding a micro-SD card or a USB pen drive. By including a directory named “arduino” at the root level of the storage device, it will be automatically recognized by the Yún.

USB Host
The Yún has a USB host port connected to the AR9331. You can connect USB peripherals like webcams, memory sticks, or joypads to this input. Generally, Linux has drivers included for the more common devices like mass storage or mice and keyboards. For more specific devices like webcams, you will need to refer to the device specifications to find the appropriate driver. As the USB port is connected to the Linux processor, it’s not directly accessible from sketches on the 32U4.

—————-

The next post about the Yún will focus on the Bridge library, describing how it facilitates communication between the two processors. Stay tuned!



View the Original article