background preloader

Projet CNE -trolleybus

Facebook Twitter

Mind42: Free online mind mapping software. Using Eclipse with Arduino Duemilanove | Chipkin Automation Systems. 3: Building applications outside the Arduino IDE - Multiprocessing for Microcontrollers. GetGnuWin32 – Maintaining a Gnuwin32 Package archive. 3: Building applications outside the Arduino IDE - Multiprocessing for Microcontrollers. BuildProcess. Learning Examples | Foundations | Hacking | Links Overview A number of things have to happen for your Arduino code to get onto the Arduino board. First, the Arduino environment performs some small transformations to make sure that the code is correct C or C++ (two common programming languages). It then gets passed to a compiler (avr-gcc), which turns the human readable code into machine readable instructions (or object files).

Then, your code gets combined with (linked against), the standard Arduino libraries that provide basic functions like digitalWrite() or Serial.print(). Multi-file sketches A sketch can contain multiple files (tabs). Transformations to the main sketch file The Arduino environment performs a few transformations to your main sketch file (the concatenation of all the tabs in the sketch without extensions) before passing it to the avr-gcc compiler. First, #include "Arduino.h", or for versions less than 1.0, #include "WProgram.h" is added to the top of your sketch.

Targets. Wiki:lininoonearduinoide [] OPKG Package Manager. The opkg utility (an ipkg fork) is a lightweight package manager used to download and install OpenWrt packages from local package repositories or ones located in the Internet. GNU/Linux users already familiar with apt-get, aptitude, pacman, yum, etc. will recognize the similarities. It also has similarities with NSLU2's Optware, also made for embedded devices. OPKG is however a full package manager for the root file system, instead of just a way to add software to a seperate directory (e.g.

/opt). Opkg attempts to resolve dependencies with packages in the repositories - if this fails, it will report an error, and abort the installation of that package. Missing dependencies with third-party packages are probably available from the source of the package. Please note: If you are using Barrier Breaker (bleeding edge version), opkg install <pkg> may fail, if the package in the repository is for a newer kernel version then the kernel version on your flash. Invocation Package Manipulation Options. YunPackageManager. Learning Examples | Foundations | Hacking | Links The package management system, also called “package manager”, is a very important tool for Linux systems as it gives the user an easy way to install, update and remove additional applications or programs. Instead of downloading and compiling the source code of the program you want to install, the source is pre-configured and compiled according to your system requirements and is inserted inside a package with other information, such as the version and dependencies (requirements of the software to install the software).

On the OpenWrt-Yun Linux system the package manager tool is called “opkg”. Usually operations on a package can be done through the command line with a few arguments. The package manager needs an updated database to display packages available for your system. The most important arguments for opkg are: update : Updates the package database. Example:$ opkg update install: Installs a package.

Example:$ opkg install fortune-mod. Process. Learning Examples | Foundations | Hacking | Links Examples > Process Process This example for the Arduino Yún shows how to use the Bridge library's Process class to run Linux processes on the AR9331. Specifically, in this example, you'll be using curl and cat to transfer data from a web server and get information on the Linux processor.

Hardware Required Arduino Yún a network connection to the internet Circuit There is no circuit for this example. Code Include the Process class in your sketch. In setup(), you'll want to initialize Bridge and start a serial connection. Voidsetup(){ Bridge.begin();Serial.begin(9600); while (! The rest of setup() is used to call your two custom functions, runCurl() and runCpuInfo().

RunCurl(); runCpuInfo();} void loop() { // Do nothing here.} runCurl() will launch the curl command and download the Arduino logo as ASCII. Void runCurl() { Process p; p.begin("curl"); p.addParameter(" p.run(); The full code is below : ShellCommands. Learning Examples | Foundations | Hacking | Links Examples > ShellCommands Shell Commands This sketch demonstrates running Linux shell commands on an Arduino Yún.

It runs the wifiCheck script (located at /usr/bin/pretty-wifi-info.lua) on the Linux processor, then uses grep to get the signal strength. On the 32U4, parseInt() is called to read the WiFi signal strength as an integer, and uses that number to fade an LED with analogWrite(). Hardware Required Arduino Yún Yún connected to a wireless network 220-0hm resistor LED Circuit LED connected to digital pin 9 through a 220-ohm resistor. Code Include the Process class in your sketch. In setup(), you'll want to initialize Bridge and start a serial connection. Voidsetup(){ Bridge.begin();Serial.begin(9600); while (! Create a named Process with which you'll use to run the WiFi status script and grep.

Pass runShellCommand() the path of the script you wish to run, along with any additional commands. While(p.running()); #include <Process.h> Noblepepper/YunAvrToolchain. Intel Centrino Advanced-N 6235 Wi-Fi / Bluetooth 6235AN.HMWWB. BoardYun. (redirected from Products.ArduinoYUN) Overview The Arduino Yún is a microcontroller board based on the ATmega32u4 (datasheet) and the Atheros AR9331. The Atheros processor supports a Linux distribution based on OpenWrt named OpenWrt-Yun. The board has built-in Ethernet and WiFi support, a USB-A port, micro-SD card slot, 20 digital input/output pins (of which 7 can be used as PWM outputs and 12 as analog inputs), a 16 MHz crystal oscillator, a micro USB connection, an ICSP header, and a 3 reset buttons. NB : In some countries, it is prohibited to sell WiFi enabled devices without government approval.

The Yún distinguishes itself from other Arduino boards in that it can communicate with the Linux distribution onboard, offering a powerful networked computer with the ease of Arduino. The Yún is similar to the Leonardo in that the ATmega32u4 has built-in USB communication, eliminating the need for a secondary processor. Summary Schematic & Reference Design Power The power pins are as follows: Arduino Yun - USB Battery Pack for Net-Aware Robot Project. I apologize, in advance, if this information is contained here somewhere or on other Arduino sites.

I did as may google/forums searches as I could think of and was not able to find a complete answer... Knowing that the Yun needs 5v and connecting anything above that can lead to a fried Yun, I was looking for a battery pack solution. How important is amperage output for the Yun? Can you fry it at 1-2A or do I only need to worry about voltage?

I want to use the Yun and a decent external source to power a net-aware, wi-fi based remote controllable, and avoidance AI robot project I am building. The ideal battery pack would power some additional devices through the Yun's 5v out pin (ping sensor, motor shield, two motors, a few servos, maybe a few other sensors). Any other suggestions? Thanks in advance! -Jerry. Yun with batteries. I have just tested a setup based on Arduino Yun. This is what I'v learned so far (I'm still testing): My setup include a voltage regulator based on this example (LM317): 1) 9V Alkaline Battery -> LM317 regulator -> 5V to arduino vin pinArduino Yun is completely unstable. It hangs with led 13 flashing for a while, then stop working after some seconds. 2) 4 Alkaline AA Battery (6V) -> LM317 regulator -> 5V to arduino vin pinArduino yun work for some seconds, but as soon as you stress it by accessing web pages on the httpd and the SD card, the SD card itself became unstable and fail to serve some files. 3) 7.2V from external power source (8-900 mA) -> LM317 regulator -> 5V to arduino vin pinArduino works like a charm, serving web pages, talking via I2C with another arduino and acting as remote control for a robot.

In all these setup I'v read the voltage output from the regulator and it was stable at 5V. Securitate - Setări cont. Installing Ubuntu inside Windows using VirtualBox. This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License. The screenshots in this tutorial use Ubuntu 12.04, but the same principles apply also to Ubuntu 12.10, 11.10, 10.04, and any future version of Ubuntu.

Actually, you can install pretty much any Linux distribution this way. Introduction VirtualBox allows you to run an entire operating system inside another operating system. Please be aware that you should have a minimum of 512 MB of RAM. 1 GB of RAM or more is recommended. Comparison to Dual-Boot Many websites (including the one you're reading) have tutorials on setting up dual-boots between Windows and Ubuntu. A dual-boot allows you, at boot time, to decide which operating system you want to use. Advantages of virtual installation The size of the installation doesn't have to be predetermined.

Follow these instructions to get a Ubuntu disk image (.iso file). You can call the machine whatever you want. Click Next. Click Next again. Ubuntu Linux: Install RT2870 Chipset Based USB Wireless Adapter. This blog post listed Linux Compatible USB wireless adapters. It seems that many new Linux users frequently have problems learning how to install RT2870 driver under Linux. I also received email requesting installation instructions for the same device. This quick tutorial will explains how to install RT2870 based chipset device with WPA2 authentication and TKIP wireless encryption. Our Sample Setup The following instructions are tested on: Ubuntu Linux 10.04.1 LTSKernel - Linux 2.6.32-24-generic-pae i686 (32 bit)WPA2 with Linksys 160N router RT2870 Chipset Based Devices Are Not Working Out Of Box The main problem is conflicting driver which are shipped with default kernel.

Step #1: Disable Default Drivers Type the following command to black list default drivers: $ sudo vi /etc/modprobe.d/blacklist.conf Append the following driver names: blacklist rt2800usb blacklist rt2x00lib blacklist rt2x00usb Save and close the file. Step 2: Install Compilers Step #3: Download Driver Untar Tarball. 4 Ways to Install a Game With Bin/cue Files Using Daemon Tools. Steps Method 1 of 4: Understand .bin and .cue files a Game With Bin/cue Files Using Daemon Tools Step 1 Version 2.360p.mp4- Watch a 10 second video1Learn how a BIN file is created. A .bin file is a binary file that can contain a wide variety of data. The most common form of a .bin file is a CD or DVD image.

Method 2 of 4: Install Daemon Tools Method 3 of 4: Mount the Image Method 4 of 4: Install the Game We could really use your help! Can you tell us aboutshot put? Shot put how to shot put Can you tell us aboutbirds? Birds. WiFi USB Dongle for Raspberry Pi. Wi-Pi is a high performance, cost effective WLAN USB module which connects the Raspberry Pi low cost computer, to a Wi-Fi local area network. Wi-Pi uses the latest 802.11n Wireless Technology, and can support data rates of up to 150 Mbps, compared with older 54 Mbps 11g products. It also benefits from a higher wireless LAN bandwidth, making data transmission more efficient. Wi-Pi also supports wireless roaming, ensuring a more consistent wireless connection to a wireless access point.

Wi-Pi uses the latest international w ireless CCA air channel detection technology, enhancing wireless performance. Currently WIPI can be used with multiple development platforms, such as Raspberry Pi SBC, RIoTboard SBC, Atmel SAMA5D3 Xplained development platform, Beaglebone Black SBC, SABRE Lite and Mars Boarddevelopment platfrom,. However, there are few things need to be done before you can get WIPI running on your host platform, please refer to individual user manual for WIPI installation instruction.

Usb wifi dongle. Enabling WiFi on an Intel® Galileo Board. Setting up Wi-Fi — Clay and Galileo. Now you can power on the Galileo. If you are NOT using N-135 or N-6205 WiFi card you will need to install the driver: First download the driver from the download site. Note: this is the driver for the N-6235 card, if you have different card, you will have to find the driver. Copy the tar file onto the SD card running LinuxHelp: booting from an SD cardPut the SD card into the Galileo and power it up and log in.Help: connecting to the Linux consoleUntar the driver files:root@clanton:~# tar xzvf /media/mmcblk0p1/iwlwifi-6000g2b-ucode-18.168.6.1.tgz iwlwifi-6000g2b-ucode-18.168.6.1/ iwlwifi-6000g2b-ucode-18.168.6.1/iwlwifi-6000g2b-6.ucode iwlwifi-6000g2b-ucode-18.168.6.1/README.iwlwifi-6000g2b-ucode iwlwifi-6000g2b-ucode-18.168.6.1/LICENSE.iwlwifi-6000g2b-ucode Copy the driver file to the firmware directory# cp iwlwifi-6000g2b-ucode-18.168.6.1/iwlwifi-6000g2b-6.ucode /lib/firmware Next you will need to set up to connect to your WiFi connection:

Portable USB Charger. Sample Java Code to Read Temperature from an TMP102 via I2C & Save Data to a MySQL Database Table. The Java code below reads current temperature data from the TMP102 temperature sensor using the i2cget command line utility to read the TMP102's registers. The reading is taken every second and the result is saved to a MySQL database table. The table contains a column for the date and time and a column for the temperature in degrees Fahrenheit. The code below should work with Java 6, 7, or 8. You will need to have the complete JDK installed to compile the code. Prerequisites The i2cget command line utility is part of the I2C Tools package. To install MySQL, use the following command and follow the prompts: apt-get install mysql-server The following command installs the Java database (JDBC) driver that allows your code to access the database: apt-get install java-mysqldb Database Structure CREATE TABLE tmp102 ( date_time datetime NOT NULL, temp_f double, PRIMARY KEY (date_time) Java Code Compiling & Running the Program.

Need help on Linux I2C driver. Gcc tutorial. Gcc is the "GNU" C Compiler, and g++ is the "GNU C++ compiler, while cc and CC are the Sun C and C++ compilers also available on Sun workstations. Below are several examples that show how to use g++ to compile C++ programs, although much of the information applies to C programs as well as compiling with the other compilers. Example 1: Compiling a simple program Consider the following example: Let "hello.C" be a file that contains the following C++ code. #include "iostream.h" int main() { cout << "Hello\n"; } The standard way to compile this program is with the command g++ hello.C -o hello This command compiles hello.C into an executable program named "hello" that you run by typing 'hello' at the command line.

Alternatively, the above program could be compiled using the following two commands. g++ -c hello.C g++ hello.o -o hello Frequently used compilation options Compile myprog.C so that myprog contains symbolic information that enables it to be debugged with the gdb debugger. How to mix C and C++, C++ FAQ. Www.cs.swarthmore.edu/~newhall/unixhelp/howto_C_libraries.html.

Tel.archives-ouvertes.fr/docs/00/80/85/80/PDF/TH2010_Hijazi_-_Alaa.pdf. Transport en Commun de Limoges. Trolleybus. Dumas.ccsd.cnrs.fr/docs/00/55/18/37/PDF/2010.TH16668.maherzi.nordine.pdf. Www.bulletin-online.ch/uploads/media/article_146649.pdf. Vétra. Hal.inria.fr/docs/00/65/62/11/PDF/THESE_P-KRECZANIK.pdf. Trolleybus UK.