1.4.2 includes both bug fixes and new stuff.
We fixed some glitches in the webpanel (a bug was found by wildpalms: thank you!).
The OpenWRT Image Builder and the software produced by the http://allseenalliance.org/ is now available for download.
Archive for the ‘Yún’ Category
Next 21st of September Arduino Tour is finally landing in London for a one-day workshop, starting at 10am at The Maker Works London, UK. (max. 18 people).
This edition of the official Arduino workshop is focused on the world of the Internet of Things and will allow participants to experiment with a botanical kit including an Arduino YÚN, plants and sensors. The workshop teaches you how to turn your plants and virtually any object into connected, responsive elements using Arduino YÚN.
Arduino YÚN is the combination of a classic Arduino Leonardo and a small Linux computer, able to connect to a network or Internet via Ethernet or WiFi. Arduino boards are able to read inputs – light on a sensor, a finger on a button, or even a Twitter message – and turn it into an output – activating a motor, turning on an LED, publishing something online.
Tom Igoe some days ago wrote an interesting post about Arduino Yún on his blog. We post it here as it could be useful to the Arduino Community.
Recently, Federico Fissore added node.js to the package repository for the Arduino Yún. Here’s how you get node to communicate with the Arduino processor on the Yún via the Bridge library.
To do this, you’ll need an Arduino Yún, a microSD card, a microUSB cable and a wifi connection. You should be familiar with the basics of the Arduino Yún and node.js in order to get the most out of this post.
Explore this tutorial demonstrating how the Arduino Yún can be controlled from anywhere with any internet connected web browser. The solution is provided by Bo Peterson using the Yaler service which means that the Yún can be reached from any network without knowing the IP-address, and without any port forwarding on the router where the Yún is connected.
A common problem in home automation and internet of things applications is that it is difficult to reach devices connected behind wifi routers from the outside. There are different approaches to overcome this problem:
- Port forwarding and static ip addresses. This solution requires the user of the connected device to know how to configure a router and have access to router administration which is not always possible. A Yun tutorial with port forwarding is found here.
- Polling is a technique where the connected device at regular intervals checks with an external server if the device should take action. This solution requires no configuration of the router but it creates extra network traffic and response delays.
- A third way is to use WebSockets which is a way of providing real time full-duplex communication over TCP. Spacebrew is a good open source toolkit for connected devices using WebSockets. Autobahn is another infrastructure that can be used.
- Reverse HTTP is the solution that will be used in this tutorial. We will use Yaler which is an open source relay infrastructure that gives access to connected devices with very little configuration.
At the end of May, Massimo Banzi and Giorgio Olivero (Todo) spent some days at the Copenhagen Institute of Interaction Design to teach a class called Connected Objects. The class goal was to envision, design and implement interactive objects that are open and connected, whose design and behaviour can be used to sense, read and affect the domestic landscape or other shared environments.
One of the team of students (Arun Mota, Hsiang-Lin Yang, Yashodeep Gholap) worked on Arduino Yún to create an energy redistribution service that allows people to save money and in parallel donate towards energy distribution projects in deprived areas of the world:
LightUp is an interactive fundraising coin jar that firstly encourages personal savings and then also allows people to contribute a part of their savings towards the cause. The system allows them to track in real-time exactly how many units of electricity they helped generate. Another visible reward is the jar lights up for 10 minutes each time they drop a coin.
Now you can connect even more Arduinos with the power of Temboo by simply flipping our IoT Mode on. This new feature opens up a whole new world of possibilities for the Internet of Things.
What is IoT mode, you ask?
It’s a new way to access our 2,000+ Choreos on any of your Arduino or Arduino-compatible boards. By just hitting a switch at the top right of any Choreo page, you “got the power” to call that Choreo with a sketch tailored specifically for the device you pick from our drop down menu. Previously, this feature was only available for the Yún, but now it is open to the larger Arduino family. All you have to do is select the type of shield your board uses and the code will generate accordingly.
So how do I begin using this amazing IoT feature?
Select a Choreo from our vast Library and turn on IoT Mode. In the example above, we chose the Data.gov API and the GetCensusIdByCoordinates Choreo. Data.gov is a cool way to access APIs from a number of US governmet agencies and to query government datasets, including the US Census! (more…)
Marco Schwartz is an electrical engineer and passionate about home automation. He wrote us some weeks ago to present his work on the Arduino Yún:
I was recently playing with the Arduino Yún for a whole set of new projects, and I discovered a sketch that implements a REST API for the Arduino Yún. We’ll see in more details what a REST API is, but for now let’s say it allows to standardise the communication between your Arduino and the external world via WiFi or Ethernet, and develop complex applications without having to modify your Arduino sketch every time. (more…)
Arduino user DavidMJBos sent us a project using Node js server on the Arduino Yún to control the lights, heating and some other sensors in the office of Appsaloon, the company where he’s doing an internship.
They already use Node.js for a lot of things and some of them are pretty cool with it.
That’s how they did it:
First of all you need to expand your flash, because there is not enough flash (16 MB) on the Arduino Yún. Sounds reasonable right? Not when you got the Yún for the first time in your hands. Luckily someone wrote this tutorial.
To start with you need to be on the same network to reach the Arduino :-).
Open your terminalssh firstname.lastname@example.org
It will ask for a password, which will by default be: ‘arduino’:
Now you can install Node.js on the Yún type : (more…)
Today and tomorrow you visit us at the Arduino booth (#204) right next to Atmel booth (#205) and have a look at our cool demos. You’ll find all the new boards: Arduino TRE Development Edition and Arduino ZERO, Arduino Yún together with Temboo and the freshly baked Arduino at Heart littleBits Module!
- The first feature allows you to use a micro SD card as a replacement for the Yún’s internal flash memory. We have a tutorial that demonstrates how using this expands your Yún’s free disk space from the original 7 Megabytes to the available Gigabytes of your SD card.
Having more disk space allows you to make more complex projects, like activating webcams and saving pictures taken with it. In addition, by using an external SD card you avoid using the internal flash memory, thus extending the life of your Yún.
- The second new feature is the availability of Node.js as an installable package.
In order to install Node.js on your Yún, use the Arduino IDE to upload the YunSerialTerminal example or access your Yún via SSH.
Be sure your Yún has access to the internet, then type the following commands:
opkg install node
And voilà! You’ve got Node.js on your Yún.
Try it out with the following command:
node -e "console.log('Hello_Yun')"