Arduino Yún  What is it? + Features and Projects ▷ 2020

The Internet is a modern technology that is used to automatically manage different devices that are in a house. Today it is possible to use this tool through an Arduino Yún board.

In this article we will explain what is Arduino Yún and what is this hardware development board for. Further, you are going to know what the main characteristics are.

By last, you will find a list with the best projects that you can do yourself with Arduino Yún so you can practice everything you learned in this post. Don’t miss out on anything.

What is Arduino Yún and what is this hardware development board for?

Arduino Yún It is a type of board that is developed with Openwrt-Yún, a Linux distro that uses your Kernel. You work with Yún, generally, in computer networks and in the development of applications, so it becomes an ideal tool to associate it with technology Internet of Things.

This is made easier when its low cost and the possibility it offers to use WiFi is mentioned thanks to the built-in network card. It can be used in a variety of projects, but the most recurrent are that the gadget can connect to the web.

What are the main features of this Arduino board?

Among the most important features that Arduino Yún offers is its ability to connect to the Internet, thanks to its built-in network card. This allows to obtain a versatile tool to work on different projects from WiFi or LAN. The proportions it has are similar to that of an Arduino UNO and Leonardo board, so the space it occupies is suitable to include in any project.

But keep in mind that does not have a voltage regulator, so any voltage higher than 5 volts can burn out the processor. It has a micro USB input with a USB host to connect to Linux through Linino (Openwrt-Yún). In addition, it has an entrance for cards Micro SD which allows to incorporate an external memory that helps to work the RAM and improve the performance of the board.

List of the best projects that you can do yourself with Arduino Yún

We will show you below in the best projects that you can do yourself with Arduino Yún:

GPS to track location

GPS to track location

With this project you can create a GPS that will warn you, using Google maps, what is your location in real time. In addition, you will be able to know the speed and the temperature that is in the place where you are. You will need to an Arduino Yún board, temperature and light intensity sensors and a GPS.

After assembling all the components you will have to enter the code in the Arduino IDE:

#include <FileIO.h>
#include <SoftwareSerial.h>

prevmillis largo sin firmar = 0;

int TLdelay = 1000;

tick largo sin firmar = 0;

gpsTick largo sin firmar = 0;

int tempSensor = A0;

int lightSensor = A1;

pulido de carbón [200];

int buffc = 0;

bool fdone = falso;

bool lastch = falso;

tiempo de sincronización largo sin firmar = 0;

SoftwareSerial gps (8, 7);

datos de char [300];

int índice = 0;

bool doprint = falso;

lector de bytes C = 0;

void WriteTempLight ();

anular WriteGPS ();

configuración vacía () {

//Serial.begin(9600);

// mientras (! Serial);

//Serial.println("SERIAL LOADED  n ");

begin ();

println ("BRIGO CARGADO  n");

begin ();

//Serial.println("SD LOADED  n ");

Archivo dataFile = FileSystem.open ("/ mnt / sd / arduino / www / sensorData.txt", FILE_APPEND);

if (dataFile) {

println ();

println ("-------------------- REINICIADO ------------------------ -------- ");

println ();

close ();

}

Archivo gpsFile = FileSystem.open ("/ mnt / sd / arduino / www / gpsData.txt", FILE_APPEND);

if (gpsFile) {

println ();

println ("-------------------- REINICIADO ------------------------ -------- ");

println ();

close ();

}

begin (9600);

//Serial.println("GPS software serial init done [rx = 8, tx = 7] ");

//Serial.println("time HHMMSS london, válido, longitud, latitud, velocidad en nudos ,, fecha DDMMYY ");

}

bucle vacío () {

unsigned long nowmillis = millis ();

if (nowmillis - prevmillis> = TLdelay) {

prevmillis = nowmillis;

WriteTempLight ();

}

GetGPS ();

WriteGPS ();

}

void WriteTempLight () {

garrapata ++;

Archivo dataFile = FileSystem.open ("/ mnt / sd / arduino / www / sensorData.txt", FILE_APPEND);

if (dataFile) {

lectura int = analogRead (tempSensor);

int luz = analogRead (sensor de luz);

voltios flotantes = lectura / 205.0;

temperatura de flotación = 100,0 * voltios - 50;

print ("https://internetpasoapaso.com/arduino-yun/#" + String (tick));

print ("T" + String (temp));

print ("L" + Cadena (luz));

println ("");

close ();

//Serial.println(temp, 10);

//Serial.println(light, 10);

} más {

//Serial.println("stuff salió mal con la tarjeta sd @  "WriteTempLight () " ");

}

}

void WriteGPS () {

si (buffc> 195) {

buffc = 0;

para (int i = 0; i <buffc; i ++) {

buff [i] = '';

}

}

if (millis ()> synctime + 200 &&! fdone) {

Archivo archivo = FileSystem.open ("/ mnt / sd / arduino / www / gpsData.txt", FILE_APPEND);

if (archivo) {

print (" n #" + String (gpsTick));

para (int i = 0; i <buffc; i ++) {

print (buff [i]);

buff [i] = '';

}

buffc = 0;

fdone = verdadero;

}

close ();

}

}

void GetGPS () {

si (gps.available ()> 0)

{

char ch = gps.read ();

if (ch == '$') {

readerC = 1;

doprint = falso;

}

if (ch == 'G' && readerC == 1) {

readerC = 2;

}

if (ch == 'P' && readerC == 2) {

readerC = 3;

}

if (ch == 'R' && readerC == 3) {

readerC = 4;

}

if (ch == 'M' && readerC == 4) {

readerC = 5;

}

if (ch == 'C' && readerC == 5) {

readerC = 6;

}

if (ch == ',' && readerC == 6) {

readerC = 7;

}

si (readerC == 7) {

readerC = 8;

doprint = verdadero;

gpsTick ++;

// saaaaaaaaaaaaa

//Serial.print("n# "+ String (gpsTick));

buffc = 0;

}

if (ch == ',' && readerC> = 8) {

readerC ++;

}

if (doprint && readerC! = 10 && readerC! = 12) {

//Serial.print(ch);

buff [buffc] = ch;

buffc ++;

si (ch == '*')

lastch = verdadero;

si (readerC == 14) {

synctime = millis ();

fdone = falso;

}

}

}

}

Checking Clock for new emails

Checking Clock for new emails

Yes you need to periodically check your emails with Arduino you can do it automatically. For this you will need a badge Arduino Yún, a servomotor and a clock, this last element will allow you to start the task at a precise time.

What you will have to do is assemble all the pieces and then write the code in IDE:

#include <Process.h>

#include <FileIO.h>

#include <SoftwareSerial.h>

SoftwareSerial Geno(7,8); // Rx , Tx

const char* settings_file = "/root/gmail_settings

Leave a Comment