[ Basics ] Arduino Practice - Turning On LED Using Light Sensor (CDS)

주피터 · 2019-10-28 · 13
```json {"time":1717347208261,"blocks":[{"id":"6_yxInojdg","type":"paragraph","data":{"text":"LED Activation Using Light Sensor (CDS)"}},{"id":"gLgL9SIOxq","type":"paragraph","data":{"text":"① CDS Component Description"}},{"id":"LsZDMD4WLL","type":"paragraph","data":{"text":"CDS is a sensor whose resistance value changes according to light intensity."}},{"id":"SY4iZcOcGP","type":"simpleImage","data":{"url":"http://192.168.10.9:3000/img_e4dsmake/ck/D28I0FJMVL5SMTB1RXLN.png","caption":"","withBorder":false,"withBackground":false,"stretched":false}},{"id":"B9nR67h0Os","type":"paragraph","data":{"text":"The change in resistance value according to brightness is shown in the figure below. Note that the y-axis (resistance value) uses a logarithmic scale."}},{"id":"xC71Z4msfq","type":"simpleImage","data":{"url":"http://192.168.10.9:3000/img_e4dsmake/ck/ENGXL54P8NGG0M5WA251.gif","caption":"","withBorder":false,"withBackground":false,"stretched":false}},{"id":"1NZbTrgGTo","type":"paragraph","data":{"text":"② Hardware Configuration"}},{"id":"ix3ucmp6qU","type":"paragraph","data":{"text":"Configure the hardware as shown in the figure below."}},{"id":"6ueq1_erDe","type":"simpleImage","data":{"url":"http://192.168.10.9:3000/img_e4dsmake/ck/DQDQGQRK6B4HP7700T1X.png","caption":"","withBorder":false,"withBackground":false,"stretched":false}},{"id":"3NiCDal-qV","type":"paragraph","data":{"text":" ⓞ The figure below shows the logic circuit configuration."}},{"id":"BCBlINEXiZ","type":"simpleImage","data":{"url":"http://192.168.10.9:3000/img_e4dsmake/ck/Y238UX78AKLBILLCL5SE.png","caption":"","withBorder":false,"withBackground":false,"stretched":false}},{"id":"YxU14q1PYc","type":"paragraph","data":{"text":"③ Arduino Programming"}},{"id":"Bgs8L3IHdc","type":"paragraph","data":{"text":"Implement the program logic."}},{"id":"Z5JkLNxrWU","type":"simpleImage","data":{"url":"http://192.168.10.9:3000/img_e4dsmake/ck/ABNQ28BQ6M9V2HJVXECS.jpg","caption":"","withBorder":false,"withBackground":false,"stretched":false}},{"id":"Eeo8KrTMqO","type":"paragraph","data":{"text":"④ Physical Photos"}},{"id":"ogZ_JBARHs","type":"paragraph","data":{"text":"The figure below is an actual photograph of the system operating in real-time integration. Assemble the board as shown below and verify the results."}},{"id":"h9E7a9sYyj","type":"simpleImage","data":{"url":"http://192.168.10.9:3000/img_e4dsmake/ck/CJQF6CPI2EKW6I42JZBU.jpg","caption":"","withBorder":false,"withBackground":false,"stretched":false}},{"id":"oAgiA-ToMK","type":"code","data":{"code":"int val = 0;\n\nvoid setup()\n{\n pinMode(3,OUTPUT);\n pinMode(5,OUTPUT);\n}\n\nvoid loop()\n{\n val = analogRead(0);\n analogWrite(3, val/4);\n analogWrite(5, (1023 - val)/4);\n delay(10);\n}"}}],"version":"2.30.5"} ```
13
0 comments
No comments yet.