{"id":15624,"date":"2022-03-16T04:27:19","date_gmt":"2022-03-16T08:27:19","guid":{"rendered":"https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/?p=15624"},"modified":"2022-03-16T04:31:52","modified_gmt":"2022-03-16T08:31:52","slug":"the-good-habits-checklist","status":"publish","type":"post","link":"https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/the-good-habits-checklist\/","title":{"rendered":"The Good Habits Checklist"},"content":{"rendered":"<p>For Project 2, I created a checklist that rewards me for establishing good habits.<\/p>\n<h3>Photos and Videos<\/h3>\n<div id=\"attachment_15460\" style=\"width: 2570px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-15460\" loading=\"lazy\" class=\"wp-image-15460 size-full\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1169-scaled.jpg\" alt=\"\" width=\"2560\" height=\"2560\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1169-scaled.jpg 2560w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1169-300x300.jpg 300w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1169-1024x1024.jpg 1024w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1169-150x150.jpg 150w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1169-768x768.jpg 768w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1169-1536x1536.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1169-2048x2048.jpg 2048w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1169-88x88.jpg 88w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1169-973x973.jpg 973w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1169-508x508.jpg 508w\" sizes=\"(max-width: 2560px) 100vw, 2560px\" \/><p id=\"caption-attachment-15460\" class=\"wp-caption-text\">Overall Photo<\/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-15624-1\" width=\"620\" height=\"620\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1172.mp4?_=1\" \/><a href=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1172.mp4\">https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1172.mp4<\/a><\/video><\/div>\n<div id=\"attachment_15462\" style=\"width: 2570px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-15462\" loading=\"lazy\" class=\"wp-image-15462 size-full\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1174-scaled.jpg\" alt=\"\" width=\"2560\" height=\"2560\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1174-scaled.jpg 2560w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1174-300x300.jpg 300w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1174-1024x1024.jpg 1024w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1174-150x150.jpg 150w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1174-768x768.jpg 768w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1174-1536x1536.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1174-2048x2048.jpg 2048w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1174-88x88.jpg 88w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1174-973x973.jpg 973w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1174-508x508.jpg 508w\" sizes=\"(max-width: 2560px) 100vw, 2560px\" \/><p id=\"caption-attachment-15462\" class=\"wp-caption-text\">The candy funnel seen without candy.<\/p><\/div>\n<div id=\"attachment_15461\" style=\"width: 2570px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-15461\" loading=\"lazy\" class=\"wp-image-15461 size-full\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1173-scaled.jpg\" alt=\"\" width=\"2560\" height=\"2560\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1173-scaled.jpg 2560w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1173-300x300.jpg 300w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1173-1024x1024.jpg 1024w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1173-150x150.jpg 150w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1173-768x768.jpg 768w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1173-1536x1536.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1173-2048x2048.jpg 2048w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1173-88x88.jpg 88w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1173-973x973.jpg 973w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1173-508x508.jpg 508w\" sizes=\"(max-width: 2560px) 100vw, 2560px\" \/><p id=\"caption-attachment-15461\" class=\"wp-caption-text\">The candy funnel seen with candy.<\/p><\/div>\n<div id=\"attachment_15455\" style=\"width: 2570px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-15455\" loading=\"lazy\" class=\"wp-image-15455 size-full\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1180-1-scaled.jpg\" alt=\"\" width=\"2560\" height=\"2560\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1180-1-scaled.jpg 2560w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1180-1-300x300.jpg 300w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1180-1-1024x1024.jpg 1024w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1180-1-150x150.jpg 150w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1180-1-768x768.jpg 768w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1180-1-1536x1536.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1180-1-2048x2048.jpg 2048w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1180-1-88x88.jpg 88w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1180-1-973x973.jpg 973w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1180-1-508x508.jpg 508w\" sizes=\"(max-width: 2560px) 100vw, 2560px\" \/><p id=\"caption-attachment-15455\" class=\"wp-caption-text\">Internal Wiring<\/p><\/div>\n<h3>Process Images<\/h3>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-15631\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1201-scaled.jpg\" alt=\"\" width=\"2560\" height=\"1111\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1201-scaled.jpg 2560w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1201-300x130.jpg 300w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1201-1024x444.jpg 1024w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1201-768x333.jpg 768w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1201-1536x667.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1201-2048x889.jpg 2048w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1201-973x422.jpg 973w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1201-508x220.jpg 508w\" sizes=\"(max-width: 2560px) 100vw, 2560px\" \/><\/p>\n<p>Above is my initial design idea of the Good Habits Checklist. In the initial design, candy was stored in a compartment and once all 5 switches were flipped, a servo would turn a latch, allowing me to open the compartment. Another thing to note was that the display and switches were on the side of the box, which is different from my final design.<\/p>\n<h3><img loading=\"lazy\" class=\"alignnone size-full wp-image-15635\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1125-scaled.jpg\" alt=\"\" width=\"2560\" height=\"1920\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1125-scaled.jpg 2560w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1125-300x225.jpg 300w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1125-1024x768.jpg 1024w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1125-768x576.jpg 768w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1125-1536x1152.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1125-2048x1536.jpg 2048w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1125-973x730.jpg 973w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1125-508x381.jpg 508w\" sizes=\"(max-width: 2560px) 100vw, 2560px\" \/><\/h3>\n<p>Above shows my first prototype. As you can see, I focused on getting the wiring and display before moving on to the exterior box. I switched the number of tasks from 5 to 4 to fit onto the display effectively but did not change much of the design concept at this point.<\/p>\n<h3><img loading=\"lazy\" class=\"alignnone size-full wp-image-15636\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1127-scaled.jpg\" alt=\"\" width=\"1920\" height=\"2560\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1127-scaled.jpg 1920w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1127-225x300.jpg 225w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1127-768x1024.jpg 768w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1127-1152x1536.jpg 1152w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1127-1536x2048.jpg 1536w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1127-973x1297.jpg 973w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/IMG-1127-508x677.jpg 508w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/h3>\n<p>Shown above is when I began to fit all of my components into the box. This is where the initial design changed the most. After presenting my prototype, other students gave me the idea to create a dispensing mechanism for the candy. I was still able to use the servo that releases candy from a funnel by turning out of the way for a short period of time. Getting the correct timing to dispense a reasonable amount of candy was difficult. Having this new mechanism also allowed me to put the display, switches and LEDs on top of the box. Because I am tall and tower above most tables even when sitting, this allows me to more easily see the display and flip the switches.<\/p>\n<h3>Discussion<\/h3>\n<p>Overall, I believe that my final critique went well and that I achieved what I set out to do. It was very rewarding to get positive feedback about my candy dispensing system. One student commented that, &#8220;<span style=\"font-weight: 400\">I think the candy dispensing is exciting and looks like it functions really well.&#8221; Although creating a candy dispenser was not my idea, as I explained in the Process Images section, I thought my idea of the funnel and servo motor was a clever solution. I do, however, wish it was a little more consistent with the number of skittles that come out. Right now, it usually dispensing around 3 skittles but can dispense 1 to 5. Furthermore, students commented how the skittles are launched out onto the desk and can go very far. One student advised me to, <\/span>&#8220;<span style=\"font-weight: 400\">Add a holder for the treats once they\u2019re dispensed.&#8221; This is a great idea because it ensures that skittles do not go onto the floor or get dirty from the table. In the end, <\/span>I truly believe that this will be a useful thing for me to use every day and develop good habits. I am happy with the design and function of the project, but I still plan to fix all the issues explained above. I plan to go back and add a candy holder, tweak the dispenser so it is more consistent, and put an on\/off switch so that the batteries do not run out as fast. Then I can get the most out of using the Good Habits Checklist.<\/p>\n<h3>Technical Information<\/h3>\n<div id=\"attachment_15633\" style=\"width: 807px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-15633\" loading=\"lazy\" class=\"wp-image-15633 size-full\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/P2-block.drawio.png\" alt=\"\" width=\"797\" height=\"381\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/P2-block.drawio.png 797w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/P2-block.drawio-300x143.png 300w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/P2-block.drawio-768x367.png 768w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/P2-block.drawio-508x243.png 508w\" sizes=\"(max-width: 797px) 100vw, 797px\" \/><p id=\"caption-attachment-15633\" class=\"wp-caption-text\">Block Diagram<\/p><\/div>\n<div id=\"attachment_15632\" style=\"width: 1091px\" class=\"wp-caption alignnone\"><img aria-describedby=\"caption-attachment-15632\" loading=\"lazy\" class=\"wp-image-15632 size-full\" src=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/P2-Schematic.drawio.png\" alt=\"\" width=\"1081\" height=\"679\" srcset=\"https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/P2-Schematic.drawio.png 1081w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/P2-Schematic.drawio-300x188.png 300w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/P2-Schematic.drawio-1024x643.png 1024w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/P2-Schematic.drawio-768x482.png 768w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/P2-Schematic.drawio-973x611.png 973w, https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-content\/uploads\/2022\/03\/P2-Schematic.drawio-508x319.png 508w\" sizes=\"(max-width: 1081px) 100vw, 1081px\" \/><p id=\"caption-attachment-15632\" class=\"wp-caption-text\">Schematic Diagram<\/p><\/div>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">\/*\r\n   The Good Habits Checklist\r\n\r\n   Tristan Hineman\r\n\r\n   Description:\r\n    This program is designed to display daily tasks and read if LEDs are on or off. When an LED is on, the LCD Display will show that the correlated task is completed. When it reads that all LEDs are on, it displays that all tasks are done and turns a servo motor to release candy once.\r\n   Pin Mapping Table:\r\n\r\n   Arduino pin | description\r\n   ------------|-------------\r\n   A0            Servo Motor\r\n\r\n   5             LED 1\r\n   6             LED 2\r\n   7             LED 3\r\n   8             LED 4\r\n\r\n   SDA           SDA pin, LCD Display\r\n   SCL           SCL pin, LCD Display\r\n*\/\r\n\r\n\/\/Libraries\r\n#include &lt;LiquidCrystal_I2C.h&gt;\r\n#include &lt;Servo.h&gt;\r\nServo servoMotor;\r\n\/\/Setup to LCD display\r\nLiquidCrystal_I2C screen(0x27, 20, 4);\r\n\r\n\/\/Creates and saves a special character that is a check mark\r\nbyte customChar[] = {\r\n  B00000,\r\n  B00000,\r\n  B00001,\r\n  B00011,\r\n  B10110,\r\n  B11100,\r\n  B01000,\r\n  B00000\r\n};\r\n\r\n\/\/Pin for LEDs\r\nconst int led1Pin = 5;\r\nconst int led2Pin = 6;\r\nconst int led3Pin = 7;\r\nconst int led4Pin = 8;\r\n\r\n\/\/Pin for servo motor\r\nconst int servoPin = A0;\r\n\r\n\/\/Variable to run servo motor only once when all LEDs are on\r\nboolean hasRun = false;\r\n\r\nvoid setup() {\r\n\r\n  \/\/Pin setup\r\n  pinMode(servoPin, OUTPUT);\r\n  pinMode(led1Pin, INPUT);\r\n  pinMode(led2Pin, INPUT);\r\n  pinMode(led3Pin, INPUT);\r\n  pinMode(led4Pin, INPUT);\r\n\r\n  \/\/LCD screen initialization\r\n  screen.init();\r\n  screen.backlight();\r\n  screen.home();\r\n  Serial.begin(9600);\r\n\r\n  \/\/Variable for check mark\r\n  screen.createChar(check, customChar);\r\n}\r\n\r\nvoid loop() {\r\n  \r\n  \/\/Attaching library to servo pin\r\n  servoMotor.attach(servoPin);\r\n\r\n  \/\/Variable to set servo position\r\n  int servoPos;\r\n\r\n  \/\/Variables to read if LEDs are on\r\n  int led1Read;\r\n  int led2Read;\r\n  int led3Read;\r\n  int led4Read;\r\n\r\n  \/\/Read and print if LEDs are on\r\n  led1Read = digitalRead(led1Pin) ;\r\n  Serial.print(led1Read);\r\n  led2Read = digitalRead(led2Pin) ;\r\n  Serial.print(led2Read);\r\n  led3Read = digitalRead(led3Pin) ;\r\n  Serial.print(led3Read);\r\n  led4Read = digitalRead(led4Pin) ;\r\n  Serial.println(led4Pin);\r\n\r\n\r\n  \/\/Displaying text when all LEDs are on\r\n  if (led1Read == 0 &amp;&amp; led2Read == 0 &amp;&amp; led3Read == 0 &amp;&amp; led4Read == 0) {\r\n    screen.setCursor(0, 0);\r\n    screen.print(\"ALL TASKS DONE!  \");\r\n    screen.setCursor(0, 1);\r\n    screen.print(\"ALL TASKS DONE!\");\r\n    screen.setCursor(0, 2);\r\n    screen.print(\"ALL TASKS DONE!\");\r\n    screen.setCursor(0, 3);\r\n    screen.print(\"ALL TASKS DONE!\");\r\n\r\n    \/\/Using hasRun variable to move the servo motor only once\r\n    if (hasRun == false) {\r\n      servoMotor.write(90);\r\n      delay (100);\r\n      servoMotor.write(180);\r\n      hasRun = true;\r\n    }\r\n  }\r\n  else {\r\n    hasRun= false;\r\n    servoMotor.write(180);\r\n    \/\/Displaying the task and an X when the LED 1 is off\r\n    if (led1Read == 1) {\r\n      screen.setCursor(0, 0);\r\n      screen.print(\"1)Eat Breakfast:X\");\r\n    }\r\n\r\n    \/\/Displaying the task and a check mark when the LED 1 is on\r\n    else {\r\n      screen.setCursor(0, 0);\r\n      screen.print(\"1)Eat Breakfast:\");\r\n      screen.write(check);\r\n    }\r\n    \r\n   \u00a0\/\/Displaying the task and an X when the LED 2 is off\r\n    if (led2Read == 1) {\r\n      screen.setCursor(0, 1);\r\n      screen.print(\"2)Exersize:X      \");\r\n    }\r\n\r\n    \/\/Displaying the task and a check mark when the LED 2 is on\r\n    else {\r\n      screen.setCursor(0, 1);\r\n      screen.print(\"2)Exersize:      \");\r\n      screen.setCursor(11, 1);\r\n      screen.write(check);\r\n    }\r\n   \u00a0\/\/Displaying the task and an X when the LED 3 is off\r\n    if (led3Read == 1) {\r\n      screen.setCursor(0, 2);\r\n      screen.print(\"3)Homework:X     \");\r\n    }\r\n\r\n    \/\/Displaying the task and a check mark when the LED 3 is on\r\n    else {\r\n      screen.setCursor(0, 2);\r\n      screen.print(\"3)Homework:      \");\r\n      screen.setCursor(11, 2);\r\n      screen.write(check);\r\n    }\r\n\r\n    \/\/Displaying the task and an X when the LED 4 is off\r\n    if (led4Read == 1) {\r\n      screen.setCursor(0, 3);\r\n      screen.print(\"4)Brush Teeth:X\");\r\n    }\r\n\r\n    \/\/Displaying the task and a check mark when the LED 4 is on\r\n    else {\r\n      screen.setCursor(0, 3);\r\n      screen.print(\"4)Brush Teeth:\");\r\n      screen.write(check);\r\n    }\r\n  }\r\n}<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For Project 2, I created a checklist that rewards me for establishing good habits. Photos and Videos Process Images Above is my initial design idea of the Good&#8230;<\/p>\n","protected":false},"author":210,"featured_media":15460,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[89,1],"tags":[],"_links":{"self":[{"href":"https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-json\/wp\/v2\/posts\/15624"}],"collection":[{"href":"https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-json\/wp\/v2\/users\/210"}],"replies":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-json\/wp\/v2\/comments?post=15624"}],"version-history":[{"count":4,"href":"https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-json\/wp\/v2\/posts\/15624\/revisions"}],"predecessor-version":[{"id":15640,"href":"https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-json\/wp\/v2\/posts\/15624\/revisions\/15640"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-json\/wp\/v2\/media\/15460"}],"wp:attachment":[{"href":"https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-json\/wp\/v2\/media?parent=15624"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-json\/wp\/v2\/categories?post=15624"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/60-223\/s2022\/work\/wp-json\/wp\/v2\/tags?post=15624"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}