{"id":219,"date":"2024-10-20T03:26:24","date_gmt":"2024-10-20T03:26:24","guid":{"rendered":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamc2\/?p=219"},"modified":"2024-10-20T03:26:24","modified_gmt":"2024-10-20T03:26:24","slug":"jeffreys-status-report-for-10-19-2024","status":"publish","type":"post","link":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamc2\/2024\/10\/20\/jeffreys-status-report-for-10-19-2024\/","title":{"rendered":"Jeffrey&#8217;s Status Report for 10\/19\/2024"},"content":{"rendered":"<p>Since last week, my main focus was finishing the design report, and preparing for the week 6 tasks on the Gantt Chart. Over Fall Break, I worked on preparing for three tasks. The servo motors, the speakers, and the GPIO pins that connect the RPi to the buttons on the robot base.<\/p>\n<p>For the GPIO pins, I plan to use Python with the GPIO library and have written preliminary code:<\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">import RPi.GPIO as GPIO<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">import time\u00a0<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\"># Use Broadcom pin-numbering scheme\u00a0<\/span>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">GPIO.setmode(GPIO.BCM)\u00a0<\/span><\/li>\n<\/ul>\n<\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\"># Set up the GPIO pin (e.g., Pin 17) as input with internal pull-down resistor\u00a0<\/span>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">button_pin = 17 GPIO.setup(button_pin, GPIO.IN, pull_up_down=GPIO.PUD_DOWN) def button_callback(channel): print(&#8220;Button was pressed! &#8216;X&#8217; has been selected.&#8221;)\u00a0<\/span><\/li>\n<\/ul>\n<\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\"># Add an event detection for button press\u00a0<\/span>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">GPIO.add_event_detect(button_pin, GPIO.RISING, callback=button_callback, bouncetime=200) try: while True:\u00a0<\/span><\/li>\n<\/ul>\n<\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\"># Keep the program running to detect button press:<\/span>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">\u00a0time.sleep(1) except KeyboardInterrupt:\u00a0<\/span><\/li>\n<\/ul>\n<\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\"># Clean up the GPIO setup on exit:\u00a0<\/span>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">GPIO.cleanup()<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">For testing and validation, I will look into ways to ensure that the latency of button inputs is under 250 ms. And also look into methods to test debouncing, to ensure that multiple unintended button presses\u00a0 aren&#8217;t triggering unintended inputs.\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>For the speakers, Mahlet put in the order for a USB speaker. This goes along with one of my tasks that is hello\/goodbye greetings when the robot is powered on or off. From button presses, the GPIO pins can act as an input the the RPi and call the Python TTS library functions to trigger voice activation greetings. Since it is USB, the wiring of the speaker to the RPi should be trivial, but we would want to ensure that latency won&#8217;t be an issue, and that the RPi can take in inputs that can cause a corresponding correct output from the speakers.<\/p>\n<p>&nbsp;<\/p>\n<p>Finally, we have the servo motors, which comes with a bracket mount. I looked into the specs of the servo motors we bought, at 1.6 inches. So we would need a &lt;5 inch bracket mount, that we can then connect the DCI display to.<\/p>\n<p>&nbsp;<\/p>\n<p>For the upcoming week, my goal is to simulate the rotation in Matlab, to ensure that the X and Y axis rotation is possible to achieve. Furthermore, Mahlet and I will be meeting in Techspark early next week to work on the acrylic base. Once we have the base, we can more easily measure dimensions for bracket mounts and buttons, that will then segue to use being able to test the features that we have implemented.<\/p>\n<p>I am currently behind on the Gantt Chart for testing the speakers since we haven&#8217;t acquired them yet. I have prepared the python code necessary to test 2-3 fixed phrases.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since last week, my main focus was finishing the design report, and preparing for the week 6 tasks on the Gantt Chart. Over Fall Break, I worked on preparing for three tasks. The servo motors, the speakers, and the GPIO pins that connect the RPi to the buttons on the robot base. For the GPIO &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamc2\/2024\/10\/20\/jeffreys-status-report-for-10-19-2024\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Jeffrey&#8217;s Status Report for 10\/19\/2024&#8221;<\/span><\/a><\/p>\n","protected":false},"author":970,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[8],"_links":{"self":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamc2\/wp-json\/wp\/v2\/posts\/219"}],"collection":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamc2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamc2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamc2\/wp-json\/wp\/v2\/users\/970"}],"replies":[{"embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamc2\/wp-json\/wp\/v2\/comments?post=219"}],"version-history":[{"count":1,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamc2\/wp-json\/wp\/v2\/posts\/219\/revisions"}],"predecessor-version":[{"id":220,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamc2\/wp-json\/wp\/v2\/posts\/219\/revisions\/220"}],"wp:attachment":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamc2\/wp-json\/wp\/v2\/media?parent=219"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamc2\/wp-json\/wp\/v2\/categories?post=219"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/f24-teamc2\/wp-json\/wp\/v2\/tags?post=219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}