Hands On Arduino
Hands On Arduino
Arduino UNO
Arduino UNO Pin Diagram
Sensor Module used IN Arduino
Arduino Software
Inbuild LED Blinking Using
Arduino
Apparatus Required
1. Arduino UNO
2. Connecting Wire
Code:
*/
// the setup function runs once when you press reset or power the board
void setup() {
// initialize built in LED as an output.
pinMode(LED_BUILTIN, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
External LED Blinking Using
Arduino
Apparatus Required
SL. No Name of Apparatus Range Type Quantity
1. Arduino UNO
2. Bread Board
3. LED
4. Connecting Wire
Circuit Diagram
Code:
*/
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin 13 as an output.
pinMode(10, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(10, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(10, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second