Learn ARDUINO(in 20 Mins)

4,692

138

3

About: I do robotics and automation projects.* denke anders!(think different!)

This is an instructable that i wrote specially to share my knowledge about arduino in a very simplified way.I will definitely assure you that this would be a power packed module that covers almost every basic topics in arduino.

Arduino has a huge potential that can do lot more than you imagine,using this is also really simple.

I don't wish to tell more in the intro session and waste your precious time let's directly jump into the content.

Step 1: Contents

  1. A brief intro about arduino.
  2. types of arduino.
  3. arduino structure.
  4. your first "project".
  5. PWM-pulse width modulation.
  6. Serial communicaion.
  7. Includes exercises

Step 2: What's Arduino?

A simple definition of arduino that what i know is "it is an electronic tool that is capable of performing simple automation and interfacing different devices together by simpler connections and simplest codings.

This is the right platform for those who would like to perform their career in automation or robotics field.An arduino is a simple tool that enables us to communicate with the a micro-controller that is embedded on any arduino board.(AT mega328 in arduino UNO).refer pic for further understanding.

IMAGINE

  • you want to convey an information to a french speaking person but you know only english.
  • in this case you will definitely need a translator to accomplish the communication.
  • thus the translator will be knowing both french and english.

connect with the current situation!

  1. French is High level language(user friendly e.g. C,C++...).
  2. English is Machine language.
  3. arduino is the translator. i hope you might have understood better!!!

Step 3: What Is Microcontroller?

Micro-controller is a simplified computer,that has a very small amount of memory,RAM,...

it is very compact and cheap instrument that is easily available.The micro controller used in arduino UNO is ATmega 328 it contains an EEPROM it can be programmed repeatedly by erasing the previous code.

Step 4: Types of Arduino

The picture lists out the different types of arduino boards that are most popularly used.

Arduino UNO

This type of board is the popular and best suitable for beginners! it contains a series of female pins in it thus by using a male pin we can simply make the connection without any soldering or the use of breadboard.

Arduino nano

This is very similar to the UNO board except the size of the board is minimized thus it deserves it's name.it contains a series of soldered male pins this can be connected to the breadboard and used directly without any soldering.this is comparatively cheap when compared to the UNO.

Arduino LILY pad

This is used for wearable electronics.

Step 5: Arduino Structure

1.USB plug-this provision is used to upload your coding and it can also be used as a power input to the arduino.

2.Digital pins (2-13) are used for input and output operations.

3.Analog pins(0-5) are used for input and output operations in analog form.

5.the red button is used to reset the board i.e.the code execution starts from the begining.

6.The serial pins RX,TX are used for serial communication.

7.it also has an DC input socket.

Step 6: SETUP

1.Install the arduino IDE software.(free software)

2.plug in your arduino board and select the correct port and variety.

note:for me the port number is com23 yours may vary.

Refer images!

Step 7: Your First Project-LED Blink

In this project you are going to make an led to blink.

one second ON state,one second OFF state.

Hardware

make the connection as shown in the figure.

Software

upload the coding shown in the image.

As soon as the coding is uploaded the led starts blinking.

note:

void setup() -section executes only once.

void loop()-executes repeatedly till the power remains on.

Step 8: PWM -pulse Width Modulation.

-This is used to make the led glow in stages of varying brightness.

-making it dim and then making it brighter!

-the analog pin supports 8 bit data only (0-255).

-we are going to use analog write instead of digital write to establish PWM .

-the code will be analogWrite(led pin,value)

PWM: 3, 5, 6, 9, 10, and 11 pins Provide 8-bit PWM output with the analogWrite()

led pin- digital pin in which you have connected the led.

value - the value ranges from (0-255) a lower value makes the led glow dim,high value makes the led glow brighter.

EXERCISE:

try to make the led brighter step by step by using for loop for reference refer link!

Step 9: Serial Communication

Serial is used for communication between the Arduino board and a computer or other devices. All Arduino boards have at least one serial port (also known as a UART or USART): Serial. It communicates on digital pins 0 (RX) and 1 (TX) as well as with the computer via USB. Thus, if you use these functions, you cannot also use pins 0 and 1 for digital input or output.

it helps to know the readings of the sensors connected to it

They also help in connecting wireless modules such as bluetooth,wifi Esp8266....

It has lot more to do with it.............................!

Step 10: Applied Serial Communication

In this session we will be getting the output value from an LDR -light dependent resistor and displaying it in the serial monitor.

refer the images for hardware connections and coding!

now interrupt the sensor value by disturbing light falling on the sensor and see the changes in the values!

EXERCISE:

your task is to make an LED glow based on the output of the LDR i.e. the LED should glow brighter in dark condition and it should glow dim in a bright situation.

clue: use PWM and Serial communication.

it is the basic for automation!

To be continued.......

This is just an intro module i will be writing more about this and those modules will be released soon,keep track of me if you like it!

few upcoming topics:

  • Servo motor control.
  • ultrasonics module.
  • IR sensor.
  • motor driver L293D.
  • bluetooth communication
  • and lot more......................... hope you like it...................................!!!! "share knowledge!" "FOLLOW ME FOR MORE INFORMATION"

Share

    Recommendations

    • PCB Contest

      PCB Contest
    • Make it Glow Contest 2018

      Make it Glow Contest 2018
    • Big and Small Contest

      Big and Small Contest

    3 Discussions

    0
    None
    madrasi

    1 year ago

    This is great. I have been trying to figure out how to learn everything I can about these. There is so much information out there but no one ever explained any of it to where I could understand it. I most definitely want to learn everything you are willing to give. I don't know how to go about this but I want to know somehow when you put out a new video.
    Would you mind if I ask you questions as we go when I start my first project? I am closing on my first house next month and I want to do a lot of things to it just because I can.
    Great video and I will be waiting for the next one's.
    Have a great one.

    1 reply
    0
    None
    einzigartig arunmadrasi

    Reply 1 year ago

    thank you for all your comments and i am working on my next instructable i will definitely let you know when i have posted it !!!

    0
    None
    WillA2

    1 year ago

    Please let me know when you have updated and released more "classes"