Lecture 1 - Arduino Basics
Lecture 1 - Arduino Basics
• 1x Breadboard
• 1x LED
• 1x RGB LED
• 1x Buzzer
• 3x 100R Resistors
• 1x USB Cable
• 1x Arduino
BY SEBASTIAN GOSCIK FOR EARS
WHAT IS AN ARDUINO?
Features
• 14 Digital I/O pins
• 6 Analogue inputs
• 6 PWM pins
• USB serial
• 16MHz Clock speed
• 32KB Flash memory
• 2KB SRAM
• 1KB EEPROM
Arduino shields will often come with their own libraries and
therefore their own examples.
}
void loop()
{
// put your main code here, to run repeatedly:
void setup()
{
//Arduinos have an on-board LED on pin 13
onBoardLED = 13;
pinMode(onBoardLED, OUTPUT);
}
void loop()
{
digitalWrite(onBoardLED, HIGH);
delay(500); //delay measured in milliseconds
digitalWrite(onBoardLED, LOW);
delay(500);
}
BY SEBASTIAN GOSCIK FOR EARS
BREADBOARD
while(digitalRead(10) == LOW)
{
//Such loop, many iteration, WOW!, much condition met
}