Documente Academic
Documente Profesional
Documente Cultură
Microprocessor lab#13
LAB #13
Objective:
To study and understand how to use
Arduino board by both implementing and
programming.
Theory:
Arduino:
Arduino is an open-source electronics platform based on easy-to-use hardware and
software. Arduino boards are able to read inputs - light on a sensor, a finger on a
button, or a Twitter message - and turn it into an output - activating a motor, turning
on an LED, publishing something online.
In fact, you already are; the Arduino language is merely a set of C/C++ functions
that can be called from your code. Your sketch undergoes minor changes (e.g.
automatic generation of function prototypes) and then is passed directly to a C/C++
compiler (avr-g++).
Those 10 lines of code are all you need to blink the on-board LED on your
Arduino.
How to download/install Arduino:
Open google browser
Type extratorrent.cc
Now open the site of www.extratorrent .cc
Now go to search box and type Arduino IDE
Now click on search
Now download the ide file from given link
Drivers will be automatically install from this site
Then open it and install
Steps to upload the program:
First of all, open the ide software
Now write the required program on given space
After the program is complete verify the program to debug errors
After that connect the Arduino board
Go to tool then go to board option and choose the desired board you are
using
Now again go to tool and go to port and select port that your board is
connected to
Now click on the upload button
And it’s ready to connect to the circuit
Example # 01
Potentiometer serial monitor and plotter
Components:
Arduino Uno
10K Potentiometer
Wires
How to connect:
Program:
void setup () {
Serial.begin(9600);
void loop () {
Serial.println(sensor Value);
delay (1000);
Conclusion:
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------