{"id":1625,"date":"2018-06-19T09:35:00","date_gmt":"2018-06-18T23:35:00","guid":{"rendered":"https:\/\/www.homebrewradio.us\/blog\/2018\/06\/19\/digital-pot\/"},"modified":"2025-07-21T11:51:44","modified_gmt":"2025-07-21T01:51:44","slug":"digital-pot","status":"publish","type":"post","link":"https:\/\/www.homebrewradio.us\/blog\/2018\/06\/19\/digital-pot\/","title":{"rendered":"Digital Pot"},"content":{"rendered":"<div class=\"separator\" style=\"clear: both; text-align: center;\"> <a href=\"https:\/\/www.homebrewradio.us\/blog\/wp-content\/uploads\/2018\/06\/KC1FSZdigipot1.jpg\" imageanchor=\"1\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" data-original-height=\"480\" data-original-width=\"640\" height=\"300\" src=\"https:\/\/www.homebrewradio.us\/blog\/wp-content\/uploads\/2018\/06\/KC1FSZdigipot1.jpg\" width=\"400\" \/><\/a><\/div>\n<p> <span style=\"background-color: white; color: #26282a; font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif; font-size: 13px;\"><i><b>No, this is not some on-line mail order thing. <\/b><\/i><\/span><i style=\"color: #26282a; font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif; font-size: 13px;\"><b>Bruce KC1FSZ has done something that I find both amazing and horrifying: he using a &#8220;digital potentiometer&#8221; as the AF gain control in his BITX. Remember when pots were simple and pure, when they were just a metal wiper that ran across a crescent of carbon of increasing resistance? Well, those happy days are apparently behind us my friends. What now? Will we have endless discussions about where to find the driver for the 10k pot? Will Facebook or Amazon or Microsoft secretly seize control of the data on our AF gain, perhaps to sell us hearing aids? But enough of my ludism. Good going Bruce. AGC beckons. <\/b><\/i><\/p>\n<p> <b><span style=\"background-color: white; color: #26282a; font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif; font-size: 13px;\">Hi:<\/span><br style=\"background-color: white; color: #26282a; font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif; font-size: 13px;\" \/><br style=\"background-color: white; color: #26282a; font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif; font-size: 13px;\" \/><span style=\"background-color: white; color: #26282a; font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif; font-size: 13px;\">I&#8217;ve built a few BITX rigs from scratch now and I&#8217;m starting to move to a modular approach using fabricated PCBs to make it easier\/faster to build\/mix\/match the stages. My audio amplifier module is based on the LM386. I know others have moved away from this chip, but it still works for me.<\/span><br style=\"background-color: white; color: #26282a; font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif; font-size: 13px;\" \/><br style=\"background-color: white; color: #26282a; font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif; font-size: 13px;\" \/><span style=\"background-color: white; color: #26282a; font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif; font-size: 13px;\">I&#8217;ve added one feature to my audio amp stage that opens up some good possibilities. Instead of the traditional potentiometer between the AF preamp and the LM386, I&#8217;ve inserted a digital potentiometer (MCP4131-103) that is controlled by three extra pins on the microcontroller. The digital pot lists for $0.81 on Mouser so it&#8217;s no more expensive than a physical pot and it&#8217;s way more versatile.<\/span><br style=\"background-color: white; color: #26282a; font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif; font-size: 13px;\" \/><br style=\"background-color: white; color: #26282a; font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif; font-size: 13px;\" \/><span style=\"background-color: white; color: #26282a; font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif; font-size: 13px;\">Why do this?<\/span><\/b> <\/p>\n<ul style=\"background-color: white; color: #26282a; font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif; font-size: 13px;\">\n<li><b>The module is quick to make if you&#8217;re building a lot of rigs.<\/b><\/li>\n<li><b>AF gain can be controlled via the CAT port.<\/b><\/li>\n<li><b>AGC control can be done in software. This enables all kinds of fancy AGC &#8220;attack&#8221; and &#8220;release&#8221; controls that can be seen in the docs for commercial rigs.<\/b><\/li>\n<li><b>This is an enabling feature for remote ops, which is why I did this in the first place.<\/b><\/li>\n<li><b>AF gain can be controlled using the same encoder (different mode) as is used to control frequency, etc. if you wanted to build a more compact rig.<\/b><\/li>\n<\/ul>\n<p> <b><span style=\"background-color: white; color: #26282a; font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif; font-size: 13px;\">The board is shown below. This is one of my first forays into KiCAD\/PCBs\/etc. so it&#8217;s probably not as &#8220;tight&#8221; as it could be. Also, I&#8217;m using through-hole components so it&#8217;s old-school building. But the board only costs $7 on OSHPark and it&#8217;s pretty quick to wire up. Anyone who wants to order one from them drop me a line and I&#8217;ll send you the link.<\/span><br style=\"background-color: white; color: #26282a; font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif; font-size: 13px;\" \/><br style=\"background-color: white; color: #26282a; font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif; font-size: 13px;\" \/><span style=\"background-color: white; color: #26282a; font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif; font-size: 13px;\">Schematic below.<\/span><br style=\"background-color: white; color: #26282a; font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif; font-size: 13px;\" \/><br style=\"background-color: white; color: #26282a; font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif; font-size: 13px;\" \/><span style=\"background-color: white; color: #26282a; font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif; font-size: 13px;\">73s,<\/span><br style=\"background-color: white; color: #26282a; font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif; font-size: 13px;\" \/><span style=\"background-color: white; color: #26282a; font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif; font-size: 13px;\">Bruce KC1FSZ<\/span><\/b><br \/> <b><span style=\"background-color: white; color: #26282a; font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif; font-size: 13px;\"><br \/><\/span><\/b> <\/p>\n<div class=\"separator\" style=\"clear: both; text-align: center;\"> <a href=\"https:\/\/www.homebrewradio.us\/blog\/wp-content\/uploads\/2018\/06\/KC1FSZboard.jpg\" imageanchor=\"1\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" data-original-height=\"140\" data-original-width=\"210\" height=\"266\" src=\"https:\/\/www.homebrewradio.us\/blog\/wp-content\/uploads\/2018\/06\/KC1FSZboard.jpg\" width=\"400\" \/><\/a><\/div>\n<p> <\/p>\n<div class=\"separator\" style=\"clear: both; text-align: center;\"> <a href=\"https:\/\/www.homebrewradio.us\/blog\/wp-content\/uploads\/2018\/06\/KC1FSZdigipotschematic.jpg\" imageanchor=\"1\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" data-original-height=\"392\" data-original-width=\"546\" height=\"286\" src=\"https:\/\/www.homebrewradio.us\/blog\/wp-content\/uploads\/2018\/06\/KC1FSZdigipotschematic.jpg\" width=\"400\" \/><\/a><\/div>\n<p> <b><span style=\"background-color: white; color: #26282a; font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif; font-size: 13px;\"><br \/><\/span><\/b><\/p>\n","protected":false},"excerpt":{"rendered":"<p>No, this is not some on-line mail order thing. Bruce KC1FSZ has done something that I find both amazing and horrifying: he using a &#8220;digital potentiometer&#8221; as the AF gain control in his BITX. Remember when pots were simple and pure, when they were just a metal wiper that ran across a crescent of carbon &hellip; <a href=\"https:\/\/www.homebrewradio.us\/blog\/2018\/06\/19\/digital-pot\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Digital Pot&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":1626,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28,65,117],"tags":[],"class_list":["post-1625","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bitx20","category-bitx40module","category-ubitx"],"_links":{"self":[{"href":"https:\/\/www.homebrewradio.us\/blog\/wp-json\/wp\/v2\/posts\/1625","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.homebrewradio.us\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.homebrewradio.us\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.homebrewradio.us\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.homebrewradio.us\/blog\/wp-json\/wp\/v2\/comments?post=1625"}],"version-history":[{"count":1,"href":"https:\/\/www.homebrewradio.us\/blog\/wp-json\/wp\/v2\/posts\/1625\/revisions"}],"predecessor-version":[{"id":1629,"href":"https:\/\/www.homebrewradio.us\/blog\/wp-json\/wp\/v2\/posts\/1625\/revisions\/1629"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.homebrewradio.us\/blog\/wp-json\/wp\/v2\/media\/1626"}],"wp:attachment":[{"href":"https:\/\/www.homebrewradio.us\/blog\/wp-json\/wp\/v2\/media?parent=1625"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.homebrewradio.us\/blog\/wp-json\/wp\/v2\/categories?post=1625"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.homebrewradio.us\/blog\/wp-json\/wp\/v2\/tags?post=1625"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}