{"id":1337,"date":"2015-01-19T23:20:33","date_gmt":"2015-01-20T03:20:33","guid":{"rendered":"http:\/\/tim.cexx.org\/?p=1337"},"modified":"2015-01-19T23:20:33","modified_gmt":"2015-01-20T03:20:33","slug":"tim-tears-it-apart-cheap-solar-pump","status":"publish","type":"post","link":"https:\/\/tim.cexx.org\/?p=1337","title":{"rendered":"Tim Tears It Apart: Cheap Solar Pump"},"content":{"rendered":"<figure id=\"attachment_1342\" aria-describedby=\"caption-attachment-1342\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/tim.cexx.org\/wp-content\/uploads\/pump-box.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/tim.cexx.org\/wp-content\/uploads\/pump-box-300x200.jpg\" alt=\"GY Solar water pump package\" width=\"300\" height=\"200\" class=\"size-medium wp-image-1342\" srcset=\"https:\/\/tim.cexx.org\/wp-content\/uploads\/pump-box-300x200.jpg 300w, https:\/\/tim.cexx.org\/wp-content\/uploads\/pump-box-1024x683.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-1342\" class=\"wp-caption-text\">GY Solar water pump package<\/figcaption><\/figure>\n<p>So, I picked up a pair of these cheapo solar pump on fleabay for about 6 or 8 bucks a pop, to filter water for the fish in my old-lady-swallowed-a-fly lotus pot. They actually work pretty well, apart from one very occasionally getting stuck and needing a spin by hand to get going. But it&#8217;s winter, the fish have met Davy Jones (natural causes) and my &#8220;plastic twinwall and a big water tank will keep my greenhouse above freezing in a New England winter&#8221; hypothesis turned out to be way not true, so they&#8217;re just sitting around my basement for the interminable non-growing season. Winter boredom plus unused gadgets sitting around equals&#8230;<\/p>\n<figure id=\"attachment_1343\" aria-describedby=\"caption-attachment-1343\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/tim.cexx.org\/wp-content\/uploads\/pump-contents.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/tim.cexx.org\/wp-content\/uploads\/pump-contents-300x200.jpg\" alt=\"Package contents. Note the cable was not severed out of the box; that was my doing!\" width=\"300\" height=\"200\" class=\"size-medium wp-image-1343\" srcset=\"https:\/\/tim.cexx.org\/wp-content\/uploads\/pump-contents-300x200.jpg 300w, https:\/\/tim.cexx.org\/wp-content\/uploads\/pump-contents-1024x683.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-1343\" class=\"wp-caption-text\">Package contents. Note the cable was not severed out of the box; that was my doing!<\/figcaption><\/figure>\n<figure id=\"attachment_1346\" aria-describedby=\"caption-attachment-1346\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/tim.cexx.org\/wp-content\/uploads\/pump-mech.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/tim.cexx.org\/wp-content\/uploads\/pump-mech-300x200.jpg\" alt=\"The mechanical end of the pump\" width=\"300\" height=\"200\" class=\"size-medium wp-image-1346\" srcset=\"https:\/\/tim.cexx.org\/wp-content\/uploads\/pump-mech-300x200.jpg 300w, https:\/\/tim.cexx.org\/wp-content\/uploads\/pump-mech-1024x683.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-1346\" class=\"wp-caption-text\">The mechanical end of the pump<\/figcaption><\/figure>\n<figure id=\"attachment_1345\" aria-describedby=\"caption-attachment-1345\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/tim.cexx.org\/wp-content\/uploads\/pump-mech2.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/tim.cexx.org\/wp-content\/uploads\/pump-mech2-300x200.jpg\" alt=\"Inside the pump end. There&#039;s nothing more to see without destroying it.\" width=\"300\" height=\"200\" class=\"size-medium wp-image-1345\" srcset=\"https:\/\/tim.cexx.org\/wp-content\/uploads\/pump-mech2-300x200.jpg 300w, https:\/\/tim.cexx.org\/wp-content\/uploads\/pump-mech2-1024x683.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-1345\" class=\"wp-caption-text\">Inside the pump end. There&#8217;s nothing more to see without destroying it.<\/figcaption><\/figure>\n<p>There&#8217;s not much to see on the pump end itself. A slotted cover blocks large particulates from getting into the works, followed by a plastic baffle and a centrifugal impeller, which flings the water at the outlet port. The impeller &#8220;shaft&#8221; is a magnet and doubles as the rotor for the electric motor, allowing the coils to be in the non-rotating housing (stator). Under bright sun, this arrangement can generate a head of a few inches or a decent amount of flow, not bad for a cheap pump running from a little solar panel. <\/p>\n<figure id=\"attachment_1347\" aria-describedby=\"caption-attachment-1347\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/tim.cexx.org\/wp-content\/uploads\/pump-potted.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/tim.cexx.org\/wp-content\/uploads\/pump-potted-300x200.jpg\" alt=\"Potting compound over pump power entry side\" width=\"300\" height=\"200\" class=\"size-medium wp-image-1347\" srcset=\"https:\/\/tim.cexx.org\/wp-content\/uploads\/pump-potted-300x200.jpg 300w, https:\/\/tim.cexx.org\/wp-content\/uploads\/pump-potted-1024x683.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-1347\" class=\"wp-caption-text\">Potting compound over pump power entry side<\/figcaption><\/figure>\n<p>Lifting the cover on the other end reveals where the electronics must be, a cavity completely filled in with potting compound. I declined trying to get through this mess and look at the circuitry on the pump itself. Guessing wildly though, this should probably look very similar to the <a href=\"http:\/\/pcbheaven.com\/wikipages\/How_PC_Fans_Work\/\">circuit that drives a DC computer fan<\/a>, with a small Hall effect sensor detecting the passing of the magnetic poles on the rotor and flipflopping power to the stator coils as needed to push\/pull it in the desired direction.<\/p>\n<figure id=\"attachment_1344\" aria-describedby=\"caption-attachment-1344\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/tim.cexx.org\/wp-content\/uploads\/pump-lump.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/tim.cexx.org\/wp-content\/uploads\/pump-lump-300x200.jpg\" alt=\"Back of solar panel. There is a strange lump on the back.\" width=\"300\" height=\"200\" class=\"size-medium wp-image-1344\" srcset=\"https:\/\/tim.cexx.org\/wp-content\/uploads\/pump-lump-300x200.jpg 300w, https:\/\/tim.cexx.org\/wp-content\/uploads\/pump-lump-1024x683.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-1344\" class=\"wp-caption-text\">Back of solar panel. There is a strange lump on the back.<\/figcaption><\/figure>\n<figure id=\"attachment_1348\" aria-describedby=\"caption-attachment-1348\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/tim.cexx.org\/wp-content\/uploads\/solar_pcb_bot.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/tim.cexx.org\/wp-content\/uploads\/solar_pcb_bot-300x200.jpg\" alt=\"&#039;Kickstarter&#039; PCB back side\" width=\"300\" height=\"200\" class=\"size-medium wp-image-1348\" srcset=\"https:\/\/tim.cexx.org\/wp-content\/uploads\/solar_pcb_bot-300x200.jpg 300w, https:\/\/tim.cexx.org\/wp-content\/uploads\/solar_pcb_bot-1024x683.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-1348\" class=\"wp-caption-text\">&#8216;Kickstarter&#8217; PCB back side<\/figcaption><\/figure>\n<figure id=\"attachment_1341\" aria-describedby=\"caption-attachment-1341\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/tim.cexx.org\/wp-content\/uploads\/solar_pcb_top.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/tim.cexx.org\/wp-content\/uploads\/solar_pcb_top-300x200.jpg\" alt=\"&#039;Kickstarter&#039; PCB component side\" width=\"300\" height=\"200\" class=\"size-medium wp-image-1341\" srcset=\"https:\/\/tim.cexx.org\/wp-content\/uploads\/solar_pcb_top-300x200.jpg 300w, https:\/\/tim.cexx.org\/wp-content\/uploads\/solar_pcb_top-1024x683.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-1341\" class=\"wp-caption-text\">&#8216;Kickstarter&#8217; PCB component side<\/figcaption><\/figure>\n<p>The interesting part is a random <em>lump<\/em> on the back of the solar panel. Pop it open and, sure enough, it contains some active circuitry. This consists of a large (4700uF) electrolytic capacitor and undervoltage lockout circuit. This circuit cuts power to the pump until the capacitor charges to several volts, giving it an initial high-current kickstart to overcome static friction. This works about like you&#8217;d expect, as a voltage comparator with a fairly large hysteresis band (on at 6V, off at 2V, for example). Interestingly though, there&#8217;s no discrete comparator in sight. Instead, there&#8217;s an ATTINY13 microcontroller. The ATTINY does have a builtin comparator though, and the chip&#8217;s only purpose in this circuit seems to be as a wrapper around this peripheral. It&#8217;s entirely possible that from Chinese sources, this chip was actually cheaper than a standalone comparator and voltage reference. Another likely possibility is it was competitive or cheaper than <em>low-power<\/em> comparators, and the use of a microcontroller allows better efficiency by sampling the voltage at a very low duty cycle. For reference, the ATTINY13 runs about 53 cents @ 4000pcs from a US distributor. That&#8217;s pretty cheap, but not quite as cheap as the cheapest discrete with internal voltage reference at <=100uA quiescent current, which currently comes in at ~36 cents @ 3000pcs. Noting the single-sided PCB, another possibility is that the ATTINY and other silicon were chosen for their pinouts, allowing for single-sided routing and thus cost savings on the PCB itself.\n\nAnyway, onto the circuit. R3 and D1 are an intriguing side-effect of using a general-purpose microcontroller as a comparator, as the absolute maximum Vcc permitted on this part is ~5.5V. D1 is a Zener diode, which along with the 47-ohm resistor, clamps the voltage seen by the uC to a safe level. This seems like it would leak a lot of current above 5.5V - and it does - but under normal operation, the pump motor should drag the voltage down below that when operating. R1 and R2 form the voltage divider for the comparator, which is no doubt using an on-chip voltage reference for its negative \"pin\". Pin 5 of the micro is the comparator output, which feeds the gate of an n-channel enhancement-mode MOSFET, U2, through R5, with a weak 100k pulldown (R4). With this circuit, the pump makes periodic startup attempts in weak sunlight until there's enough sun to sustain continuous operation, with no stalling if the power comes up very slowly (e.g. sunrise).\n\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So, I picked up a pair of these cheapo solar pump on fleabay for about 6 or 8 bucks a pop, to filter water for the fish in my old-lady-swallowed-a-fly lotus pot. They actually work pretty well, apart from one very occasionally getting stuck and needing a spin by hand to get going. But it&#8217;s [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_FSMCFIC_featured_image_caption":"","_FSMCFIC_featured_image_nocaption":"","_FSMCFIC_featured_image_hide":"","iawp_total_views":20,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1337","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/tim.cexx.org\/index.php?rest_route=\/wp\/v2\/posts\/1337","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tim.cexx.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tim.cexx.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tim.cexx.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tim.cexx.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1337"}],"version-history":[{"count":5,"href":"https:\/\/tim.cexx.org\/index.php?rest_route=\/wp\/v2\/posts\/1337\/revisions"}],"predecessor-version":[{"id":1350,"href":"https:\/\/tim.cexx.org\/index.php?rest_route=\/wp\/v2\/posts\/1337\/revisions\/1350"}],"wp:attachment":[{"href":"https:\/\/tim.cexx.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1337"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tim.cexx.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1337"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tim.cexx.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1337"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}