What is Arduino and what is it used for? What features does Arduino have?

28 January 2023 349 Reading time: 31 second

Arduino is an open-source electronics platform. It is designed to make the use of microcontrollers (such as AVR and ARM) and other electronic components easy to use. This platform can be used to work with sensors, actuators, displays, and various other hardware. As an example, to turn on and off an LED using an Arduino, the following code can be used:

    
int ledPin = 13;

void setup() {
  pinMode(ledPin, OUTPUT);
}

void loop() {
  digitalWrite(ledPin, HIGH);
  delay(1000);
  digitalWrite(ledPin, LOW);
  delay(1000);
}
    

This code defines pin 13 as an output and in the loop, it turns on the LED for 1 second, then turns it off for 1 second.

Similar articles