{"id":13982,"date":"2021-10-04T23:40:14","date_gmt":"2021-10-05T03:40:14","guid":{"rendered":"https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/?p=13982"},"modified":"2021-10-04T23:40:14","modified_gmt":"2021-10-05T03:40:14","slug":"double-transducer-light-brightness-to-rotational-speed","status":"publish","type":"post","link":"https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/double-transducer-light-brightness-to-rotational-speed\/","title":{"rendered":"Double Transducer: Light Brightness to Rotational Speed"},"content":{"rendered":"<p><strong>Images &amp; Videos<\/strong><\/p>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-13989 size-full\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2204-2-scaled.jpg\" alt=\"\" width=\"2560\" height=\"2560\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2204-2-scaled.jpg 2560w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2204-2-300x300.jpg 300w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2204-2-1024x1024.jpg 1024w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2204-2-150x150.jpg 150w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2204-2-768x768.jpg 768w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2204-2-1536x1536.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2204-2-2048x2048.jpg 2048w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2204-2-88x88.jpg 88w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2204-2-973x973.jpg 973w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2204-2-508x508.jpg 508w\" sizes=\"(max-width: 2560px) 100vw, 2560px\" \/><\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-14055\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0004-1-scaled.jpg\" alt=\"\" width=\"2560\" height=\"1444\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0004-1-scaled.jpg 2560w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0004-1-300x169.jpg 300w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0004-1-1024x578.jpg 1024w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0004-1-768x433.jpg 768w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0004-1-1536x867.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0004-1-2048x1155.jpg 2048w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0004-1-973x549.jpg 973w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0004-1-508x287.jpg 508w\" sizes=\"(max-width: 2560px) 100vw, 2560px\" \/><\/p>\n<div id=\"attachment_13996\" style=\"width: 2570px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-13996\" loading=\"lazy\" class=\"wp-image-13996 size-full\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2164-scaled.jpg\" alt=\"\" width=\"2560\" height=\"2560\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2164-scaled.jpg 2560w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2164-300x300.jpg 300w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2164-1024x1024.jpg 1024w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2164-150x150.jpg 150w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2164-768x768.jpg 768w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2164-1536x1536.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2164-2048x2048.jpg 2048w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2164-88x88.jpg 88w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2164-973x973.jpg 973w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2164-508x508.jpg 508w\" sizes=\"(max-width: 2560px) 100vw, 2560px\" \/><p id=\"caption-attachment-13996\" class=\"wp-caption-text\">Close-up image of the three-axis accelerometer attached to the servo motor.<\/p><\/div>\n<div id=\"attachment_14058\" style=\"width: 1454px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-14058\" loading=\"lazy\" class=\"size-full wp-image-14058\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0002-scaled.jpg\" alt=\"\" width=\"1444\" height=\"2560\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0002-scaled.jpg 1444w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0002-169x300.jpg 169w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0002-578x1024.jpg 578w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0002-768x1361.jpg 768w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0002-867x1536.jpg 867w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0002-1155x2048.jpg 1155w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0002-973x1725.jpg 973w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0002-508x900.jpg 508w\" sizes=\"(max-width: 1444px) 100vw, 1444px\" \/><p id=\"caption-attachment-14058\" class=\"wp-caption-text\">Close-up image of photoresistor and voltage divider circuit.<\/p><\/div>\n<div id=\"attachment_14054\" style=\"width: 1454px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-14054\" loading=\"lazy\" class=\"size-full wp-image-14054\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0003-scaled.jpg\" alt=\"\" width=\"1444\" height=\"2560\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0003-scaled.jpg 1444w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0003-169x300.jpg 169w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0003-578x1024.jpg 578w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0003-768x1361.jpg 768w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0003-867x1536.jpg 867w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0003-1155x2048.jpg 1155w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0003-973x1725.jpg 973w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0003-508x900.jpg 508w\" sizes=\"(max-width: 1444px) 100vw, 1444px\" \/><p id=\"caption-attachment-14054\" class=\"wp-caption-text\">Close-up image of power rail.<\/p><\/div>\n<div id=\"attachment_13993\" style=\"width: 2570px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-13993\" loading=\"lazy\" class=\"wp-image-13993 size-full\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2165-scaled.jpg\" alt=\"\" width=\"2560\" height=\"2560\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2165-scaled.jpg 2560w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2165-300x300.jpg 300w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2165-1024x1024.jpg 1024w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2165-150x150.jpg 150w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2165-768x768.jpg 768w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2165-1536x1536.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2165-2048x2048.jpg 2048w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2165-88x88.jpg 88w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2165-973x973.jpg 973w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2165-508x508.jpg 508w\" sizes=\"(max-width: 2560px) 100vw, 2560px\" \/><p id=\"caption-attachment-13993\" class=\"wp-caption-text\">Close-up image of our output, a continuous servo motor that rotates continuously with the speed of around 20 &#8211; 60 rpm.<\/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-13982-1\" width=\"620\" height=\"349\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/Double-Transducer.mp4?_=1\" \/><a href=\"https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/Double-Transducer.mp4\">https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/Double-Transducer.mp4<\/a><\/video><\/div>\n<div style=\"width: 620px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-13982-2\" width=\"620\" height=\"349\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/video.mp4?_=2\" \/><a href=\"https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/video.mp4\">https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/video.mp4<\/a><\/video><\/div>\n<p><b>Description<\/b><\/p>\n<p><span style=\"font-weight: 400\">The photoresistor reads light brightness and sends the information to the servo motor which rotates in both directions. The motor turns based on the brightness of light and tilts the three-axis accelerometer that is attached to the servo motor. The accelerometer measures the acceleration in the axes X, Y, and Z and sends information to the continuous motor that rotates continuously in one direction. Based on the tilt of the three-axis accelerometer, the speed of the continuous servo motor changes.\u00a0<\/span><\/p>\n<p><b>Progress Images<\/b><\/p>\n<div id=\"attachment_13998\" style=\"width: 2152px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-13998\" loading=\"lazy\" class=\"wp-image-13998 size-full\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2104.jpg\" alt=\"\" width=\"2142\" height=\"2142\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2104.jpg 2142w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2104-300x300.jpg 300w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2104-1024x1024.jpg 1024w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2104-150x150.jpg 150w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2104-768x768.jpg 768w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2104-1536x1536.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2104-2048x2048.jpg 2048w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2104-88x88.jpg 88w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2104-973x973.jpg 973w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2104-508x508.jpg 508w\" sizes=\"(max-width: 2142px) 100vw, 2142px\" \/><p id=\"caption-attachment-13998\" class=\"wp-caption-text\">I made this wooden holder to keep the accelerometer in place. We determined that the long stick part of the holder was unnecessary so we decided to cut that part off.<\/p><\/div>\n<div id=\"attachment_14060\" style=\"width: 1454px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-14060\" loading=\"lazy\" class=\"size-full wp-image-14060\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0001_1-1-scaled.jpg\" alt=\"\" width=\"1444\" height=\"2560\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0001_1-1-scaled.jpg 1444w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0001_1-1-169x300.jpg 169w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0001_1-1-578x1024.jpg 578w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0001_1-1-768x1361.jpg 768w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0001_1-1-867x1536.jpg 867w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0001_1-1-1155x2048.jpg 1155w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0001_1-1-973x1725.jpg 973w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0001_1-1-508x900.jpg 508w\" sizes=\"(max-width: 1444px) 100vw, 1444px\" \/><p id=\"caption-attachment-14060\" class=\"wp-caption-text\">The first attempt at making something that would hold the accelerometer was a pipe cleaner.<\/p><\/div>\n<div id=\"attachment_14057\" style=\"width: 2570px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-14057\" loading=\"lazy\" class=\"size-full wp-image-14057\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0002_3-scaled.jpg\" alt=\"\" width=\"2560\" height=\"1444\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0002_3-scaled.jpg 2560w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0002_3-300x169.jpg 300w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0002_3-1024x578.jpg 1024w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0002_3-768x433.jpg 768w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0002_3-1536x867.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0002_3-2048x1155.jpg 2048w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0002_3-973x549.jpg 973w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/DSC_0002_3-508x287.jpg 508w\" sizes=\"(max-width: 2560px) 100vw, 2560px\" \/><p id=\"caption-attachment-14057\" class=\"wp-caption-text\">We also tried using a bit of styrofoam to hold the accelerometer.<\/p><\/div>\n<p>&nbsp;<\/p>\n<div id=\"attachment_14004\" style=\"width: 1737px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-14004\" loading=\"lazy\" class=\"wp-image-14004 size-full\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2113.jpg\" alt=\"\" width=\"1727\" height=\"1727\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2113.jpg 1727w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2113-300x300.jpg 300w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2113-1024x1024.jpg 1024w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2113-150x150.jpg 150w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2113-768x768.jpg 768w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2113-1536x1536.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2113-88x88.jpg 88w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2113-973x973.jpg 973w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/IMG_2113-508x508.jpg 508w\" sizes=\"(max-width: 1727px) 100vw, 1727px\" \/><p id=\"caption-attachment-14004\" class=\"wp-caption-text\">I soldered wires to connect the three-axis accelerometer to the protoboard. I used solid wires at first however it was too stiff causing the movement of the accelerometer to be inflexible as shown above in the image. I later soldered them again using stranded wires.<\/p><\/div>\n<p>&nbsp;<\/p>\n<p><b>Discussion<\/b><\/p>\n<p><span style=\"font-weight: 400\">Through this project we learned a lot especially from the challenges we faced and the process of problem solving. One of the challenges we faced was reading the changes in tilt of the three-axis accelerometer. We were reading the acceleration values of all three axes, X, Y, and Z, through the serial monitor as we were tilting the accelerometer, however the changes of the values were so subtle it was difficult to tell which axis we were dealing with. We took the norm of all three values to get one total accelerometer reading using this equation: finalReading = sqrt(X^2 + Y^2 + Z^2). This reading has much more variance than each individual sensor reading.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Another challenge that I faced had to do with soldering. I decided to solder wires connecting the accelerometer to the protoboard and I used solid wires which are pretty stiff making the movement of the accelerometer inflexible. I had to solder them again, but this time I used stranded wires, which are a lot more flexible, easing the movement of the accelerometer.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Through this project, we also learned about a type of motor that we used as our output. Our original plan was to use a stepper motor to produce a continuous rotation however we struggled to figure that out because it required a transistor. However, we came up with an alternative solution. We were introduced to a different type of motor that we could use as our output instead of the stepper motor, which is a continuous servo motor. Unlike a hobby servo motor which rotates only up to 180 degrees, the continuous servo motor rotates 360 degrees continuously, allowing us to produce our output of a continuous rotation of around 20 to 60 rpm. Learning about this new part allowed us to create our output effectively and efficiently.\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>Functional Block Diagram\u00a0<\/b><\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-14059\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/Screen-Shot-2021-10-04-at-8.28.39-PM.png\" alt=\"\" width=\"944\" height=\"346\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/Screen-Shot-2021-10-04-at-8.28.39-PM.png 944w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/Screen-Shot-2021-10-04-at-8.28.39-PM-300x110.png 300w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/Screen-Shot-2021-10-04-at-8.28.39-PM-768x281.png 768w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/Screen-Shot-2021-10-04-at-8.28.39-PM-508x186.png 508w\" sizes=\"(max-width: 944px) 100vw, 944px\" \/><\/p>\n<p><b>Schematic<\/b><\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-14042\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/Screen-Shot-2021-10-04-at-8.25.16-PM.png\" alt=\"\" width=\"587\" height=\"532\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/Screen-Shot-2021-10-04-at-8.25.16-PM.png 587w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/Screen-Shot-2021-10-04-at-8.25.16-PM-300x272.png 300w, https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-content\/uploads\/2021\/10\/Screen-Shot-2021-10-04-at-8.25.16-PM-508x460.png 508w\" sizes=\"(max-width: 587px) 100vw, 587px\" \/><\/p>\n<p><b>Code<\/b><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"c\">\/*\r\n * Double Transducer: Light Brightness to Rotational Speed\r\n * \r\n * Team: Ronald Gonzalez and Sohye Park\r\n * \r\n * Description:\r\n *   The code reads the light input from the photoresistor\r\n *   going to pin A0 and then sends the signal generated\r\n *   to the half rotation servo on pin 3 which will rotate\r\n *   an accelerometer which sends all 3 of it's signals to\r\n *   pins A1-3 then the norm of those 3 values is taken and \r\n *   that is sent to the full rotation servo whose speed\r\n *   will change based on the signal sent.\r\n * \r\n *     Arduino Pin | Description\r\n *     ------------|---------------------\r\n *     A0          | PhotoResistor       \r\n *     A1          | Accelerometer x       \r\n *     A2          | Accelerometer y       \r\n *     A3          | Accelerometer z       \r\n *     3           | Half Rotation Servo     \r\n *     5           | Full Rotation Servo\r\n *   \r\n * Code for Servo from Michael Margolls\r\n * Code for LED screen from Frank de Brabander\r\n *\/\r\n\r\n\/\/ Libraries\r\n#include &lt;Servo.h&gt;\r\n#include &lt;Wire.h&gt;\r\n#include &lt;LiquidCrystal_I2C.h&gt;\r\n\r\n\/\/ Pins\r\n#define PHOTORES A0\r\n#define ACCELX A1\r\n#define ACCELY A2\r\n#define ACCELZ A3\r\n#define HALFROTSERVO 3\r\n#define FULLROTSERVO 5\r\n\r\n\/\/ Servos and Screen\r\nServo gaugeMotor1;\r\nServo gaugeMotor2;\r\nLiquidCrystal_I2C screen(0x27, 16, 2);\r\n\r\n\/\/ Timer\r\nunsigned long lastPrint = 0;\r\n\r\nvoid setup() {\r\n \r\n  \/\/ Pin setup\r\n  pinMode(PHOTORES, INPUT);\r\n  pinMode(ACCELX, INPUT);\r\n  pinMode(ACCELY, INPUT);\r\n  pinMode(ACCELZ, INPUT);\r\n\r\n  \/\/ Motor setup\r\n  gaugeMotor1.attach(HALFROTSERVO);\r\n  gaugeMotor2.attach(FULLROTSERVO);\r\n\r\n  \/\/ Screen setup\r\n  screen.init();\r\n  screen.backlight();\r\n  screen.home();\r\n}\r\n\r\nvoid loop() {\r\n\r\n  \/\/ Analog reads from photoresistor and accelerometer\r\n  int light = analogRead(A0);\r\n  long accelx = analogRead(A1);\r\n  long accely = analogRead(A2);\r\n  long accelz = analogRead(A3);\r\n  \r\n  \/\/ Taking the norm of all three accelerometer outputs\r\n  long accelFinal = long(sqrt(((accelx * accelx) + (accely * accely) + (accelz * accelz))));\r\n  \r\n  \/\/ Mapping all values to appropriate ranges\r\n  int angle = map(light, 50, 1050, 10, 180);\r\n  int rpm = map(accelFinal, 500, 630, 93, 105);\r\n  int sLight = map(light, 50, 1050, 0, 99);\r\n  int sAngle = map(angle, 10, 180, 0, 99);\r\n  int sRPM = map(rpm, 93, 105, 0, 99);\r\n  int sAccel = map(accelFinal, 500, 620, 0, 99);\r\n  \r\n  \/\/ Sending correct angle and rpm to the two servo motors\r\n  gaugeMotor1.write(angle);\r\n  gaugeMotor2.write(rpm);\r\n\r\n  \/\/ Delay so both motors aren't being updated at extremely \r\n  \/\/ fast rates\r\n  delay(50);\r\n\r\n  \/\/Updates screen every 250 milliseconds\r\n  if (millis() - lastPrint &gt;= 250) {\r\n    screen.clear();\r\n    screen.setCursor(0, 0);\r\n    screen.print(\"i:\");\r\n    screen.setCursor(6, 0);\r\n    screen.print(\"m:\");\r\n    screen.setCursor(12, 1);\r\n    screen.print(\"o:\");\r\n    screen.setCursor(2, 0);\r\n    \r\n    if (sLight &lt; 10){\r\n      screen.print(\"0\");\r\n    }\r\n    screen.print(sLight);\r\n    screen.setCursor(8, 0);\r\n    if (sAngle &lt; 10){\r\n      screen.print(\"0\");\r\n    }\r\n    screen.print(sAngle);\r\n    screen.setCursor(8, 1);\r\n    if (sAccel &lt; 10){\r\n      screen.print(\"0\");\r\n    }\r\n    screen.print(sAccel);\r\n    screen.setCursor(14, 1);\r\n    if (sRPM &lt; 10){\r\n      screen.print(\"0\");\r\n    }\r\n    screen.print(sRPM);\r\n    lastPrint = millis();\r\n  }\r\n}<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Images &amp; Videos Description The photoresistor reads light brightness and sends the information to the servo motor which rotates in both directions. The motor turns based on the&#8230;<\/p>\n","protected":false},"author":201,"featured_media":13989,"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\/f2021\/work\/wp-json\/wp\/v2\/posts\/13982"}],"collection":[{"href":"https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-json\/wp\/v2\/users\/201"}],"replies":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-json\/wp\/v2\/comments?post=13982"}],"version-history":[{"count":8,"href":"https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-json\/wp\/v2\/posts\/13982\/revisions"}],"predecessor-version":[{"id":14069,"href":"https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-json\/wp\/v2\/posts\/13982\/revisions\/14069"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-json\/wp\/v2\/media\/13989"}],"wp:attachment":[{"href":"https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-json\/wp\/v2\/media?parent=13982"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-json\/wp\/v2\/categories?post=13982"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/60-223\/f2021\/work\/wp-json\/wp\/v2\/tags?post=13982"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}