Embedded Systems (Eceg-5702) : Arduino Programming
Embedded Systems (Eceg-5702) : Arduino Programming
Arduino Programming
By Muluneh H
16/04/2018 1
Outline of the Lecture
Arduino
Arduino Code
• Blink LED
• Digital Read Serial
• Read Analog Voltage
• Interfacing DC motor
• Interfacing Steeper motor
• Interfacing GSM
• Interfacing GPS
• Interfacing LCD
Summary
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
digitalWrite()
digitalRead()
• Example
digitalWrite(13, LOW); // Makes the output voltage on pin 13 , 0V
• analogWrite(2,128);