{"id":2312,"date":"2022-02-22T21:43:31","date_gmt":"2022-02-23T02:43:31","guid":{"rendered":"https:\/\/courses.ideate.cmu.edu\/48-339\/s2022\/?p=2312"},"modified":"2022-02-22T21:43:31","modified_gmt":"2022-02-23T02:43:31","slug":"class-notes-22-feb-22","status":"publish","type":"post","link":"https:\/\/courses.ideate.cmu.edu\/48-339\/s2022\/?p=2312","title":{"rendered":"Class Notes, 22 Feb 22"},"content":{"rendered":"<p>(mostly me talking today)<\/p>\n<p>How to read a data sheet using L293 vs. tutorials<\/p>\n<p>How would you do your project differently using a bridge?\u00a0 Is coasting a useful feature?<\/p>\n<p>How do interrupts work with motion?<\/p>\n<p>How do state machines work with interrupts and motion?<\/p>\n<h3>Using chips to simply interrupts<\/h3>\n<p>Let&#8217;s say you have to interrupts, and you only care if both of them happen at the same time.\u00a0\u00a0 You could feed both inputs to an <a href=\"https:\/\/www.digikey.com\/en\/products\/detail\/texas-instruments\/SN74HCT08N\/277252\">AND chip<\/a> that we have in A10 and feed the output to a single input interrupt.\u00a0 Likewise, if you have two inputs and you care if either one go off and will do the same thing for each, use an <a href=\"https:\/\/www.digikey.com\/en\/products\/detail\/SN74HCT32N\/296-1615-5-ND\/277261\">OR chip<\/a>.<\/p>\n<p>Use state variables to change solenoid \/ motor based on an interrupt<\/p>\n<p>Talk about crits and elevator pitches.<\/p>\n<h3>Simple assignment<\/h3>\n<ul>\n<li>Verify that your Teensy boards are working and that you can download sketches.<\/li>\n<li>Skim the <a href=\"https:\/\/www.pjrc.com\/store\/teensy41.html\">Teensy 4.1 page<\/a> and think about things you can do in future projects \/ crits.\u00a0 Update Looking Out if you find something interesting using the Teensy chips in ixd projects.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>(mostly me talking today) How to read a data sheet using L293 vs. tutorials How would you do your project differently using a bridge?\u00a0 Is coasting a useful feature? How do interrupts work with motion? How do state machines work with interrupts and motion? Using chips to simply interrupts Let&#8217;s say you have to interrupts, &hellip; <a href=\"https:\/\/courses.ideate.cmu.edu\/48-339\/s2022\/?p=2312\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Class Notes, 22 Feb 22&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/courses.ideate.cmu.edu\/48-339\/s2022\/index.php?rest_route=\/wp\/v2\/posts\/2312"}],"collection":[{"href":"https:\/\/courses.ideate.cmu.edu\/48-339\/s2022\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/courses.ideate.cmu.edu\/48-339\/s2022\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/48-339\/s2022\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/48-339\/s2022\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2312"}],"version-history":[{"count":1,"href":"https:\/\/courses.ideate.cmu.edu\/48-339\/s2022\/index.php?rest_route=\/wp\/v2\/posts\/2312\/revisions"}],"predecessor-version":[{"id":2313,"href":"https:\/\/courses.ideate.cmu.edu\/48-339\/s2022\/index.php?rest_route=\/wp\/v2\/posts\/2312\/revisions\/2313"}],"wp:attachment":[{"href":"https:\/\/courses.ideate.cmu.edu\/48-339\/s2022\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2312"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/48-339\/s2022\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2312"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/48-339\/s2022\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2312"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}