{"id":160,"date":"2015-02-24T15:29:22","date_gmt":"2015-02-24T20:29:22","guid":{"rendered":"http:\/\/www.millamilla.com\/?p=160"},"modified":"2015-02-24T19:45:59","modified_gmt":"2015-02-25T00:45:59","slug":"contextual-electronics-current-sink-or-swim-project-breadboard","status":"publish","type":"post","link":"https:\/\/www.millamilla.com:443\/?p=160","title":{"rendered":"Contextual Electronics Current Sink or Swim Project &#8211; breadboard"},"content":{"rendered":"<p>I have been taking an online course in electronics called <a title=\"Contextual Electronics\" href=\"www.contextualelectronics.com\">Contextual Electronics<\/a> with <a title=\"Chris Gammell\" href=\"http:\/\/chrisgammell.com\/\">Chris Gammell<\/a> as the instructor.<\/p>\n<p>We currently are working on a small board that acts as a current sink. \u00a0The idea is that by using a potentiometer, op amp, and N channel Mosfet, we can control the amperage that goes into a load ( LED, battery testing, etc. ).<\/p>\n<p>So far we have been creating the schematic, picking parts, and laying out the PCB. \u00a0We have been able to get this done in about a month so far. \u00a0Next step is to order the boards, probably via <a title=\"OSH Park\" href=\"https:\/\/oshpark.com\/\">OSH Park<\/a>, order the parts ( Digikey ) for me, assemble, and then test.<\/p>\n<p>My desire to understand how this works better and my eagerness to see something in the physical\u00a0got the better of me this past weekend. \u00a0As a result, I replicated the current control portion of the schematic on a breadboard.<\/p>\n<p>The &#8220;active&#8221; parts I used are:<\/p>\n<table border=\"1\">\n<tbody>\n<tr>\n<th>Type<\/th>\n<th>Part<\/th>\n<\/tr>\n<tr>\n<td>\u00a0Op Amp<\/td>\n<td><a title=\"MCP601\" href=\"https:\/\/www.google.com\/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=1&amp;cad=rja&amp;uact=8&amp;ved=0CB4QFjAA&amp;url=http%3A%2F%2Fww1.microchip.com%2Fdownloads%2Fen%2FDeviceDoc%2F21314g.pdf&amp;ei=nc3sVOXIKcT5yQTCv4DwCw&amp;usg=AFQjCNE1kfbObU-eEpjOiQlHJtcx3kdvbQ&amp;sig2=qnMh0tFP3JzhdOA0L4sA_g&amp;bvm=bv.86475890,d.aWw\">MCP601\u00a0<\/a><\/td>\n<\/tr>\n<tr>\n<td>\u00a0N Channel Mosfet<\/td>\n<td>\u00a0<a title=\"IRF510\" href=\"http:\/\/www.radioshack.com\/mosfet-irf510-transistor\/2762072.html#.VOzN9J3F-So\">IRF510<\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>These are\u00a0<strong>not<\/strong> the same parts we are using for the course, but they are what I had on hand and wanted to try to understand how the circuit works by being able to probe for voltages, measure current, and &#8220;twiddle&#8221; the power supply knob to see the impact of higher and lower input voltages.<\/p>\n<p>What I learned is that \u00a0by adjusting the input voltage to the Op Amp, it would cause the FET to allow current ( and voltage ) to pass through. \u00a0Once the return voltage to the Op Amp reached the input voltage, the Op Amp would not need to let current through. \u00a0Then, the return voltage would decrease and the Op Amp would need to let more voltage through again.<\/p>\n<p>From what I can tell, this happens so rapidly you can&#8217;t really tell just by using a voltmeter. \u00a0I have yet to put it on my oscilloscope to see if I can visualize what is going on.<\/p>\n<p>But, this cycle of the op amp allowing voltage through, the feed back voltage increaseing to meet the input voltage to the op amp and then the op amp decreasing voltage, the feed back voltage decreasing until the op amp increases voltage, just keeps going in a loop&#8230;.<\/p>\n<p>Until of course, I change the input \u00a0voltage via the potentiometer. \u00a0This process lets me control the amount of current flowing through the FET by controlling the amount of voltage passing through the op amp. \u00a0In effect, I can use low voltage ( like a digital signal ) to control a very high amperage.<\/p>\n<p>In my test, I was only testing from 0 to 135mah. \u00a0But, what mattered was that I could see the potentiometer that controlled the op amp input voltage control the FET output amperage.<\/p>\n<p>&nbsp;<\/p>\n<p>Breadboard mess with small perfboard for my .1 ohm resistor<\/p>\n<p><a href=\"http:\/\/ostrich.hedrickfam.com:8081\/wp-content\/uploads\/2015\/02\/IMG_0184.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-162\" src=\"http:\/\/ostrich.hedrickfam.com:8081\/wp-content\/uploads\/2015\/02\/IMG_0184-300x225.jpg\" alt=\"csos_bb\" width=\"300\" height=\"225\" srcset=\"https:\/\/www.millamilla.com:443\/wp-content\/uploads\/2015\/02\/IMG_0184-300x225.jpg 300w, https:\/\/www.millamilla.com:443\/wp-content\/uploads\/2015\/02\/IMG_0184-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Supply voltage<br \/>\n<a href=\"http:\/\/ostrich.hedrickfam.com:8081\/wp-content\/uploads\/2015\/02\/IMG_0187.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-165\" src=\"http:\/\/ostrich.hedrickfam.com:8081\/wp-content\/uploads\/2015\/02\/IMG_0187-300x225.jpg\" alt=\"csos_bb_tenma\" width=\"300\" height=\"225\" srcset=\"https:\/\/www.millamilla.com:443\/wp-content\/uploads\/2015\/02\/IMG_0187-300x225.jpg 300w, https:\/\/www.millamilla.com:443\/wp-content\/uploads\/2015\/02\/IMG_0187-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Milliamps passing through FET at near maximum voltage supplied to op amp v+<br \/>\n<a href=\"http:\/\/ostrich.hedrickfam.com:8081\/wp-content\/uploads\/2015\/02\/IMG_0185.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-163\" src=\"http:\/\/ostrich.hedrickfam.com:8081\/wp-content\/uploads\/2015\/02\/IMG_0185-300x225.jpg\" alt=\"csos_bb_mastech\" width=\"300\" height=\"225\" srcset=\"https:\/\/www.millamilla.com:443\/wp-content\/uploads\/2015\/02\/IMG_0185-300x225.jpg 300w, https:\/\/www.millamilla.com:443\/wp-content\/uploads\/2015\/02\/IMG_0185-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Voltage making it to v+ ( I have a voltage divider that decreases the voltage from the supply before going into the potentiometer &#8211; that is part of another divider).<\/p>\n<p><a href=\"http:\/\/ostrich.hedrickfam.com:8081\/wp-content\/uploads\/2015\/02\/IMG_0186.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-164\" src=\"http:\/\/ostrich.hedrickfam.com:8081\/wp-content\/uploads\/2015\/02\/IMG_0186-300x225.jpg\" alt=\"csos_bb_rigol\" width=\"300\" height=\"225\" srcset=\"https:\/\/www.millamilla.com:443\/wp-content\/uploads\/2015\/02\/IMG_0186-300x225.jpg 300w, https:\/\/www.millamilla.com:443\/wp-content\/uploads\/2015\/02\/IMG_0186-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Video of my hand\u00a0adjusting the\u00a0potentiometer to see the current going through the FET decreasing and increasing.<\/p>\n<p><iframe loading=\"lazy\" title=\"Contextual Electronics CSOS Breadboard\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/LO_GytgEQUY?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><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have been taking an online course in electronics called Contextual Electronics with Chris Gammell as the instructor. We currently are working on a small board that acts as a current sink. \u00a0The idea is that by using a potentiometer, op amp, and N channel Mosfet, we can control the amperage that goes into a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[19,17,21,18,20],"class_list":["post-160","post","type-post","status-publish","format-standard","hentry","category-contextual-electronics","tag-breadboard","tag-contextual-electronics","tag-contextualelectronicssession2","tag-csos","tag-electronics"],"_links":{"self":[{"href":"https:\/\/www.millamilla.com:443\/index.php?rest_route=\/wp\/v2\/posts\/160","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.millamilla.com:443\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.millamilla.com:443\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.millamilla.com:443\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.millamilla.com:443\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=160"}],"version-history":[{"count":6,"href":"https:\/\/www.millamilla.com:443\/index.php?rest_route=\/wp\/v2\/posts\/160\/revisions"}],"predecessor-version":[{"id":174,"href":"https:\/\/www.millamilla.com:443\/index.php?rest_route=\/wp\/v2\/posts\/160\/revisions\/174"}],"wp:attachment":[{"href":"https:\/\/www.millamilla.com:443\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.millamilla.com:443\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=160"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.millamilla.com:443\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}