{"id":11777,"date":"2021-11-12T13:22:46","date_gmt":"2021-11-12T18:22:46","guid":{"rendered":"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/?p=11777"},"modified":"2021-11-12T13:23:49","modified_gmt":"2021-11-12T18:23:49","slug":"the-jackpot-of-life-flow-leah-walko","status":"publish","type":"post","link":"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/the-jackpot-of-life-flow-leah-walko\/","title":{"rendered":"The Jackpot of Life | Flow | Leah Walko"},"content":{"rendered":"<h3>Final Project Pictures and Video<\/h3>\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-11777-1\" width=\"620\" height=\"1102\" loop=\"1\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_180445034.mp4?_=1\" \/><a href=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_180445034.mp4\">https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_180445034.mp4<\/a><\/video><\/div>\n<div id=\"attachment_11828\" style=\"width: 2570px\" class=\"wp-caption aligncenter\"><img aria-describedby=\"caption-attachment-11828\" loading=\"lazy\" class=\"size-full wp-image-11828\" src=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_175642388-scaled.jpg\" alt=\"\" width=\"2560\" height=\"1920\" srcset=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_175642388-scaled.jpg 2560w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_175642388-300x225.jpg 300w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_175642388-1024x768.jpg 1024w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_175642388-768x576.jpg 768w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_175642388-1536x1152.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_175642388-2048x1536.jpg 2048w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_175642388-973x730.jpg 973w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_175642388-508x381.jpg 508w\" sizes=\"(max-width: 2560px) 100vw, 2560px\" \/><p id=\"caption-attachment-11828\" class=\"wp-caption-text\">Side image of the slot machine<\/p><\/div>\n<div id=\"attachment_11829\" style=\"width: 2570px\" class=\"wp-caption aligncenter\"><img aria-describedby=\"caption-attachment-11829\" loading=\"lazy\" class=\"size-full wp-image-11829\" src=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_175635320-scaled.jpg\" alt=\"\" width=\"2560\" height=\"1920\" srcset=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_175635320-scaled.jpg 2560w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_175635320-300x225.jpg 300w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_175635320-1024x768.jpg 1024w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_175635320-768x576.jpg 768w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_175635320-1536x1152.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_175635320-2048x1536.jpg 2048w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_175635320-973x730.jpg 973w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_175635320-508x381.jpg 508w\" sizes=\"(max-width: 2560px) 100vw, 2560px\" \/><p id=\"caption-attachment-11829\" class=\"wp-caption-text\">Front image of the slot machine<\/p><\/div>\n<div id=\"attachment_11831\" style=\"width: 2570px\" class=\"wp-caption aligncenter\"><img aria-describedby=\"caption-attachment-11831\" loading=\"lazy\" class=\"size-full wp-image-11831\" src=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_175654522-scaled.jpg\" alt=\"\" width=\"2560\" height=\"1920\" srcset=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_175654522-scaled.jpg 2560w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_175654522-300x225.jpg 300w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_175654522-1024x768.jpg 1024w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_175654522-768x576.jpg 768w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_175654522-1536x1152.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_175654522-2048x1536.jpg 2048w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_175654522-973x730.jpg 973w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_175654522-508x381.jpg 508w\" sizes=\"(max-width: 2560px) 100vw, 2560px\" \/><p id=\"caption-attachment-11831\" class=\"wp-caption-text\">Back of it<\/p><\/div>\n<div id=\"attachment_11832\" style=\"width: 1930px\" class=\"wp-caption aligncenter\"><img aria-describedby=\"caption-attachment-11832\" loading=\"lazy\" class=\"size-full wp-image-11832\" src=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_180234157.MP_-scaled.jpg\" alt=\"\" width=\"1920\" height=\"2560\" srcset=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_180234157.MP_-scaled.jpg 1920w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_180234157.MP_-225x300.jpg 225w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_180234157.MP_-768x1024.jpg 768w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_180234157.MP_-1152x1536.jpg 1152w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_180234157.MP_-1536x2048.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_180234157.MP_-973x1297.jpg 973w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_180234157.MP_-508x677.jpg 508w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><p id=\"caption-attachment-11832\" class=\"wp-caption-text\">Holding down the button to spin the wheel<\/p><\/div>\n<div id=\"attachment_11833\" style=\"width: 1930px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-11833\" loading=\"lazy\" class=\"size-full wp-image-11833\" src=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_180242075.MP_-scaled.jpg\" alt=\"\" width=\"1920\" height=\"2560\" srcset=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_180242075.MP_-scaled.jpg 1920w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_180242075.MP_-225x300.jpg 225w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_180242075.MP_-768x1024.jpg 768w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_180242075.MP_-1152x1536.jpg 1152w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_180242075.MP_-1536x2048.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_180242075.MP_-973x1297.jpg 973w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_180242075.MP_-508x677.jpg 508w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><p id=\"caption-attachment-11833\" class=\"wp-caption-text\">The wheel landing on it&#8217;s final position<\/p><\/div>\n<div id=\"attachment_11835\" style=\"width: 1930px\" class=\"wp-caption aligncenter\"><img aria-describedby=\"caption-attachment-11835\" loading=\"lazy\" class=\"size-full wp-image-11835\" src=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_182107393-scaled.jpg\" alt=\"\" width=\"1920\" height=\"2560\" srcset=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_182107393-scaled.jpg 1920w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_182107393-225x300.jpg 225w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_182107393-768x1024.jpg 768w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_182107393-1152x1536.jpg 1152w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_182107393-1536x2048.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_182107393-973x1297.jpg 973w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_182107393-508x677.jpg 508w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><p id=\"caption-attachment-11835\" class=\"wp-caption-text\">Waving the magnet around to change where the wheel lands<\/p><\/div>\n<div id=\"attachment_11834\" style=\"width: 2570px\" class=\"wp-caption aligncenter\"><img aria-describedby=\"caption-attachment-11834\" loading=\"lazy\" class=\"size-full wp-image-11834\" src=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_180149907-scaled.jpg\" alt=\"\" width=\"2560\" height=\"1920\" srcset=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_180149907-scaled.jpg 2560w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_180149907-300x225.jpg 300w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_180149907-1024x768.jpg 1024w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_180149907-768x576.jpg 768w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_180149907-1536x1152.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_180149907-2048x1536.jpg 2048w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_180149907-973x730.jpg 973w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211112_180149907-508x381.jpg 508w\" sizes=\"(max-width: 2560px) 100vw, 2560px\" \/><p id=\"caption-attachment-11834\" class=\"wp-caption-text\">Computer output based off of the received input values<\/p><\/div>\n<h3>Narrative Description<\/h3>\n<p>The Jackpot of Life is a slot machine, but the user can rig it in their favor. A disproportionate amount of one&#8217;s life is determined by the circumstances of their birth, which is the idea behind my project. Each wheel correlates to some aspect of a person&#8217;s life, their family&#8217;s financial situation, where they are born, and their education level. The user presses a button and the wheel spins to land on some result. As I mentioned, though, it can be rigged. While holding down the button, one can \u201csend their prayers,\u201d which translates to waving a magnet in front of a sensor that measures magnetic fields. Based off of the value read from the magnet, the wheel spins to a specific position.<\/p>\n<h3>Progress Images<\/h3>\n<div id=\"attachment_11782\" style=\"width: 1930px\" class=\"wp-caption aligncenter\"><img aria-describedby=\"caption-attachment-11782\" loading=\"lazy\" class=\"size-full wp-image-11782\" src=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211101_161543223-scaled.jpg\" alt=\"\" width=\"1920\" height=\"2560\" srcset=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211101_161543223-scaled.jpg 1920w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211101_161543223-225x300.jpg 225w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211101_161543223-768x1024.jpg 768w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211101_161543223-1152x1536.jpg 1152w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211101_161543223-1536x2048.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211101_161543223-973x1297.jpg 973w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211101_161543223-508x677.jpg 508w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><p id=\"caption-attachment-11782\" class=\"wp-caption-text\">Wired and programmed the wheel to spin<\/p><\/div>\n<div id=\"attachment_11784\" style=\"width: 1930px\" class=\"wp-caption aligncenter\"><img aria-describedby=\"caption-attachment-11784\" loading=\"lazy\" class=\"size-full wp-image-11784\" src=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211101_174240379-scaled.jpg\" alt=\"\" width=\"1920\" height=\"2560\" srcset=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211101_174240379-scaled.jpg 1920w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211101_174240379-225x300.jpg 225w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211101_174240379-768x1024.jpg 768w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211101_174240379-1152x1536.jpg 1152w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211101_174240379-1536x2048.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211101_174240379-973x1297.jpg 973w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211101_174240379-508x677.jpg 508w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><p id=\"caption-attachment-11784\" class=\"wp-caption-text\">First prototype. Looks good.<\/p><\/div>\n<div id=\"attachment_11783\" style=\"width: 1930px\" class=\"wp-caption aligncenter\"><img aria-describedby=\"caption-attachment-11783\" loading=\"lazy\" class=\"wp-image-11783 size-full\" src=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211108_004335454-scaled.jpg\" alt=\"\" width=\"1920\" height=\"2560\" srcset=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211108_004335454-scaled.jpg 1920w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211108_004335454-225x300.jpg 225w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211108_004335454-768x1024.jpg 768w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211108_004335454-1152x1536.jpg 1152w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211108_004335454-1536x2048.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211108_004335454-973x1297.jpg 973w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211108_004335454-508x677.jpg 508w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><p id=\"caption-attachment-11783\" class=\"wp-caption-text\">The day before my project is due, I drop my wheel and it breaks<\/p><\/div>\n<div id=\"attachment_11792\" style=\"width: 1930px\" class=\"wp-caption aligncenter\"><img aria-describedby=\"caption-attachment-11792\" loading=\"lazy\" class=\"size-full wp-image-11792\" src=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211108_114145840-scaled.jpg\" alt=\"\" width=\"1920\" height=\"2560\" srcset=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211108_114145840-scaled.jpg 1920w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211108_114145840-225x300.jpg 225w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211108_114145840-768x1024.jpg 768w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211108_114145840-1152x1536.jpg 1152w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211108_114145840-1536x2048.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211108_114145840-973x1297.jpg 973w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211108_114145840-508x677.jpg 508w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><p id=\"caption-attachment-11792\" class=\"wp-caption-text\">My desperate quick fix solution to set up the three wheels<\/p><\/div>\n<div id=\"attachment_11785\" style=\"width: 1930px\" class=\"wp-caption aligncenter\"><img aria-describedby=\"caption-attachment-11785\" loading=\"lazy\" class=\"size-full wp-image-11785\" src=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211108_113037168-scaled.jpg\" alt=\"\" width=\"1920\" height=\"2560\" srcset=\"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211108_113037168-scaled.jpg 1920w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211108_113037168-225x300.jpg 225w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211108_113037168-768x1024.jpg 768w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211108_113037168-1152x1536.jpg 1152w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211108_113037168-1536x2048.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211108_113037168-973x1297.jpg 973w, https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-content\/uploads\/2021\/11\/PXL_20211108_113037168-508x677.jpg 508w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><p id=\"caption-attachment-11785\" class=\"wp-caption-text\">It works&#8230; to an extent.<\/p><\/div>\n<h3>Process Reflection<\/h3>\n<p>I had a lot of problems during this project. I failed to account for a lot of the physical mechanics and innerworkings of the stands that hold up the wheels. To make matters worse, one of my wheels shattered into pieces. I had to use whatever I had to make things work. As a result, it isn&#8217;t stable at all and I had to use many unconventional materials to slap things together. The result is that it is kind of a mess. To make matters worse, it would randomly stop working at random intervals and I had to take time to fix it. I definitely didn&#8217;t give myself enough time to account for these problems.<\/p>\n<p>In the end, I didn&#8217;t have the time to implement a lot of elements to the project that I was looking forward to. I didn&#8217;t have time to program and wire a receipt printer to print out the user&#8217;s results. I also didn&#8217;t have the time to make it visually appealing. I almost wish I didn&#8217;t print out any signage at all because it would have looked slightly less slapped together and more intentional if I hadn&#8217;t.<\/p>\n<p>In the critique, many points were also brought up that I failed to consider early on in the project. I could&#8217;ve given more consideration to the relationship between the input and output and the connection to the overarching idea. My ultimate takeaway is that I should&#8217;ve done more detailed consideration and planning early on in the project to know how I would build the stands and box in general. I also should have put more work into the project early on to account for unexpected problems. I believe that I would not have struggled nearly as much if I had built a prototype stand for the prototype.<\/p>\n<h3>Code Submission<\/h3>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"c\">\/*\r\n * \r\n * The Jackpot of Life\r\n * by Leah Walko\r\n * \r\n * Pin 11 -&gt; left button\r\n * Pin 12 -&gt; middle button\r\n * Pin 13 -&gt; right button\r\n * Pin 2 -&gt; left stepper step\r\n * Pin 3 -&gt; left stepper direction\r\n * Pin 4 -&gt; middle stepper step\r\n * Pin 5 -&gt; middle stepper direction\r\n * Pin 6 -&gt; right stepper step\r\n * Pin 7 -&gt; right stepper direction\r\n * \r\n * read a xyz magnetic value (\"Prayers\") and turn it into \r\n * three Stepper value\r\n * \r\n * Sources:\r\n * QMC5883LCompass.h Library XYZ Example Sketch\r\n * Learn more at [https:\/\/github.com\/mprograms\/QMC5883Compas]\r\n * AccelStepper.h library example\r\n *\r\n *\/\r\n\r\n \/\/ Pos: 10, 30, 50, 70, 90, 110, 130, 150, 170, 190\r\n\r\n#include &lt;QMC5883LCompass.h&gt;\r\n#include &lt;AccelStepper.h&gt;\r\n\r\nconst int LEFTBUTTONPIN = 11;\r\nconst int MIDBUTTONPIN = 12;\r\nconst int RIGHTBUTTONPIN = 13;\r\nconst int LEFTSTEPPIN = 2;\r\nconst int LEFTDIRPIN = 3;\r\nconst int MIDSTEPPIN = 4;\r\nconst int MIDDIRPIN = 5;\r\nconst int RIGHTSTEPPIN = 6;\r\nconst int RIGHTDIRPIN = 7;\r\n\r\nAccelStepper myMotorLeft(1, LEFTSTEPPIN, LEFTDIRPIN);\r\nAccelStepper myMotorMid(1, MIDSTEPPIN, MIDDIRPIN);\r\nAccelStepper myMotorRight(1, RIGHTSTEPPIN, RIGHTDIRPIN);\r\nQMC5883LCompass compass;\r\n\r\nint posX = 0;\r\nint posY = 0;\r\nint posZ = 0;\r\nint spin = 3000;\r\n\r\nint x, y, z;\r\nboolean leftIsSpinning = false;\r\nboolean leftGetResults = false;\r\n\r\nboolean midIsSpinning = false;\r\nboolean midGetResults = false;\r\n\r\nboolean rightIsSpinning = false;\r\nboolean rightGetResults = false;\r\n\r\nunsigned long timer = 0;\r\nconst int INTERVAL = 1000;\r\n\r\nvoid setup() {\r\n  \/\/ put your setup code here, to run once:\r\n  Serial.begin(9600);\r\n  compass.init();\r\n\r\n  pinMode(LEFTBUTTONPIN, INPUT);\r\n  pinMode(MIDBUTTONPIN, INPUT);\r\n  pinMode(RIGHTBUTTONPIN, INPUT);\r\n\r\n  myMotorLeft.setMaxSpeed(1000); \r\n  myMotorLeft.setAcceleration(500);\r\n\r\n  myMotorLeft.setSpeed(1000);\r\n\r\n  myMotorMid.setMaxSpeed(1000);\r\n  myMotorMid.setAcceleration(500);\r\n\r\n  myMotorMid.setSpeed(1000);\r\n\r\n  myMotorRight.setMaxSpeed(1000);\r\n  myMotorRight.setAcceleration(500);\r\n\r\n  myMotorRight.setSpeed(1000);\r\n}\r\n\r\nvoid loop() {\r\n  \/\/ put your main code here, to run repeatedly:\r\n\r\n  if(digitalRead(LEFTBUTTONPIN) == !HIGH) {\r\n    leftIsSpinning = true;\r\n  } else {\r\n    leftIsSpinning = false;\r\n  }\r\n\r\n  if(digitalRead(MIDBUTTONPIN) == !HIGH) {\r\n    midIsSpinning = true;\r\n  } else {\r\n    midIsSpinning = false;\r\n  }\r\n\r\n  if(digitalRead(RIGHTBUTTONPIN) == !HIGH) {\r\n    rightIsSpinning = true;\r\n  } else {\r\n    rightIsSpinning = false;\r\n  }\r\n  \r\n  if(leftIsSpinning) {\r\n    compass.read();\r\n    x = compass.getX();\r\n    myMotorLeft.runSpeed();\r\n    leftGetResults = true;\r\n  }\r\n\r\n  if(midIsSpinning) {\r\n    compass.read();\r\n    y = compass.getY();\r\n    myMotorMid.runSpeed();\r\n    midGetResults = true;\r\n  }\r\n\r\n  if(rightIsSpinning) {\r\n    compass.read();\r\n    z = compass.getZ();\r\n    myMotorRight.runSpeed();\r\n    rightGetResults = true;\r\n  }\r\n\r\n  if(leftGetResults &amp;&amp; !leftIsSpinning) {\r\n    if(x &lt; -3000) {\r\n      x = -3000;\r\n    } else if (x &gt; 3000) {\r\n      x = 3000;\r\n    }\r\n    posX = map(x, -3000, 3000, 1, 10);\r\n    posX = 20*posX - 10;\r\n\r\n    Serial.print(\"current x compass: \");\r\n    Serial.println(x);\r\n    Serial.print(\"move to Position: \");\r\n    Serial.println(posX);\r\n    \r\n    myMotorLeft.moveTo(posX);\r\n\r\n    leftGetResults = false;\r\n  }\r\n\r\n  if(midGetResults &amp;&amp; !midIsSpinning) {\r\n    y = (y+x)\/2;\r\n    if(y &lt; -3000) {\r\n      y = -3000;\r\n    } else if (y &gt; 3000) {\r\n      y = 3000;\r\n    }\r\n    posY = map(y, -3000, 3000, 1, 10);\r\n    posY = 20*posY - 10;\r\n\r\n    Serial.print(\"current y compass: \");\r\n    Serial.println(y);\r\n    Serial.print(\"move to Position: \");\r\n    Serial.println(posY);\r\n    \r\n    myMotorMid.moveTo(posY);\r\n\r\n    midGetResults = false;\r\n  }\r\n\r\n  if(rightGetResults &amp;&amp; !rightIsSpinning) {\r\n    y = (Z+y+x)\/3;\r\n    if(z &lt; -3000) {\r\n      z = -3000;\r\n    } else if (z &gt; 3000) {\r\n      z = 3000;\r\n    }\r\n    posZ = map(z, -3000, 3000, 1, 10);\r\n    posZ = 20*posZ - 10;\r\n\r\n    Serial.print(\"current z compass: \");\r\n    Serial.println(z);\r\n    Serial.print(\"move to Position: \");\r\n    Serial.println(posZ);\r\n    \r\n    myMotorRight.moveTo(posZ);\r\n\r\n    rightGetResults = false;\r\n  }\r\n  \r\n  if(myMotorLeft.distanceToGo() != 0) {\r\n    myMotorLeft.run();\r\n  } else {\r\n    myMotorLeft.setSpeed(1000);\r\n  }\r\n\r\n  if(myMotorMid.distanceToGo() != 0) {\r\n    myMotorMid.run();\r\n  } else {\r\n    myMotorMid.setSpeed(1000);\r\n  }\r\n\r\n  if(myMotorRight.distanceToGo() != 0) {\r\n    myMotorRight.run();\r\n  } else {\r\n    myMotorRight.setSpeed(1000);\r\n  }\r\n}<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Final Project Pictures and Video Narrative Description The Jackpot of Life is a slot machine, but the user can rig it in their favor. A disproportionate amount of&#8230;<\/p>\n","protected":false},"author":131,"featured_media":11838,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[186,89],"tags":[],"_links":{"self":[{"href":"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-json\/wp\/v2\/posts\/11777"}],"collection":[{"href":"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-json\/wp\/v2\/users\/131"}],"replies":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-json\/wp\/v2\/comments?post=11777"}],"version-history":[{"count":7,"href":"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-json\/wp\/v2\/posts\/11777\/revisions"}],"predecessor-version":[{"id":11837,"href":"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-json\/wp\/v2\/posts\/11777\/revisions\/11837"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-json\/wp\/v2\/media\/11838"}],"wp:attachment":[{"href":"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-json\/wp\/v2\/media?parent=11777"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-json\/wp\/v2\/categories?post=11777"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/62-362\/f2021\/wp-json\/wp\/v2\/tags?post=11777"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}