- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
ArduinoTechnicalSession2.ppt-iSites.ppt
void setup(){ Serial.begin(9600); //Beginning Serial Connection //connect infrared LED to digital pin 13 pinMode(13,OUTPUT); } void loop(){ int in = analogRead(5); // Reading Sensed data from Arduino digitalWrite(13,HIGH); Serial.println(in);// Writing Sensed Data to Serial Port } 5V Analog 5 GND IR transmitter and Receiver-Photointruptor Digital 13 GND * * * * Resistors come in different amount of resistance. They are those parts with different color bands on them. You should of six of them in your package. Three pairs of different resistors. To identify the resistance of a resistor we use a code system: we position them so that the gold strip or band is on the right side and then we measure * * * * * Changing the arrangement of the sensors and actuators in the same responsive system in a way that the response of the actuator to the sensed data can affect the setting of the sensor in some way and as a result lead to a different read of the properties of the environment, will give us a feed back system as opposed to a responsive system * If you add a resistor between the ground and the potentiometer connected to the ground, you change the range of a resistor. The other way to change the range is connecting the potentiometer to 3v instead of 5v Changing the range of a Potentiometer using resistors Ground v5 or v3 Analog Pin 0 * Analog Input – Digital Output Photocell controlling Fan * Analog Input – Digital Output Photocell controlling Fan int avrage; void setup(){ Serial.begin(9600);//Begining Serial Connection pinMode(13,OUTPUT);//Servo White wire connection for (int i=0; i20; i++){ avrage=avrage+analogRead(5); } avrage=avrage/20; Serial.println(System Ready); Serial.println(avrage); } void loop(){ int in = analogRead(5); if(inavrage-10) digitalWrite(13,HIGH); else digitalWrite(13,LOW); Serial.println(in); } * Analog Input – Digital Output Photocell controlling Fan Changing the setting to a feedback system * Analog Input –
您可能关注的文档
- 1ZurVorbereitung.doc
- 1_3水的浮力.ppt
- 1原子核的磁性.doc
- 1水泥与现代混凝土2013-1-10.ppt-滨州市建筑业网,滨州市.ppt
- 2-中国石油大学(华东)物理与光电工程系.PDF
- 2.1φωτισμοσηραγγων.doc
- 2.2.光的量子性.doc.doc
- 2.2Fabricationandassemblingofpupilmirrors-CRAL.doc
- 2.BenefitsofOutdoorLighting-Unihedron.doc
- 2.Detailedhydrodynamicssimulations.doc
- 1 阳光工程引导性培训基础知识课件-高一《蔬菜生产技术》同步教学(北理工版).pptx
- 第5章 瓜类蔬菜种植与病虫害防治课件-高一《蔬菜生产技术》同步教学(北理工版).pptx
- 6 茄果类蔬菜种植课件-高一《蔬菜生产技术》同步教学(北理工版).pptx
- 项目五茄果类蔬菜生产任务三辣椒生产(一)(课件)-高二《蔬菜生产技术》同步教学(机械工业出版社).pptx
- 9.2人格形成的生物学因素(课件)《儿童发展心理学》(华东师范大学出版社).pptx
- 2.2 蔬菜栽培的理论基础知识 生长与发育(课件)- 高一《蔬菜生产技术(南方本)》同步教学(中国农业大学出版社).pptx
- 6.2句子发展(课件)《儿童发展心理学》(华东师范大学出版社).pptx
- 6.3语言获得理论(课件)《儿童发展心理学》(华东师范大学出版社).pptx
- 13.2儿童和青少年逆反(课件)《儿童发展心理学》(华东师范大学出版社).pptx
- 项目二设施的环境特点及调节控制(课件)-高二《蔬菜生产技术》同步教学(机械工业出版社).pptx
最近下载
- ENTERFACE2010ProjectProposal.doc VIP
- 居家养老服务承诺书-居家承诺书.docx VIP
- DB3205_T1078-2023_人才公寓运营管理与服务规范_苏州市 .docx VIP
- ProjectProposal项目建议书英文模板.docx VIP
- 新媒体写作与运营PPT完整全套教学课件.pptx VIP
- ProjectProposal项目建议书英文模板.pdf VIP
- 城镇燃气工程分部、分项工程划分[1].docx VIP
- 网络教学效果调查与数据分析.docx VIP
- 工程量清单及招标控制价编制服务采购服务质量承诺及保障措施.docx VIP
- 游戏攻略:哥伦布传.doc VIP
原创力文档


文档评论(0)