Code, Create and Innovate
A beginner's guide to Arduino
Hello Guys! Welcome to the world of Arduino.
If you are a beginner and want to learn Arduino from zero to Advance level then this article is important for you. Here will be a series about Arduino that leads you from zero to high level. Like a phrase " From Zero to Hero". Starting with what is Arduino?
" Arduino is an electronic platform that combines hardware and software."
Hardware includes Arduino board and circuit while software includes Arduino IDE.
There are many Arduino boards like
Arduino uno
Arduino mega
Arduino Promini etc.
But we will use Arduino uno because of its simplicity and flexibility.
There are 13 digital pins on Arduino uno. Digital pins use for digital signals like High or Low, 0 or 1 and ON or OFF.
Now Next part is Arduino IDE. Install it in your laptop or PC from Google. If you install 1.8.19 version it will use offline without need of internet. 2.0.0 version needs internet approach.
After installing it connect your laptop to Arduino via data cable.
Now it's time to setting up IDE
Consider a simple project of keeping LED high.
Make a circuit connect the positive leg of led with digital pin 13 and negative leg to ground.
Now Arduino IDE has two parts
void setup () Here we will write the code that will run only once, or we can say we will initialize here.
So now write the code
void setup() {
pinMode(13, OUTPUT);
}
void loop(){
digitalWrite( 13, HIGH);
}
Now we will upload code.
Happy green color on below Output panel if code is right and upload.
LED will turned on.
Our project is completed.
To turn Off the LED we will only change
digitalWrite (13, LOW);
and upload the code LeD will turn off.
Wow second project also done.
Please practice it.
Next day we will work on it more.
Best of Luck
_2.jpeg)


.jpeg)

Comments
Post a Comment