Our prices are exclusive of taxes and shipping. 18% GST shall be added during check out. Happy Shopping! :)  

Robocraze Welcome to Robocraze

An Introduction to Arduino

Arduino is an open-source electronics prototyping platform based on flexible, easy-to-use hardware and software.

An Introduction to Arduino

An Arduino is a single board microcontroller designed to make the process of using electronics multidisciplinary projects more accessible. It can sense the environment by receiving input from a variety of sensors and affect its surroundings by controlling lights, motors, and other actuators.

 

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 (shields) and other circuits. The boards feature serial communications interfaces, including Universal Serial Bus (USB) on some models, which are also used for loading programs from personal computers. The microcontrollers are typically programmed using a dialect of features from the programming languages C and C++.

 

At its core, it consists of an AtMega328P microcontroller.

 

Advantages:

  • Open Source

  • Simplified & user-friendly programming language

  • No additional programmer/burner hardware required for a programming board

  • Portable

  • Low power consumption



INSTALLATION OF ARDUINO IDE

  1. Download the Arduino IDE from the following  link (https://www.Arduino.cc/en/Main/Software)

 

  1. Install the Arduino IDE

arduino_control.png

 

  1. When prompted to install drivers, say yes for all the drivers.

 

  1. Next, you need to find the COM port of your Arduino:-

  • Open Device Manager

  • Click on Ports

  • Note down the Arduino’s COM port number

https://lh3.googleusercontent.com/nbbvQbxrhIVRvIZTBwp10WooWRpUTPf0HhvQ0zlehQBnwxCk_geYco3JIDHYr0MJMJyQv5J5upKI7dy_snJWoLvAkUpqFRk_t_8Lc9hcnpvUNggmw8ZlHICtuh2BbqA9Qqgab0tRcLY

 

  1. Open the Arduino IDE

 

  1. Select your board from the list, and the correct serial COM Port.

 

  1. Upload your program to the Arduino board.


 

BLINK LED

The first program every programmer learns consists in writing enough code to make their code show the sentence "Hello World!" on a screen. The blinking LED is the "Hello World!" of physical computing.

An LED is a small light (it stands for "light emitting diode") that works with relatively little power. The Arduino board has one built-in on digital pin 13. In this experiment, we will blink the internal LED at digital pin 13.

Note: If you are using an external LED, connect the LED with care. LEDs have polarity, which means they will only light up if you orient the legs properly. The long leg is typically positive and should connect to a digital pin on the Arduino board. The short leg goes to GND; the bulb of the LED will also typically have a flat edge on this side. In order to protect the LED, you will also need to use a resistor "in series" with the LED.

 

Program:

void setup()

{

 pinMode (13, OUTPUT);

}

 

void loop()

{

 digitalWrite (13, HIGH);   

 delay (1000);              

 digitalWrite (13, LOW);    

 delay (1000);              

}

 

Every Arduino Sketch (program) must compulsorily have two main function – Setup and Loop. The Setup function runs once whenever the Arduino is powered on or reset. The Loop function repeats itself continuously until the Arduino is powered off.

The pinMode (PINNUMBER, DATADIRECTION) function is used to configure any pin on the Arduino as either an input pin or an output pin. It takes two parameters, the first one being the pin number, and the second being the required state (INPUT/OUTPUT) of the pin. For this experiment, we are selecting pin number 13 because the onboard LED on the Arduino is connected to this pin and we have connected the external LED on the Arduino board to this pin. Since the LED is an actuator or an output device, we will configure pin number 13 as an output pin.

Once a pin has been configured as an output pin, we can make it either HIGH or LOW, using the digitalWrite (PINNUMBER, PINSTATE) function which again takes two parameters, the first one being the pin number, and the second one being the state of the pin. HIGH states means this pin will output a voltage of 5V on that particular pin and LOW will make this pin 0V.

The delay (DELAYTIME) function pauses the Arduino sketch for an interval given in milliseconds.

Buy your and accessories Arduino here 

 

Write Your Comment

Only registered users can write comments. Please, log in or register