Well done for the work you made on day one tutorial
In day two we will go deep into the basic principles behind arduino
And attempt some of the very basic experiment built on it.
You can download the lecture through the link provided below:
You are welcome to view the homework through the link lised at the button
Solutions are listed seperated as arduino files.
Reading list for day two class
Please read the materials carefully and try to understand them:
https://zh.wikipedia.org/wiki/Arduino
http://www.i-element.org/breadboard/
https://www.arduino.cc/en/Tutorial/toneMelody
https://www.arduino.cc/reference/en/language/functions/advanced-io/tone/
https://www.instructables.com/id/Translate-Songs-to-Be-Played-on-Arduino/
Below I will post some of the frequent mistakes you have made in the seminar.
//MISTAKE ONE ***Notice the capital letter ***注意区分大小写字母 pinMode(LED,OUTPUT) //正确 pinMode(LED,output) //错误 pinmode(LED,OUTPUT) //错误
//MISTAKE TWO ***Forget about the {} for loop ***在for循环后要加入一对中括号限定其作用范围 void loop() { for (int i=0; i<5; i++) { digitalWrite(Sensor, HIGH); } //此中括号为for循环所修饰 } //此中括号为loop循环所修饰