Posts

Showing posts from November, 2017

Writing your first Arduino Program

Blinking an LED   Arduino has on-board LED at PIN13, which can be used for testing purpose. The program for blinking an LED for 1 second, can be written with the following methods. void  setup() {       pinMode (13,   OUTPUT );        //Set the PIN 13 as output. } void  loop  () {      digitalWrite (13,  HIGH );              //Set PIN 13 High.      delay (1000);                             //Wait for 1 sec.      digitalWrite (13,  LOW );                //Set PIN 13 Low.      delay (1000);                             //Wait for 1 sec. } You can give a name to ...

Getting Started With Arduino

Image
The Arduino Developing Board   Detailed PINOUT Diagram   The Arduino IDE Parts of the IDE (From left to right, top to bottom) ·   Compile  -  Before your program “code” can be sent to the board, it needs to be   converted into instructions that the board understands. This process is called   compiling . ·   Create New Sketch  -  This opens a new window to create a new sketch. ·   Open Existing Sketch  -  This loads a sketch from a file on your computer. ·   Save Sketch  -  This saves the changes to the sketch you are working on. ·   Upload to Board  -  This compiles and then transmits over the USB cable to your   board. · Serial Monitor  –  We can simulate and monitor serial communication with the help of Serial Monitor. ·   Sketch Editor  -  This is where you write or edit sketches. ·   Text Consol...