Arduino tutorial

<< Prev
Next >>

Introduction

Arduino is a company that designs and manufactures board microcontrollers.

Arduino board designs use a variety of microprocessors and controllers.
The boards are equipped with sets of digital and analog input/output (I/O) pins that may be interfaced to various expansion boards or Breadboards (shields) and other circuits.
Arduino Yun combines the ease of use of Arduino with the power of Linux.


Yun

Arduino Yun is a microcontroller board based on ATmega32u4 and the Atheros AR9331. The Atheros processor suports a Linux distribution based on OpenWrt named Linino OS.


Arduino Yun microcontroller:

- Microcontroller ATmega32u4
- Operating Voltage 5V
- Input Voltage 5V
- Digital I/O Pins 20
- PWM Output 7
- Analog I/O Pins 12
- DC Current per I/O Pin 40 mA on I/O Pins; 50 mA on 3,3 Pin
- Flash Memory 32 KB (4 KB bootloader)
- SRAM 2.5 KB
- EEPROM 1 KB
- Clock Speed 16 MHz


Arduino Yun microprocessor:

- Processor Atheros AR9331
- Architecture MIPS @400MHz
- Operating Voltage 3.3V
- Ethernet IEEE 802.3 10/100Mbit/s
- WiFi IEEE 802.11b/g/n
- USB Type-A 2.0 Host/Device
- Card Reader Micro-SD only
- RAM 64 MB DDR2
- Flash Memory 16 MB


Arduino Yun pins:

Yun

Arduino yun installation and configuration:

Visit the Arduino software page and click the link for the OpenWRT-Yun upgrade image.


Yun

Save the openwrt-xxx.bin file on your computer:


Yun

Copy the openwrt-xxx.bin file on the root of the microSD card. insert the microSD card on Arduino Yun module and power on.
Wait about 60 seconds for the Yun to boot up. When the Yun's ready to go, you'll see the white USB LED turn on.
The Arduino Yun will create its own WiFi hotspot. On your laptop, check the available WiFi Networks and click to connect to Arduino Yun WiFi.


Yun

Once you've connected to your Arduino's WiFi, open a browser and visit 192.168.240.1 (or arduino.local):


Yun

The initial password is "arduino".


Yun

From this configuration page, you can configure the Arduino Yun module, use File Manager or Terminal window, etc.


Yun

You can access Arduino Yun module using Linux command by Terminal. Open the Terminal and type: ifconfig


Term

You can also access Arduino Yun module using SSH connection. First of all, download and install the Putty software.


Putty

Select SSH option, type 192.168.240.1 on Host name, set port: 22 (SSH port) and click Open.


Putty

On the Terminal window type user: root and password: arduino. Next, type the ifconfig Linux command.


Putty

From this Terminal, you can list the files or diretories:


Putty

Or you can configure the web server uhttpd.
For open uhttpd configuration file with the nano editor, type:


nano /etc/config/uhttpd


Uhttpd

For werking with applications, you must install Arduino IDE. Visit the Arduino software page and click the link for the Arduino IDE download file.


IDE

Follow the installation instructions:


IDE

set the installation dir:


IDE

Now, run the Arduino program


App

Choose the Arduino board:


App

Write a sketch and save it.In our case: blinking LED.


App

Choose Sketch --> Verify/Compile and Sketch --> Upload for uploading the sketch on the Arduino Yun board.


App

Now, the LED connected on Pin 13 is blinking.


<< Prev
Next >>

Visit my websites:

https://www.jwebsaints.com
https://www.jwebplants.com