Embeded Programing

  1. Learning the basic of computer

  2. Setting up Auduino

  3. code example

void setup() {
 Serial.begin(115200);
 Serial.println("Hello, world!");

}

void loop() {
 tone(40,400,600);
 delay(800);
 tone(46,400,600);
 delay(800);
 tone(46,440,600);
 delay(800);

 tone(40,400,600);
 delay(800);
 tone(46,400,600);
 delay(800);
 tone(46,440,600);
 delay(800);

 tone(40,400,600);
 delay(800);
 tone(46,400,600);
 delay(800);
 tone(46,440,600);
 delay(800);

}
  1. Connect buzzer to Arduino Board

Ground-negative, pin-positive

Board pinout:

  1. How to read the voltage on a bit

add LED to arduino: long leg-positive

connect resistor to LED

`electricity flow from high(positive) to low(negative)

  1. exercise: Turn on the programmable LED on Barduino (pin 48), ON for the "S"s, OFF for the "O"s

Last updated