Questions tagged [arduino-yun]
The Arduino Yún is a microcontroller board based on the ATmega32u4 and the Atheros AR9331. Use this tag for questions specifically regarding the Yún, and not just general Arduino usage.
192 questions
0
votes
1
answer
3k
views
Streaming sensor data over UDP using an Arduino Yún - how to do it and how fast could it be?
The company where I work wants to do a proof of concept for our new product, a force-sensing platform.
The platform contains four three-axial load cells, so we have 12 channels, which are to be ...
-1
votes
1
answer
124
views
Yum as eth->wlan adaptor
Is there a way to make a yun an Ethernet-wifi bridge? Applications include giving wifi to raspberry pi and other Ethernet only devices and vice versa.
0
votes
3
answers
9k
views
How to empty the buffer for Serial port?
I have a Yun that accepts commands via the bridge (note the below code is part of a very simple virtual keyboard that accepts commands then runs Keyboard.println on them:
#include <stdlib.h>
#...
0
votes
2
answers
962
views
Recover from wrong Wi-Fi password on Arduino Yún
I'm trying to customize my Arduino Yún to work as an access-point (or hotspot) for providing services to clients directly connected and, alternatively, to work as a client on a wireless network for ...
2
votes
0
answers
285
views
Arduino yun strange uploading error
I'm new to arduino and I'm trying to upload a fairly large (I think) program to a arduino yun which includes a 3 dimensional array. I'm using the bridge features of the yun.
when I upload the first ...
0
votes
1
answer
450
views
Perfect copy of Yun with Micro SD
My Yun has a micro SD card with shared file system using ExpandingYunDiskSpace.
I would like to copy my Yun/SD card data perfectly onto my backup Yun/SD card. Because I have made many changes to the ...
0
votes
1
answer
87
views
Console monitor on different wifi network
I have a Yun doing data logging. It runs nicely and when I am on the same wifi network I can use the Console Monitor to watch what it is doing in more detail. However, my arduino is deployed far from ...
1
vote
1
answer
96
views
Does restarting Yún configuration mess up Arduino or its SD card?
I noticed something odd recently - a Yún, that was working previously, wouldn't connect.
After logging in to the web setup, setting the access point and password (which hadn't changed), and save &...
0
votes
1
answer
812
views
Change arduino.local server address
I have a Yun and I'm trying to change the URL I type in to access the Web UI.
I've successfully changed its hostname in /etc/config/system, which now lets me SSH in using the new name. However:
Going ...
0
votes
4
answers
4k
views
iterate through values in an array of strings to print
I (think I) am trying to iterate through the values of an array and print the string to a tft. I have declared the array of 4 strings, and that works fine. But when I try to print it, I get garbage. ...
2
votes
0
answers
95
views
How to make the Yun allow access to a resource
I have replaced /www folder on the Yun (backing it up first), how do I make it so the Yun will redirect to the new index.html? It, right now, gives Access to this resource is forbidden when I go to ...
0
votes
3
answers
183
views
Convert a Serial string to a sketch command on Yun?
How can I convert a string like the following:
"pinMode(2, INPUT_PULLUP)"
or
'Keyboard.print("Hello world")'
into actual code that the Arduino can act on?
0
votes
1
answer
83
views
Transmitting sketches to Yun with Autobahn - a byte at a time?
I am using this tutorial to connect an Arduino Yun with a browser using Autobahn.
In the python file in the above repo, there is this code:
def controlLed(self, turnOn):
if turnOn:
...
2
votes
0
answers
367
views
Yun as bluetooth master
How does one make an outgoing bluetooth connection? I have already installed packages for bluetooth, and have run hcitool scan to find the BT address. And I'm using a USB BT dongle.
Output of lsusb
...
1
vote
1
answer
1k
views
Arduino Yun used as Wi-Fi hotspot
I use for a project an Arduino Yun with Node.JS + socket.io to provide interactivity between a smartphone, driving through a webpage different devices.
I would like to enable this service for ...
0
votes
1
answer
1k
views
How to copy files from local computer to Yun with scp?
I need to transfer files from my local machine to my Arduino Yun.
I have tried:
scp /Users/SSCirrus/Documents/index.html [email protected]:/root
scp ~/Users/SSCirrus/Documents/index.html root@...
3
votes
0
answers
2k
views
Cannot access SD card on Yun
I have a brand new 8GB micro SD card freshly formatted as FAT in my Yun.
When I run df -h, I don't see the card's capacity included.
When I enter cd /mnt/sda1, it says can't cd to /mnt/sda1.
When I ...
3
votes
0
answers
406
views
How do I install a library in Arduino Yun cross compile environment?
A few days ago, I've asked this question.
Thanks to the replies I've received, I've set up a cross compile environment for Yun by following this guide.
I've created a virtual machine with virtualbox ...
0
votes
1
answer
159
views
Arduino YUN real time control
I have a very specific problem, exactly with real time control. For example I try to write an application where I can edit min or max temperature that after reaching it , I will receive SMS with ...
0
votes
1
answer
698
views
How to get string parts from string? [duplicate]
I have this method:
void getWeatherData() {
String resp = "";
Process p;
p.begin("python2.7");
p.addParameter("/root/weather.py");
p.run();
while (p.available() > 0) {
...
1
vote
0
answers
249
views
Yun - FileSystem.Open prevents client.println from outputting to web page
The below code is meant to display lines stored in a text file to an arduino based web page (it's a IR gate monitoring solution).
When I visit
I can execute client.println("hello") and I see the ...
2
votes
3
answers
706
views
Sending values to an Arduino Yun across different networks
I have quite a lot of experience with Arduino but have recently been faced with a challenge that has stumped me. The project is to create a robot that can be controlled from a separate network than it ...
2
votes
0
answers
687
views
Arduino Yun not showing up in Windows or Linux [software issue?]
I've got my Arduino Yun (less than a year old) connected to my computer via a USB cable. The device seems to be on (that is, the lights are all on). However, the Arduino is not showing up in either ...
3
votes
0
answers
317
views
how to turn yun to ad hoc mode?
Can I turn Yun to ad hoc mode?
How to?
As the image above I can see the Ad-Hoc model in that drop down list. But only WEP for its security.
2
votes
0
answers
80
views
yun manage bridge manually
in "Disabling the Bridge Script" of http://cylonjs.com/documentation/platforms/yun/
I did:
Edit the /etc/inittab file to comment out the ttyATH0 line (put a # before it)
::sysinit:/etc/init.d/rcS S ...
0
votes
1
answer
240
views
output of yun is not 3.3
After execute the program of below, the 13 pin output is 4.8v. Why it's not 3.3v?
void setup() {
// put your setup code here, to run once:
pinMode(13, OUTPUT);
}
void loop() {
// put your main ...
2
votes
0
answers
593
views
How to use console.log message from nodejs server, to control led pin 13?
I want to use Arduino Yun as a client, that connects to my nodejs server, receives a message from nodejs and then change led pin 13 on/off according to the message send.
I have this example of a ...
0
votes
1
answer
705
views
Find external router IP from Arduino Yun inside router network
I want two Arduino Yuns in different private networks to communicate, i.e., behind two distinct routers of which at least one does not have dynamic DNS, so its external IP may change from time to time....
-1
votes
1
answer
319
views
I have to reload Sketch every time I start my Yun
I am new to Arduino and IoT. I got my hands on a Yun and loaded a simple sketch to subscribe to a topic. I am receiving messages (I have set up a PHP script and broker on a server, which takes care of ...
2
votes
0
answers
54
views
Bridge */arduino/analog/2 returns a blank page
Had some start up difficulties. But updated the YUN and IDE to the latest version.
Using * "/arduino/digital/13/1" works as supposed (turns on the LED) - it's just a bit slow. But I can't see why ...
2
votes
0
answers
358
views
Yun - replaced uhttpd with lighttpd - luci works but not /data access..?
Ok, utthpd is running on port 80 and lighttpd on port 81...both give access to the luci control panel...all well and good.
However the /data access to the yun data store only works from uhttpd.
...
0
votes
1
answer
1k
views
Arduino YUN server crashes after few hours!
I have made a simple server using the YUN SERVER and CLIENT Libraries./
The server runs on a loop and waits for a client to connect. After connection it sends the client a simple message and then ...
2
votes
3
answers
23k
views
How to make an arduino wifi repeater?
I am trying to make a wifi repeater. My router's signals don't come to my study and instead of buying a proper wifi repeater I prefer making one.
I want to learn how to make a simple wifi repeater ...
0
votes
1
answer
1k
views
Arduino Yun USB host - reading usb MIDI data and passing forward to another device
I am starting simple, but for some reason I cannot find any examples online and I stuck with my task.
I have a usb midi keyboard, Arduino Yun, and a synthesiser that can accept midi via usb. The ...
3
votes
2
answers
375
views
Which thermometer for home brewing
Hello,
I have an Arduino Yun and I brew beer.
I would like to log the temperature of the beer at all time during the fermentation process (final stage). This means the thermometer would have to ...
1
vote
1
answer
846
views
External access to Yun - request not recognised as HTML
I am trying to access my Yun externally.
My router recognises traffic on Port XXXXX and forwards it to my Arduino Yun.
I have the below code working internally and now trying to adapt this to work ...
2
votes
1
answer
1k
views
Communication between python script and Arduino sketch
I'm trying to transfer data beetween the two scripts. I'm already using the YunMesseger library (https://github.com/plotly/YunMessenger). But it only make the
Arduino -> Python
communication.
I ...
2
votes
1
answer
431
views
How can I obtain the .hex of a file
I have an Arduino Yún running Openwrt-Yún 1.5.3 (which is the latest version, as I upgraded yesterday), and I am trying to obtain a .hex (compiled sketch), so that I can upload a sketch directly into ...
-1
votes
2
answers
1k
views
Arduino Yun - Problem with bridge and client
I'm using this simple code
#include <Bridge.h>
#include <YunServer.h>
#include <YunClient.h>
YunServer server;
void setup() {
Serial.begin(9600);
Bridge.begin();
server....
2
votes
0
answers
81
views
Issue with removing files progrmatically created under "/www/..."
I am having an issue with removing temporarily files I am creating under the /www directory. I have a subdir, "/www/csv", where csv formatted files are being written based on sensor data. The files ...
1
vote
1
answer
1k
views
Pulse measurement
I am currently doing the project in pulse measurement using an Arduino Yún. I am using the pulse sensor SEN-11574.
When I verify the code I get this error:
Arduino: 1.5.8 (Linux), Board: "Arduino ...
2
votes
0
answers
3k
views
How do I read from an SD card on the Yun?
I'm trying to read a small file off the SD card installed in a Yun. Here's the sketch:
#include <FastLED.h>
#include <FileIO.h>
#define WIDTH 32
#define HEIGHT 1
#define NUM_LEDS (WIDTH *...
-1
votes
1
answer
20k
views
arduino program got error expected //primary-expression before ')' token error: //expected ';' before '}' token E
#include "pulse-sensor-arduino.h"
#include "Arduino.h"
#define PulseSensorbegin
int pulsePin = 0;
int blinkPin = 13;
int fadePin = 5;
int fadeRate = 0;...
2
votes
1
answer
215
views
What are the environmental requirements of an Arduino?
I'd like to use an Arduino Yún in a somewhat outdoor environment (in a metal box on a truck). I think I've seen that the temperature requirements of the Uno are -40 °C to +85 °C, but I can't find ...
0
votes
1
answer
191
views
Arduino Yun, pass int data true REST
Would it be possible to instead of passing a state via a REST browser:
digital/13/1
to set an int value? For example, if in the sketch if I would name an int: 2, could I set this to 48 via REST?
If ...
0
votes
1
answer
356
views
Works on Uno but not on Yun
I found some code that works to transmit the required signal to an RX-2B RC receiver, the code works great from my Uno but when I tried to run it from my Yún nothing happens.
The code has definitely ...
0
votes
1
answer
2k
views
Unable to connect to Linux Environment (Linino AR9331 Interface) in Arduino Yun
I was trying to reset my Arduino Yun (WLAN button pressed for more than 30 seconds), but it just kept on blinking for about 10 minutes. Then I finally got impatient and restarted the Yun. After the ...
2
votes
2
answers
3k
views
Arduino Yun RFID-RC522 module not working
I have tried to use Arduino Uno with RFID-RC522 module. It is good work[1] and read rfid cards. But Arduino Yun doesn't work with RFID-RC522 module.
What is diffrent Uno and Yun?
1- http://www....
3
votes
1
answer
897
views
Yun as a Conventional Wireless Access Point
I want my YUN to act as a server in a client/server architecture so students can control their wifi robots via their desktops. I can plug the YUN directly into an ethernet port on our network and want ...
0
votes
1
answer
2k
views
How to make Arduino communicate with MySQL?
I am trying to send data from my Arduino to my database but it seems that the process is not successfully beginning. Here is my code for Arduino:
#include <Process.h>
#include <Bridge.h>
...