【 Arduino Yún 】What is it? + Characteristics and Projects ▷ 2022

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. Also, You will know what are the main characteristics that it has.

Finally, you will find one that you can make yourself with Arduino Yun 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 Yun is a type of board that is developed with Openwrt-Yún, . Yún is generally used in computer networks and application development, making it an ideal tool to associate with technology internet of things.

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

What are the main features of this Arduino board?

Among the most important features offered by Arduino Yún is the ability to connect to the Internet, thanks to its built-in network card. This allows obtaining a versatile tool to work on different projects from WiFi or . The proportions it has are similar to that of a Leonardo andso the space it occupies is suitable for inclusion in any project.

But you have to keep in mind that does not have a voltage regulatorso any voltage higher than 5 volts can burn 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 entry for cards Micro SD which allows to incorporate an external memory that helps to work the RAM and improve the performance of the board.

See also  【UNLINK APPS from Social Networks】▷ Step by Step ▷ 2022

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

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

GPS to track location

With this project you will be able to create a GPS which will alert you, using google maps, what is your location in real time. In addition, you will be able to know the speed and the temperature 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 #include prevmillis long unsigned = 0; int TL delay = 1000; unsigned long tick = 0; unsigned long gpsTick = 0; int tempSensor = A0; int lightSensor = A1; charcoal polishing ; int buffc = 0; bool fdone = false; bool lastch = false; unsigned long sync time = 0; Software Serial gps (8, 7); char data ; int index = 0; bool doprint = false; byte reader C = 0; void WriteTempLight(); override WriteGPS(); void setup() { //Serial.begin(9600); // while(!Serial); //Serial.println(“SERIAL LOADED \ n “); begin(); println(“BRIGO LOADED\n”); begin(); //Serial.println(“SD LOADED \ n “); File dataFile = FileSystem.open(“/mnt/sd/arduino/www/sensorData.txt”, FILE_APPEND); if (dataFile) { println(); println(“——————–RESET———————— — —— “); println(); close(); } gpsFile File = FileSystem.open(“/mnt/sd/arduino/www/gpsData.txt”, FILE_APPEND); if (gpsFile) { println(); println(“——————–RESET———————— — —— “); println(); close(); } begin(9600); //Serial.println(“GPS software serial init done “); //Serial.println(“time HHMMSS london, valid, longitude, latitude, speed in knots,, date DDMMYY “); } void loop() { unsigned long nowmillis = millis(); if (nowmillis – prevmillis >= TLdelay) { prevmillis = nowmillis; WriteTempLight(); } getGPS(); writeGPS(); } void WriteTempLight() { tick++; File dataFile = FileSystem.open(“/mnt/sd/arduino/www/sensorData.txt”, FILE_APPEND); if (dataFile) { read int = analogRead(tempSensor); int light = analogRead(light sensor); float volts = reading / 205.0; float temperature = 100.0 * volts – 50; print(“#” + String(tick)); print(“T” + String(temp)); print(“L” + String(light)); println(“”); close(); //Serial.println(temp, 10); //Serial.println(light, 10); } else { //Serial.println(“stuff went wrong with sd card @ \ “WriteTempLight () \” “); } } void WriteGPS () { if (buffc > 195) { buffc = 0; for (int i = 0; i < buffc; i++) { buff = ''; } } if (millis() > synctime + 200 && !fdone) { file file = FileSystem.open(“/mnt/sd/arduino/www/gpsData.txt”, FILE_APPEND); if (file) { print(“\n#” + String(gpsTick)); for (int i = 0; i < buffc; i++) { print (buff ); buff = ''; } buffc = 0; fdone = true; } close(); } } void GetGPS() { if (gps.available() > 0) { char ch = gps.read(); if (ch == ‘$’) { readerC = 1; doprint = false; } 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; } if (readerC == 7) { readerC = 8; doprint = true; gpsTick ++; // saaaaaaaaaaaaa //Serial.print(“\n# “+ String (gpsTick)); buffc = 0; } if (ch == ‘,’ && readerC>= 8) { readerC++; } if (doprint && readerC! = 10 && readerC! = 12) { //Serial.print(ch); buff = ch; buffc++; if (ch == ‘*’) lastch = true; if (readerC == 14) { synctime = millis(); fdone = false; } } } }

See also  Just what you needed! We have developed a revolutionary ring that repels insects so they don't bother you anymore

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 board Arduino Yuna 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 #include #include SoftwareSerial Geno(7,8); // Rx , Tx const char* settings_file = “/root/gmail_settings\0”; char labelbuffer; String label; /* GMAIL SETTINGS */ const String username = “****************@gmail.com”; const String password = “************”; void setup() { begin(9600); begin(); begin(); } void loop() { label = “arduino”; File settings = FileSystem.open(settings_file, FILE_READ); while (settings.available() > 0){ char c = settings.read(); label += c; } close(); println(“label:” + label); Process p; delay(5000); runShellCommand(“curl -u ” + username + “:” + password + ” \”https://mail.google.com/mail/feed/atom/” + label + “\” -k –silent |grep – o \”*\” |grep -o \”*\””); while(p.running()); int result = p.parseInt(); print(“Result:”); println(result); print(“Label:”); println(label); flush(); switch (result) { case 0: println(“You have 0 unread emails”); break; case 1: println(“You have 1 unread emails”); break; case 2: println(“You have 2 unread emails”); break; case 3: println(“You have 3 unread emails”); break; case 4: } delay(3000); println(“Done checking! “); }

Home monitoring with Internet of Things

With this project you can control the temperature in your house, the lighting of the lights, starting the washing machine and turning off the television among other things. For this you will need to assemble an Arduino Yún board, a subscription to http://dweet.io/, a 10 k ohm resistor, an LDR light sensor and a temperature sensor, LM35.

When you are done connecting all the components to the corresponding pins, you will have to write the following code:

See also  【 Access Clipboard 】What is it? + How It Works ▷ 2022

#include #include int analogIn = A0 ; int analogVal = 0 ; int analogIn1 = A1 ; int analogVal1 = 0 ; int light = 0 ; float temperature ; void setup() { pinMode(13, OUTPUT); digitalWrite(13, LOW); Bridge . begin (); digitalWrite(13, HIGH); } void loop() { String dataString ; analogVal = analogRead( analogIn ); analogVal1 = analogRead( analogIn1 ); light = map( analogVal , 0 , 1024 , 0 , 100 ); temp = analogVal1 * 0.4689455791989076 ; Client HttpClient ; dataString += getTimeStamp(); get(“http://www.dweet.io/dweet/for/YUN_ANALOG_IN_DWEETING?A0_Home_Light=”+String(light)+”&A1_Home_Temp=”+String(temp)+”&TimeStamp=”+String(dataString); delay( 1000); } String getTimeStamp() { String result; Process time; begin(“date”); addParameter(“+%D-%T”); run(); while(time.available()>0) { char c = time.read(); if(c != ‘\n’) result + = c ; } return result ; }

Loading Facebook Comments ...
Loading Disqus Comments ...