background preloader

Yun

Facebook Twitter

Cylinderlight/udp2serial. Python - format of /dev/input/event*? Sniff: Building GCC for the Yun (in 12 not-easy steps) The Arduino Yun is a pretty neat bit of kit and should make an ideal place to run Sniff. It has two distinct parts: what is effectivly an Arduino Leonardo, coupled with a Mips Linux host. The trouble is the Linux side is based on OpenWRT.

While this is an OK embedded Linux its designed to run on stuff like routers, where resources are tiny. The Yun processor has 64Mb of Ram, and a 400MHz MIPS processor. With the newly released "overlay" patch, it can (effectively) boot from the SD card, so it has at least 2GB of storage. While that may not sound like a lot, that's a slightly higher spec that the first MIPS machine I used, which supported about 20 users all at the same time. In that context there's no reason why we shouldn't be able to run the Sniff compiler on the Linux side, and have it program the Arduino side... The rest of this post will be of NO INTEREST AT ALL to anyone who usually reads my blog. If you're looking for cool educational computing stuff please just scoll past this. do.

Picture Transfer Protocol Device Database. Repository - [gps2photo] Contents of /gpsPhoto/src/gpsPhoto.pl. Building a custom image for Arduino YUN. As soon as I got my hands on the YUN I found the selection of packages lacks many interesting pieces of software that could help building interesting appliances. I think Arduino people selected those packages that would easily fit in the minimal 64MB flash. So first of all I formatted a 4GB mini-sd as ext3 and plugged it in to the mini, it was recognized as /dev/sda1, so I quickly added an /opt folder and mounted in there instead. Now I have plenty of space to add my custom packages, and some "secure" disk space just in case I have to wipe my YUN loosing all flash content. Resetting the YUN flash is done by holding the reset button for 30 seconds.

Holding it for 5 just resets the WiFi config. Then I spent some time to collect all the information needed to setup our own buildroot for the YUN, here you can find a few tips to do it yourself. As I'm on a Mac, it is wise to use a VirtualBox machine (save you lots of headaches), with the latest Debian stable distribution. What's a buildroot . Getting started with Arduino Yun and Autobahn. , Tobias Oberstein Real-time charting in HTML5 of sensor values from Arduino Yun over WebSocket with Autobahn. IoT Cookbook The IoT Cookbook now provides more and more up-to-date information about connecting your Yun using Autobahn, getting data from various components and accessing outputs. See the Arduino Yun Overview Page in the IoT Cookbook. Preface Last update on 2014/10/10: Code for this tutorial has been migrated to WAMP2 and tested to work with the latest AutobahnPython (0.9.1) and AutobahnJS (0.9.5). Introduction The Arduino Yun is a small embedded computer which can be used as a flexible platform for all kinds of hardware projects: The Yun actually is 2 computers in one: a tiny 8-Bit AVR MCU (ATmega32u4 with 32kB Flash and 2.5kB RAM running at 16MHz)a small 32-Bit MIPS CPU (Atheros AR9331 with 16MB Flash and 64MB RAM running at 400MHz) The MCU runs in hard real-time: you can use it to e.g. directly control servo motors or interface to sensors.

What we cover Contents: What you need Wifi. Yun. The Arduino Yún is an Arduino board unlike any other. While programming it is very similar to the Arduino Leonardo and uses the same processor, the Atmel ATmega32U4, it also has an additional processor, an Atheros AR9331, running Linux and the OpenWrt wireless stack. Programming the 32U4 via USB is identical to the Arduino Leonardo. Once you've configured the Yún to connect to your WiFi network, you can program the 32U4 via WiFi as well. To connect the Arduino Yún to your computer, you'll need a Micro-B USB cable. This USB cable provides power and data to the board. Differences from the Arduino Leonardo In addition to the 32U4 chip, the Yún has an additional processor, an Atheros AR9331, which runs a distribution of Linux for embedded systems named OpenWrt-Yun, based on OpenWrt.

The Yún has a number of different physical characteristics and connectors than the Leonardo. There is no built in 5V regulator. The 32u4, WiFi, and AR9331 processors all have their own reset buttons. OpenWrt-Yun or.