Difference between revisions of "Arduino Yun"
(→Crash Course) |
(→Crash Course) |
||
Line 2: | Line 2: | ||
=Crash Course= | =Crash Course= | ||
− | *if you don't know the Yun password ask someone that would know in person | + | *if you don't know the Yun password ask someone that would know in person |
*getting started http://arduino.cc/en/Guide/ArduinoYun | *getting started http://arduino.cc/en/Guide/ArduinoYun | ||
*Arduino IDE 1.5.8 BETA must be used, get it here: http://arduino.cc/en/Main/Software | *Arduino IDE 1.5.8 BETA must be used, get it here: http://arduino.cc/en/Main/Software |
Revision as of 16:44, 13 November 2014
Contents
Arduino Yun
Crash Course
- if you don't know the Yun password ask someone that would know in person
- getting started http://arduino.cc/en/Guide/ArduinoYun
- Arduino IDE 1.5.8 BETA must be used, get it here: http://arduino.cc/en/Main/Software
- micro usb port is used for power and for uploading sketches
- IP address can be used in a web browser or to ssh
- SD cards and flash drives are automatically mounted to /mnt/
- OS is OpenWrit and uses OPKG (similar to apt-get) http://arduino.cc/en/Tutorial/YunPackageManager
- has Python 2.7
- advised that C++ be cross-compiled
- the "Bridge" library creates a bridge between Arduino and Linux
- read this for more information: http://arduino.cc/en/Reference/YunBridgeLibrary
- or this for an example: http://arduino.cc/en/Tutorial/Bridge
each Yun
- is numbered
- has a designated box
- has a label on it with its number and the last two octets of its IP address (I.E. cs4 130.63 is csyun4 with the IP 159.28.130.63)
- 159.28 is Earlham's IP address
Resources
need sorting ->
Current Yuns
csyun1
- registered
- not configured
- 90A2DAF510F8
- ec2011
- 159.28.130.243
- owner: charliep
csyun2
- registered? (no internet access)
- configured?
- 90A2DAF30034
- ec2009
- 159.28.130.242
- owner: charliep
csyun3
- registered
- configured
- 90A2DAF210E7
- ec2012
- 159.28.130.191
- owner: charliep
csyun4
- registered
- configured
- 90A2DAF031AC
- ec2016
- 159.28.130.63
- owner: charliep
csyun5
- registered
- configured
- 90A2DAF9035F
- ec2017
- 159.28.131.13
- owner: charliep
csyun6
- registered
- configured
- 90A2DAF51147
- ec2024
- 159.28.131.16
- owner: charliep
csyun7
- not registered
- not configured
- with Andrey
Details
Package Manager
Uses a package manager called opkg. Very similar to apt-get and yum. Has a healthy selection of software.
Comes preinstalled with
- python 2.7
- vim / nano
Boot
- The Arduino side boots up almost instantaneously.
- However, the Linux side takes about as long as a PC to boot up.
- The white light indicates that the wifi is working among other things.
Sketch Upload
- You can't upload sketches through wifi on ECWireless. It works on normal LANs. What's the cause of this?
- It seems normal for the USB to lose connection and to immediately reestablish connection. Sometimes the COM port will change after the first sketch upload. If the connection is not reestablished (why?) you can use the "USB stops being recognized" bit below.
Serial
- Serial talks via the Arduino serial monitor
- Bridge establishes communication between Arduino and Linux processors
- Console uses bridge to establish a console (similar to serial) that can be accessed with telent from the Yun's local terminal
troubleshooting
Network
I had trouble getting it on ECWireless. I had to go to ITS and have them register it manually. I configured the Yun to connect to ECWireless and then was able to ssh to it directly. However, I could not upload sketches via wireless.
In addition each time it is rebooted it loses access to wifi. There's a quick solution to that: tapping the 32U4 RST button twice to restart the 32U4 processor and restart the sketch. [described here]
It would be possible to use guest wireless if the Yun told us its IP (due to non-static IP addresses on guest wireless.) It could do that by ssh'ing to a server (using keys) and saving its ifconfig.
It's also possible to bypass ECWireless authentication by having ITS configure the device to have greater permissions.
USB stops being recognized
This fixed my problem: [arduino form]
- nano /usr/bin/run-avrdude
- Change the efuse value from FB to CB
- execute "/usr/bin/run-avrdude /etc/arduino/Caterina-Yun.hex"