Arduino简单交互尝试

618
-1

Published on

Published in: Health & Medicine, Business
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
618
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
12
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Arduino简单交互尝试

  1. 1. Arduino の 感知世界 shenyuebo@gmail.com 沈月波 huaanduknow@163.com 孟鲁桦
  2. 2. LED灯 热敏电阻 蜂鸣器 光敏电阻 滚珠开关 电阻
  3. 3. THERMISTOR正温度系数热敏电阻:随着温度升高电阻值增大负温度系数热敏电阻:随着温度升高电阻值减小
  4. 4. int temp;void setup(){ Serial.begin(9600);}void loop(){ temp=analogRead(0); Serial.println(temp); delay(1000);}
  5. 5. BUZZER直流电压供电不同的电压发出声音的音高不同
  6. 6. void setup(){};void loop(){ tone(8,2000,15); delay(1000);}tone(pin, frequency)tone(pin, frequency, duration)
  7. 7. LDR LIGHT SENSOR随着光照强度越大电阻值越小
  8. 8. int light;void setup(){ Serial.begin(9600);};void loop(){ light=analogRead(0); Serial.println(light); delay(1000);}
  9. 9. BALL SWITH倒向某边的时候开关导通
  10. 10. 技术+设计=
  11. 11. EXEMPLE
  12. 12. int light;void setup(){ Serial.begin(9600);}void loop(){ light=analogRead(0); Serial.println(light); if(light<20){ if(light<=5) tone(8,500,8); else if(5<light<=10) tone(8,1000,8); else if(10<light<=15) tone(8,1500,8); else if(15<light<=20) tone(8,2000,8); }}
  13. 13. 利用这些砖块,你可以搭建出怎样的建筑呢?
  14. 14. THANKS!
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×