{"id":10178,"date":"2015-09-11T20:00:31","date_gmt":"2015-09-12T03:00:31","guid":{"rendered":"https:\/\/blog.digilentinc.com\/?p=10178"},"modified":"2025-06-02T02:28:39","modified_gmt":"2025-06-02T09:28:39","slug":"pmod-monthly-episode-3-returns-with-a-four-function-calculator","status":"publish","type":"post","link":"https:\/\/digilent.com\/blog\/pmod-monthly-episode-3-returns-with-a-four-function-calculator\/","title":{"rendered":"Pmod Monthly Episode 3 Returns with a Four-Function Calculator"},"content":{"rendered":"<p>James is back again with a new episode in the Pmod Monthly series.<\/p>\n<div class=\"jetpack-video-wrapper\"><iframe loading=\"lazy\" title=\"Pmod Monthly Ep. 3 - Four-Function Calculator\" width=\"735\" height=\"413\" src=\"https:\/\/www.youtube.com\/embed\/sDUWsxx0jjM?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/div>\n<p>This project, which is discussed in greater depth in <a href=\"https:\/\/digilent.com\/blog\/index.php\/a-listening-calculator\/\">a previous blog post<\/a>, is a four-function calculator (much like those you can buy, but with the added satisfaction of having done it yourself). You&#8217;ll need a <a href=\"https:\/\/digilent.com\/blog\/Products\/Detail.cfm?NavPath=2,401,940&amp;Prod=PMODKYPD\">PmodKYPD<\/a>, <a href=\"https:\/\/digilent.com\/blog\/Products\/Detail.cfm?NavPath=2,401,507&amp;Prod=PMOD-BTN\">PmodBTN<\/a>, <a href=\"https:\/\/digilent.com\/blog\/Products\/Detail.cfm?NavPath=2,401,963&amp;Prod=PMOD-OLED\">PmodOLED<\/a>, a microcontroller board like the chipKIT uC32, a breadboard, and plenty of wires.<\/p>\n<p>By using &#8220;active listening&#8221;, the microcontroller-centric project is able to compensate for some of the issues it might otherwise have in acting as a calculator. James describes active listening within the context of electronics as\u00a0&#8220;the system board continually checks if a certain condition has been met, or in the case of a four function calculator, continually checks to see if a button is being pressed.&#8221; The code he uses to carry this out is available <a href=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/01\/Four_Function_Calculator.txt\">here<\/a>.<\/p>\n<p>So, what do you think? Are you ready to make your own calculator? Which of the Pmods in this project have you found most useful? Let us know your thoughts in the comments.<\/p>\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style6 like-10178 jlk' data-task='like' data-post_id='10178' data-nonce='fd7a0819bd' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Like' \/><span class='lc-10178 lc'>0<\/span><\/a><\/div><div class='action-unlike'><a class='unlbg-style6 unlike-10178 jlk' data-task='unlike' data-post_id='10178' data-nonce='fd7a0819bd' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Unlike' \/><span class='unlc-10178 unlc'>0<\/span><\/a><\/div><\/div> <div class='status-10178 status align-left'>Be the 1st to vote.<\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>James is back again with a new episode in the Pmod Monthly series.<\/p>\n","protected":false},"author":7,"featured_media":1995,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false,"_ppma_block_editor_authors":""},"categories":[38,1561],"tags":[],"ppma_author":[4464],"class_list":["post-10178","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-expansion-modules","category-applications"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Pmod Monthly Episode 3 Returns with a Four-Function Calculator - Digilent Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/digilent.com\/blog\/pmod-monthly-episode-3-returns-with-a-four-function-calculator\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Pmod Monthly Episode 3 Returns with a Four-Function Calculator - Digilent Blog\" \/>\n<meta property=\"og:description\" content=\"James is back again with a new episode in the Pmod Monthly series.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/digilent.com\/blog\/pmod-monthly-episode-3-returns-with-a-four-function-calculator\/\" \/>\n<meta property=\"og:site_name\" content=\"Digilent Blog\" \/>\n<meta property=\"article:published_time\" content=\"2015-09-12T03:00:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-02T09:28:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/08\/Pmod-400.png\" \/>\n\t<meta property=\"og:image:width\" content=\"400\" \/>\n\t<meta property=\"og:image:height\" content=\"103\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Amber Mear\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Amber Mear\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/pmod-monthly-episode-3-returns-with-a-four-function-calculator\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/pmod-monthly-episode-3-returns-with-a-four-function-calculator\\\/\"},\"author\":{\"name\":\"Amber Mear\",\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/#\\\/schema\\\/person\\\/c33500b30135cd0853e452b0ccfa2bcb\"},\"headline\":\"Pmod Monthly Episode 3 Returns with a Four-Function Calculator\",\"datePublished\":\"2015-09-12T03:00:31+00:00\",\"dateModified\":\"2025-06-02T09:28:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/pmod-monthly-episode-3-returns-with-a-four-function-calculator\\\/\"},\"wordCount\":192,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/pmod-monthly-episode-3-returns-with-a-four-function-calculator\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/digilent.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/08\\\/Pmod-400.png\",\"articleSection\":[\"Digilent Expansion Modules\",\"Product Applications \u2013 Digilent Blog\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/digilent.com\\\/blog\\\/pmod-monthly-episode-3-returns-with-a-four-function-calculator\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/pmod-monthly-episode-3-returns-with-a-four-function-calculator\\\/\",\"url\":\"https:\\\/\\\/digilent.com\\\/blog\\\/pmod-monthly-episode-3-returns-with-a-four-function-calculator\\\/\",\"name\":\"Pmod Monthly Episode 3 Returns with a Four-Function Calculator - Digilent Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/pmod-monthly-episode-3-returns-with-a-four-function-calculator\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/pmod-monthly-episode-3-returns-with-a-four-function-calculator\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/digilent.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/08\\\/Pmod-400.png\",\"datePublished\":\"2015-09-12T03:00:31+00:00\",\"dateModified\":\"2025-06-02T09:28:39+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/#\\\/schema\\\/person\\\/c33500b30135cd0853e452b0ccfa2bcb\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/pmod-monthly-episode-3-returns-with-a-four-function-calculator\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/digilent.com\\\/blog\\\/pmod-monthly-episode-3-returns-with-a-four-function-calculator\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/pmod-monthly-episode-3-returns-with-a-four-function-calculator\\\/#primaryimage\",\"url\":\"https:\\\/\\\/digilent.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/08\\\/Pmod-400.png\",\"contentUrl\":\"https:\\\/\\\/digilent.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/08\\\/Pmod-400.png\",\"width\":400,\"height\":103},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/pmod-monthly-episode-3-returns-with-a-four-function-calculator\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/digilent.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Pmod Monthly Episode 3 Returns with a Four-Function Calculator\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/digilent.com\\\/blog\\\/\",\"name\":\"Digilent Blog\",\"description\":\"Learning for Engineers, Students, and Hobbyists\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/digilent.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/#\\\/schema\\\/person\\\/c33500b30135cd0853e452b0ccfa2bcb\",\"name\":\"Amber Mear\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d0fc56ab4035f79884675bde2a948e84c1d14dd33b730b4c142dde6f1a962395?s=96&d=mm&r=gfaace292e54f77e65a2a49c9902b2a29\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d0fc56ab4035f79884675bde2a948e84c1d14dd33b730b4c142dde6f1a962395?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d0fc56ab4035f79884675bde2a948e84c1d14dd33b730b4c142dde6f1a962395?s=96&d=mm&r=g\",\"caption\":\"Amber Mear\"},\"description\":\"I was the Digilent blog editor, and now I'm a contributor. I love learning about wearables and writing about social issues in STEM. Outside of work, I can be found watching Netflix with my cat, working on an art project, or trying to find new, delicious local foods.\",\"url\":\"https:\\\/\\\/digilent.com\\\/blog\\\/author\\\/amber_mear\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Pmod Monthly Episode 3 Returns with a Four-Function Calculator - Digilent Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/digilent.com\/blog\/pmod-monthly-episode-3-returns-with-a-four-function-calculator\/","og_locale":"en_US","og_type":"article","og_title":"Pmod Monthly Episode 3 Returns with a Four-Function Calculator - Digilent Blog","og_description":"James is back again with a new episode in the Pmod Monthly series.","og_url":"https:\/\/digilent.com\/blog\/pmod-monthly-episode-3-returns-with-a-four-function-calculator\/","og_site_name":"Digilent Blog","article_published_time":"2015-09-12T03:00:31+00:00","article_modified_time":"2025-06-02T09:28:39+00:00","og_image":[{"width":400,"height":103,"url":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/08\/Pmod-400.png","type":"image\/png"}],"author":"Amber Mear","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Amber Mear","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/digilent.com\/blog\/pmod-monthly-episode-3-returns-with-a-four-function-calculator\/#article","isPartOf":{"@id":"https:\/\/digilent.com\/blog\/pmod-monthly-episode-3-returns-with-a-four-function-calculator\/"},"author":{"name":"Amber Mear","@id":"https:\/\/digilent.com\/blog\/#\/schema\/person\/c33500b30135cd0853e452b0ccfa2bcb"},"headline":"Pmod Monthly Episode 3 Returns with a Four-Function Calculator","datePublished":"2015-09-12T03:00:31+00:00","dateModified":"2025-06-02T09:28:39+00:00","mainEntityOfPage":{"@id":"https:\/\/digilent.com\/blog\/pmod-monthly-episode-3-returns-with-a-four-function-calculator\/"},"wordCount":192,"commentCount":0,"image":{"@id":"https:\/\/digilent.com\/blog\/pmod-monthly-episode-3-returns-with-a-four-function-calculator\/#primaryimage"},"thumbnailUrl":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/08\/Pmod-400.png","articleSection":["Digilent Expansion Modules","Product Applications \u2013 Digilent Blog"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/digilent.com\/blog\/pmod-monthly-episode-3-returns-with-a-four-function-calculator\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/digilent.com\/blog\/pmod-monthly-episode-3-returns-with-a-four-function-calculator\/","url":"https:\/\/digilent.com\/blog\/pmod-monthly-episode-3-returns-with-a-four-function-calculator\/","name":"Pmod Monthly Episode 3 Returns with a Four-Function Calculator - Digilent Blog","isPartOf":{"@id":"https:\/\/digilent.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/digilent.com\/blog\/pmod-monthly-episode-3-returns-with-a-four-function-calculator\/#primaryimage"},"image":{"@id":"https:\/\/digilent.com\/blog\/pmod-monthly-episode-3-returns-with-a-four-function-calculator\/#primaryimage"},"thumbnailUrl":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/08\/Pmod-400.png","datePublished":"2015-09-12T03:00:31+00:00","dateModified":"2025-06-02T09:28:39+00:00","author":{"@id":"https:\/\/digilent.com\/blog\/#\/schema\/person\/c33500b30135cd0853e452b0ccfa2bcb"},"breadcrumb":{"@id":"https:\/\/digilent.com\/blog\/pmod-monthly-episode-3-returns-with-a-four-function-calculator\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/digilent.com\/blog\/pmod-monthly-episode-3-returns-with-a-four-function-calculator\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/digilent.com\/blog\/pmod-monthly-episode-3-returns-with-a-four-function-calculator\/#primaryimage","url":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/08\/Pmod-400.png","contentUrl":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/08\/Pmod-400.png","width":400,"height":103},{"@type":"BreadcrumbList","@id":"https:\/\/digilent.com\/blog\/pmod-monthly-episode-3-returns-with-a-four-function-calculator\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/digilent.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Pmod Monthly Episode 3 Returns with a Four-Function Calculator"}]},{"@type":"WebSite","@id":"https:\/\/digilent.com\/blog\/#website","url":"https:\/\/digilent.com\/blog\/","name":"Digilent Blog","description":"Learning for Engineers, Students, and Hobbyists","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/digilent.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/digilent.com\/blog\/#\/schema\/person\/c33500b30135cd0853e452b0ccfa2bcb","name":"Amber Mear","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/d0fc56ab4035f79884675bde2a948e84c1d14dd33b730b4c142dde6f1a962395?s=96&d=mm&r=gfaace292e54f77e65a2a49c9902b2a29","url":"https:\/\/secure.gravatar.com\/avatar\/d0fc56ab4035f79884675bde2a948e84c1d14dd33b730b4c142dde6f1a962395?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d0fc56ab4035f79884675bde2a948e84c1d14dd33b730b4c142dde6f1a962395?s=96&d=mm&r=g","caption":"Amber Mear"},"description":"I was the Digilent blog editor, and now I'm a contributor. I love learning about wearables and writing about social issues in STEM. Outside of work, I can be found watching Netflix with my cat, working on an art project, or trying to find new, delicious local foods.","url":"https:\/\/digilent.com\/blog\/author\/amber_mear\/"}]}},"jetpack_sharing_enabled":true,"authors":[{"term_id":4464,"user_id":7,"is_guest":0,"slug":"amber_mear","display_name":"Amber Mear","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/d0fc56ab4035f79884675bde2a948e84c1d14dd33b730b4c142dde6f1a962395?s=96&d=mm&r=g","author_category":"","user_url":"","last_name":"Mear","last_name_2":"","first_name":"Amber","first_name_2":"","job_title":"","description":"I was the Digilent blog editor, and now I'm a contributor. I love learning about wearables and writing about social issues in STEM. Outside of work, I can be found watching Netflix with my cat, working on an art project, or trying to find new, delicious local foods."}],"jetpack_featured_media_url":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/08\/Pmod-400.png","post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/10178","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/comments?post=10178"}],"version-history":[{"count":1,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/10178\/revisions"}],"predecessor-version":[{"id":31583,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/10178\/revisions\/31583"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media\/1995"}],"wp:attachment":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media?parent=10178"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/categories?post=10178"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/tags?post=10178"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=10178"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}