How to use Arduino IDE Basic Guide with Example


So guys you want to learn Arduino IDE? let's learn how to use Arduino IDE. Do you Know, you can generate HEX file from Arduino IDE. and also you can upload program in ATMEGA categories IC's DIP as well as TQFP. using Arduino IDE. Let's learn use of Arduino IDE.

Download Arduino IDE

You can Download Arduino IDE for Windows from this Link: - Download Arduino IDE

You can Dowload ZIP File from above link. and also you can download Arduino IDE for LINUX or MAC OS X from arduino.cc.
After installation open your Arduino IDE and you can see this Page.


If you have your code then paste here, otherwise Arduino IDE have it's  own Examples. In this Page you can paste your copied code.

What you need 


  1. Arduino IDE
  2. Arduino Controller/Board
  3. USB B Cable

Upload or Compile

You can compile your code by pressing crtl + R otherwise go into Sketch > Compile.
compile/ verify is just for verifying your code without hardware.



 
And for uploading the code press ctrl + U otherwise go through sketch > upload. or go     with pictures.upload your code to your Arduino board bt selecting PORT.



If you are using USBasp programmer then you can upload program using sketch> upload using programmer. first select Programmer as a USBasp in Tools > Programmer > USBasp.
then upload your sketch.


You can select your Arduino board in Tools> board> Arduino Uno /Nano/Mega whatever you are using.
 


And select your USB port in Tools> port > COM 3. Please select your port.

If your code is handwritten ans so complicated code, then go with this auto format sketch.it           helps you to know your code in better way. try it once when your code is long.
 

Examples

If you are new with Arduino IDE then you can select any example of code in File > Example > Blink. Blink program is for blinking you LED continuously with some delay. You can easily find Blink program in Examples. 


Serial Monitor

For output go to Serial Monitor. and check your OUTPUT.
Serial Monitor
    
Remember one thing if you are using Serial Monitor then please select your BAUDRATE.

Here, you can go now with Arduino IDE.




Post a Comment

Post a Comment (0)

Previous Post Next Post