Coincell

Dina Chehab

3

Volts

A battery is a device that stores chemical energy and converts it to electrical energy. The chemical reactions in a battery involve the flow of electrons from one material (electrode) to another, through an external circuit. The flow of electrons provides an electric current that can be used to do work.

THE BATTERY

Fading an LED

Dyani Robarge

Blinking an LED

Dyani Robarge

Series of Lights

Dina Chehab

https://www.circuitbasics.com/how-to-control-leds-on-the-arduino/

int redLED = 13;

int greenLED = 2;


void setup() {

  pinMode(redLED, OUTPUT);

  pinMode(greenLED, OUTPUT);

}


void loop() {

  digitalWrite(redLED, HIGH);

  delay(1000);

     

  digitalWrite(redLED, LOW);   

  delay(1000); 

    

  digitalWrite(greenLED, HIGH); 

  delay(1000);

    

  digitalWrite(greenLED, LOW);   

  delay(1000);   

}