Introduction: Learn ARDUINO(in 20 Mins)
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
- A brief intro about arduino.
- types of arduino.
- arduino structure.
- your first "project".
- PWM-pulse width modulation.
- Serial communicaion.
- 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.
- 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!
- French is High level language(user friendly e.g. C,C++...).
- English is Machine language.
- 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.
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.
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.
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.
make the connection as shown in the figure.
upload the coding shown in the image.
As soon as the coding is uploaded the led starts blinking.
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.
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!
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"
We have a be nice policy.
Please be positive and constructive.