{"id":17166,"date":"2023-02-14T15:07:07","date_gmt":"2023-02-14T20:07:07","guid":{"rendered":"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/?p=17166"},"modified":"2023-02-15T08:54:24","modified_gmt":"2023-02-15T13:54:24","slug":"double-transducer-light-to-heat-to-linear-position","status":"publish","type":"post","link":"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/double-transducer-light-to-heat-to-linear-position\/","title":{"rendered":"Double Transducer : Light to Heat to Linear Position | The Sunshine Lovers"},"content":{"rendered":"<p>&nbsp;<\/p>\n<div id=\"attachment_17389\" style=\"width: 971px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-17389\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-17389 \" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0729-scaled-e1676423344431.jpg\" alt=\"board with Arduino and electronic components, featuring a turtle attached to a linear actuator.\" width=\"961\" height=\"721\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0729-scaled-e1676423344431.jpg 2560w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0729-scaled-e1676423344431-300x225.jpg 300w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0729-scaled-e1676423344431-1024x768.jpg 1024w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0729-scaled-e1676423344431-768x576.jpg 768w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0729-scaled-e1676423344431-1536x1152.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0729-scaled-e1676423344431-2048x1536.jpg 2048w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0729-scaled-e1676423344431-973x730.jpg 973w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0729-scaled-e1676423344431-508x381.jpg 508w\" sizes=\"(max-width: 961px) 100vw, 961px\" \/><p id=\"caption-attachment-17389\" class=\"wp-caption-text\">This is the final setup of Evie&#8217;s Sunshine machine<\/p><\/div>\n<p>&nbsp;<\/p>\n<div id=\"attachment_17421\" style=\"width: 992px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-17421\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-17421 size-full\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG_3897.jpg\" alt=\"\" width=\"982\" height=\"863\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG_3897.jpg 982w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG_3897-300x264.jpg 300w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG_3897-768x675.jpg 768w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG_3897-973x855.jpg 973w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG_3897-508x446.jpg 508w\" sizes=\"(max-width: 982px) 100vw, 982px\" \/><p id=\"caption-attachment-17421\" class=\"wp-caption-text\">Finalized setup of Dongtao&#8217;s sunshine machine (without Casey)<\/p><\/div>\n<p>&nbsp;<\/p>\n<h2><strong>Project Overview<\/strong><\/h2>\n<p>The &#8220;Sunshine Lovers&#8221; is a machine that transduces light input into a linear position through an intermediate step.<\/p>\n<div id=\"attachment_17400\" style=\"width: 1037px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-17400\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-17400 \" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0732-scaled-e1676424257418.jpg\" alt=\"\" width=\"1027\" height=\"770\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0732-scaled-e1676424257418.jpg 2560w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0732-scaled-e1676424257418-300x225.jpg 300w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0732-scaled-e1676424257418-1024x768.jpg 1024w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0732-scaled-e1676424257418-768x576.jpg 768w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0732-scaled-e1676424257418-1536x1152.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0732-scaled-e1676424257418-2048x1536.jpg 2048w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0732-scaled-e1676424257418-973x730.jpg 973w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0732-scaled-e1676424257418-508x381.jpg 508w\" sizes=\"(max-width: 1027px) 100vw, 1027px\" \/><p id=\"caption-attachment-17400\" class=\"wp-caption-text\">here you can see the thermistor taped to the incandescent bulb to read heat (evie).<\/p><\/div>\n<div id=\"attachment_17401\" style=\"width: 989px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-17401\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-17401 \" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0734-scaled-e1676424249633.jpg\" alt=\"\" width=\"979\" height=\"734\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0734-scaled-e1676424249633.jpg 2560w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0734-scaled-e1676424249633-300x225.jpg 300w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0734-scaled-e1676424249633-1024x768.jpg 1024w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0734-scaled-e1676424249633-768x576.jpg 768w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0734-scaled-e1676424249633-1536x1152.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0734-scaled-e1676424249633-2048x1536.jpg 2048w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0734-scaled-e1676424249633-973x730.jpg 973w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0734-scaled-e1676424249633-508x381.jpg 508w\" sizes=\"(max-width: 979px) 100vw, 979px\" \/><p id=\"caption-attachment-17401\" class=\"wp-caption-text\">Here you can see the photoresistor at the end of the board which is our main input. (evie)<\/p><\/div>\n<div id=\"attachment_17402\" style=\"width: 1026px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-17402\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-17402 \" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0733-scaled-e1676424238776.jpg\" alt=\"\" width=\"1016\" height=\"762\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0733-scaled-e1676424238776.jpg 2560w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0733-scaled-e1676424238776-300x225.jpg 300w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0733-scaled-e1676424238776-1024x768.jpg 1024w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0733-scaled-e1676424238776-768x576.jpg 768w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0733-scaled-e1676424238776-1536x1152.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0733-scaled-e1676424238776-2048x1536.jpg 2048w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0733-scaled-e1676424238776-973x730.jpg 973w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0733-scaled-e1676424238776-508x381.jpg 508w\" sizes=\"(max-width: 1016px) 100vw, 1016px\" \/><p id=\"caption-attachment-17402\" class=\"wp-caption-text\">This is Job the turtle who&#8217;s head it attached to a linear actuator.<\/p><\/div>\n<div style=\"width: 620px;\" class=\"wp-video\"><!--[if lt IE 9]><script>document.createElement('video');<\/script><![endif]-->\n<video class=\"wp-video-shortcode\" id=\"video-17166-1\" width=\"620\" height=\"349\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG_0750-1-1-1.mp4?_=1\" \/><a href=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG_0750-1-1-1.mp4\">https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG_0750-1-1-1.mp4<\/a><\/video><\/div>\n<p><strong>Working Demo 1<\/strong> &#8211; The Turtle Job<\/p>\n<div style=\"width: 620px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-17166-2\" width=\"620\" height=\"436\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/WeChat_20230215084108.mp4?_=2\" \/><a href=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/WeChat_20230215084108.mp4\">https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/WeChat_20230215084108.mp4<\/a><\/video><\/div>\n<p><strong>Working Demo 2<\/strong> &#8211; The Casey Bro<\/p>\n<h2><\/h2>\n<h2 id=\"process-images-and-review\">Process<\/h2>\n<p><strong>Narrative description<\/strong><\/p>\n<p><span style=\"font-weight: 400\">Our double Transducer takes in light and transforms it to a linear position. The photoresistor reads light and the value of light is transformed to a value of heat created by an incandescent bulb. A thermistor reads the heat on the incandescent bulb and then sends the value of heat to a linear actuator. In Evie\u2019s the linear actuator works as a turtle, named Job, who wakes up to the heat of the sun and then begins to swim downstream. In Dongtao\u2019s machine, Casey brings a happy face that moves to indicate joy. The linear actuator should resemble the amount of light from the beginning of the chain.<\/span><\/p>\n<ul>\n<li>\n<div id=\"attachment_17384\" style=\"width: 1180px\" class=\"wp-caption alignleft\"><img aria-describedby=\"caption-attachment-17384\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-17384 size-full\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0752-1.jpg\" alt=\"picture of LCD with data values \" width=\"1170\" height=\"1879\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0752-1.jpg 1170w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0752-1-187x300.jpg 187w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0752-1-638x1024.jpg 638w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0752-1-768x1233.jpg 768w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0752-1-956x1536.jpg 956w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0752-1-973x1563.jpg 973w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0752-1-508x816.jpg 508w\" sizes=\"(max-width: 1170px) 100vw, 1170px\" \/><p id=\"caption-attachment-17384\" class=\"wp-caption-text\">This is our first attempt at coding the LCD screen you can see how the data is coming out as a string with two spaces between. (evie)<\/p><\/div>\n<div id=\"attachment_17383\" style=\"width: 630px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-17383\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-17383 size-large\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0576-1-768x1024.jpg\" alt=\"picture of Arduino to breadboard wired up to a thermometer \" width=\"620\" height=\"827\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0576-1-768x1024.jpg 768w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0576-1-225x300.jpg 225w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0576-1-1152x1536.jpg 1152w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0576-1-1536x2048.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0576-1-973x1297.jpg 973w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0576-1-508x677.jpg 508w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG-0576-1-scaled.jpg 1920w\" sizes=\"(max-width: 620px) 100vw, 620px\" \/><p id=\"caption-attachment-17383\" class=\"wp-caption-text\">We tested a temperature detector to see if it was more or less accurate to a thermistor, we found that it was much less (evie)<\/p><\/div>\n<p>&nbsp;<\/li>\n<li>\n<div id=\"attachment_17413\" style=\"width: 630px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-17413\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-17413 size-large\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG_3872-scaled-e1676432116953-1024x922.jpg\" alt=\"\" width=\"620\" height=\"558\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG_3872-scaled-e1676432116953-1024x922.jpg 1024w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG_3872-scaled-e1676432116953-300x270.jpg 300w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG_3872-scaled-e1676432116953-768x691.jpg 768w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG_3872-scaled-e1676432116953-1536x1382.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG_3872-scaled-e1676432116953-973x876.jpg 973w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG_3872-scaled-e1676432116953-508x457.jpg 508w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG_3872-scaled-e1676432116953.jpg 1920w\" sizes=\"(max-width: 620px) 100vw, 620px\" \/><p id=\"caption-attachment-17413\" class=\"wp-caption-text\">Our specialized LCD screen has a back panel that effectively simplifies the connections needed to operate it with the Arduino. However, it is critical to clarify the differences between the 4pins and double-check their connections; sometimes it is hard to notice a connection mistake when it is behind the panel.<\/p><\/div>\n<p><div id=\"attachment_17412\" style=\"width: 629px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-17412\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-17412 \" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG_3869-scaled-e1676428498151.jpg\" alt=\"\" width=\"619\" height=\"393\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG_3869-scaled-e1676428498151.jpg 2060w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG_3869-scaled-e1676428498151-300x190.jpg 300w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG_3869-scaled-e1676428498151-1024x649.jpg 1024w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG_3869-scaled-e1676428498151-768x487.jpg 768w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG_3869-scaled-e1676428498151-1536x973.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG_3869-scaled-e1676428498151-2048x1297.jpg 2048w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG_3869-scaled-e1676428498151-973x616.jpg 973w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/IMG_3869-scaled-e1676428498151-508x322.jpg 508w\" sizes=\"(max-width: 619px) 100vw, 619px\" \/><p id=\"caption-attachment-17412\" class=\"wp-caption-text\">Sometimes it is helpful to have a larger-scale breadboard for managing complex cable connections. However, it needs to be noted that some of the larger breadboards are not connected across the centerline.<\/p><\/div><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2><strong>Discussion<\/strong><\/h2>\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li style=\"font-weight: 400\"><b>Highlight 1:<\/b><span style=\"font-weight: 400\"> Heating up the light bulb is relatively easy and quick, but cooling it down can be time-consuming &#8211; it would be a good idea to add an additional ventilation fan to the setup to help with it.<\/span><\/li>\n<li style=\"font-weight: 400\"><b>Highlight 2:<\/b><span style=\"font-weight: 400\"> Photoresistor output data in combination with artificial light input is highly dependent upon the ambient light condition, the results may vary depending on the location in the studio space; therefore, it is a good idea to preset a parameter \u2018ambient lighting baseline\u2019 every time the machine starts to run for the flashlight to work with.\u00a0<\/span><\/li>\n<li style=\"font-weight: 400\"><b>Highlight 3:<\/b><span style=\"font-weight: 400\"> It was fascinating to learn the difference that H-bridge can help drive high-voltage components without a physical \u2018switch\u2019 and works with analog input, whereas the relay only works with digital inputs.<\/span><\/li>\n<li style=\"font-weight: 400\"><b>Highlight 4:<\/b><span style=\"font-weight: 400\"> Always test run the machine on different power sources to ensure it is compatible across the board &#8211; especially need to test it with the power supply used for the presentation<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">For presentation purposes, it would be great to start thinking about designing a casing for future projects &#8211; therefore the interactive feature of the machine is easier to apprehend by the audience. The idea of casing shall be evaluated from the beginning of the <\/span><span style=\"font-weight: 400\">prototyping process for coordination of different parts within.<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2><strong>Functional block diagram and schematic<\/strong><\/h2>\n<p><a href=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/Final-Wiring-and-block-sketch-.drawio.svg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-17385\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/2023\/02\/Final-Wiring-and-block-sketch-.drawio.svg\" alt=\"\" width=\"903\" height=\"899\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/\/2023\/02\/Final-Wiring-and-block-sketch-.drawio.svg 150w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/\/2023\/02\/Final-Wiring-and-block-sketch-.drawio.svg 300w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-content\/uploads\/\/2023\/02\/Final-Wiring-and-block-sketch-.drawio.svg 1339w\" sizes=\"(max-width: 903px) 100vw, 903px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2><strong>Code submission<\/strong><\/h2>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"c\">\/\/Evie and Dongtoa \r\n  \/\/light value to linear position \r\n  \/\/intor to physical computing Winter 2023\r\n\r\n  \r\n#include &lt;LiquidCrystal_I2C_Hangul.h&gt;\r\n#include &lt;Wire.h&gt;\r\n\r\nLiquidCrystal_I2C_Hangul lcd(0x3F, 16, 2);\r\n\r\nint photoVal;\r\nint temP;\r\nint heaT;\r\nint linearP; \r\nint linearOUT;\r\nint previouseOUT;\r\n\r\nconst int PHOTO = A3;\r\nconst int THERM = A2;\r\nconst int HOTB = 6;\r\nconst int MOT_0 = 10;\r\nconst int MOT_1 = 11;\r\n\r\n\r\n\r\nvoid setup() {\r\n\r\n  Serial.begin(9600);\r\n\r\n\/\/inputs and outputs\r\n  pinMode(PHOTO, INPUT);\r\n  pinMode(THERM, INPUT);\r\n  pinMode(HOTB, OUTPUT);\r\n\r\n  pinMode(MOT_0, OUTPUT);\r\n  pinMode(MOT_1, OUTPUT);\r\n\r\n\/\/ moters are off\r\n  digitalWrite(MOT_0, HIGH);\r\n  digitalWrite(MOT_1, HIGH);\r\n\r\n\/\/LCD screen setup\r\n  lcd.begin(16, 2);\r\n  lcd.init();\r\n  lcd.backlight();\r\n\r\n  lcd.setCursor(0, 0);  \/\/goto first column (column 0) and first line (Line 0)\r\n  lcd.print(\"Light \");  \/\/Print at cursor Location\r\n  lcd.setCursor(0, 1);  \/\/goto first column (column 0) and second line (line 1)\r\n  lcd.print(\"Temp \");   \/\/Print at cursor location\r\n  lcd.setCursor(10, 0);\r\n  lcd.print(\"Pos\");\r\n\r\n  \/\/source for LCD screen :https:\/\/www.instructables.com\/Display-temperature-on-LCD\/\r\n\r\n}\r\n\r\nvoid loop() {\r\n\r\n  \/\/Input values:\r\n  photoVal = map(analogRead(PHOTO), 0, 1023, 0, 100);\r\n\r\n  temP = map(analogRead(THERM), 0, 1023, 0, 100);\r\n\r\n  \/\/Out put values:\r\n  linearOUT = (map(temP, 50, 100, 0, 3000));\r\n\r\n  heaT = map(photoVal, 30, 100, 0, 200);\r\n\r\n  \/\/to show on the screen\r\n  linearP = map(linearOUT, 0, 3000, 0, 100);\r\n\r\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/set the screen:\r\n\r\n  lcd.setCursor(6, 0);  \/\/move the cursor to position 6 on row 1\r\n  lcd.print(photoVal);\r\n  delay(300);\r\n\r\n  lcd.setCursor(6, 1);\r\n  lcd.print(temP);\r\n  delay(300);\r\n\r\n  lcd.setCursor(14, 0);\r\n  lcd.print(linearP);\r\n  delay(300);\r\n\r\n\r\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ heat bulb:\r\n\r\n  if (photoVal &gt; 30) {\r\n    analogWrite(HOTB, heaT);\r\n    \/\/ 30 is about anbient light, this way the lightbulb wont be on\r\n    \/\/ unless there is a light next to it, giving it time to cool down\r\n  }\r\n  if (photoVal &lt; 30) {\r\n    analogWrite(HOTB, 0);\r\n  }\r\n\r\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ linear actuator based on time\r\n  \/\/takes 3000milsecs to reach the the end. 0 is 0% heat and 3000 is 100% heat\r\n\r\n  \/\/if the temperature rises, the linear position increases \r\n  if (linearOUT &gt; previouseOUT &amp;&amp; temP &gt; 50) {\r\n    digitalWrite(MOT_0, LOW);\r\n    digitalWrite(MOT_1, HIGH);\r\n    \/\/ how long it goes out:\r\n    delay(linearOUT - previouseOUT);\r\n\r\n    digitalWrite(MOT_0, HIGH);\r\n    digitalWrite(MOT_1, HIGH);\r\n    \/\/how long it stops:\r\n    delay(300);\r\n  }\r\n\r\n  \/\/if the temperature decreases the linear position decreases \r\n  if (linearOUT &lt; previouseOUT &amp;&amp; temP &gt; 50) {\r\n    digitalWrite(MOT_0, HIGH);\r\n    digitalWrite(MOT_1, LOW);\r\n    \/\/how long it goes in:\r\n    delay(previouseOUT - linearOUT);\r\n\r\n    digitalWrite(MOT_0, HIGH);\r\n    digitalWrite(MOT_1, HIGH);\r\n    \/\/how long it stops:\r\n    delay(300);\r\n  }\r\n\r\n  previouseOUT = linearOUT;\r\n  Serial.println(previouseOUT);\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; &nbsp; &nbsp; Project Overview The &#8220;Sunshine Lovers&#8221; is a machine that transduces light input into a linear position through an intermediate step. Working Demo 1 &#8211; The&#8230;<\/p>\n","protected":false},"author":39,"featured_media":17389,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[86],"tags":[],"_links":{"self":[{"href":"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-json\/wp\/v2\/posts\/17166"}],"collection":[{"href":"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-json\/wp\/v2\/users\/39"}],"replies":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-json\/wp\/v2\/comments?post=17166"}],"version-history":[{"count":30,"href":"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-json\/wp\/v2\/posts\/17166\/revisions"}],"predecessor-version":[{"id":17518,"href":"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-json\/wp\/v2\/posts\/17166\/revisions\/17518"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-json\/wp\/v2\/media\/17389"}],"wp:attachment":[{"href":"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-json\/wp\/v2\/media?parent=17166"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-json\/wp\/v2\/categories?post=17166"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/60-223\/s2023\/work\/wp-json\/wp\/v2\/tags?post=17166"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}