{"id":177,"date":"2014-04-27T20:57:34","date_gmt":"2014-04-28T03:57:34","guid":{"rendered":"http:\/\/pididu.com\/wordpress\/solarbike\/?p=177"},"modified":"2014-04-27T20:57:34","modified_gmt":"2014-04-28T03:57:34","slug":"prototype-5","status":"publish","type":"post","link":"http:\/\/pididu.com\/wordpress\/solarbike\/prototype-5\/","title":{"rendered":"Prototype 5"},"content":{"rendered":"<figure id=\"attachment_178\" aria-describedby=\"caption-attachment-178\" style=\"width: 640px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2014\/04\/Proto5.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-178\" alt=\"Prototype 5 breadboard\" src=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2014\/04\/Proto5.jpg\" width=\"640\" height=\"637\" srcset=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2014\/04\/Proto5.jpg 640w, http:\/\/pididu.com\/wordpress\/solarbike\/files\/2014\/04\/Proto5-150x150.jpg 150w, http:\/\/pididu.com\/wordpress\/solarbike\/files\/2014\/04\/Proto5-300x298.jpg 300w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><figcaption id=\"caption-attachment-178\" class=\"wp-caption-text\">Proto 5 was built on a perfboard that I got for 50 cents at a flea market. I&#8217;m using huge wire nuts to tie together groups of three #10 wires in places. No heavy current actually flows through the board &#8211; it all goes through the relay contacts.<\/figcaption><\/figure>\n<p>I&#8217;ve had to do a lot of other things lately, so progress on the solar bike has been slow. \u00a0I&#8217;m realizing now that it would be beneficial to just start putting wheels on the panel and shake out the mechanical design.<\/p>\n<p>But I would also want to connect the panel electrically. \u00a0I wouldn&#8217;t want to simply connect the panel across the battery, as that could force 8 amps of current into the battery when the motor is not running. \u00a0I wanted to try just connecting the panel with no battery whatsoever, but when I did that, the motor just barely gave a twitch, then drew no more power. \u00a0I&#8217;ll have to investigate the cause of that, later.<\/p>\n<p>My plan was originally to build a small analog circuit with a comparator to detect when the battery voltage dropped below a certain level. \u00a0That drop would indicate that the motor was running, so the panel could then be connected across the battery by a relay. \u00a0When the voltage rose again, the relay would cut out. \u00a0But while sketching out the circuit, I realized that I could just use an 8-pin PICAXE 08M2 instead of an op-amp, with no greater complexity on the board. \u00a0Plus, more complicated algorithms would be possible with the PICAXE, and some of the learnings might be applicable to the final Power Transfer Controller (PTC). \u00a0Thus came into being the Relay PTC, aka Proto-5.<\/p>\n<figure id=\"attachment_187\" aria-describedby=\"caption-attachment-187\" style=\"width: 889px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2014\/04\/Proto5.gif\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-187\" alt=\"Click on the schematic to see it full size.\" src=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2014\/04\/Proto5.gif\" width=\"889\" height=\"558\" \/><\/a><figcaption id=\"caption-attachment-187\" class=\"wp-caption-text\">(Click on the schematic to see it full size.)<\/figcaption><\/figure>\n<p>The schematic is simple.  A Zener diode is used to regulate the PICAXE supply &#8211; one of the few cases where this topology actually makes sense, since the PICAXE draws only about 2 mA worst case.  Two of the A\/D inputs on the PICAXE are used to monitor the solar panel voltage and battery voltage.  A 150 ohm resistor is in series with the relay coil, because it&#8217;s a 12-volt relay, which I was able to pick up at 2\/$1 at the electronics flea market.  If this was more than just a quick prototype, I might have sprung for the 24-volt version of this relay, but that costs $8 at the surplus store.<\/p>\n<figure id=\"attachment_179\" aria-describedby=\"caption-attachment-179\" style=\"width: 640px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2014\/04\/NotASolarDay.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-179\" alt=\"ironically rainy day\" src=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2014\/04\/NotASolarDay.jpg\" width=\"640\" height=\"480\" srcset=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2014\/04\/NotASolarDay.jpg 640w, http:\/\/pididu.com\/wordpress\/solarbike\/files\/2014\/04\/NotASolarDay-300x225.jpg 300w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><figcaption id=\"caption-attachment-179\" class=\"wp-caption-text\">We&#8217;re in the worst drought in recorded history for California, with a dry December and January. Ironically, on the exact day that I finished bench tests on Proto5 and was ready to test it outside, it rained. I&#8217;m not complaining, we need all the water we can get.<\/figcaption><\/figure>\n<figure id=\"attachment_180\" aria-describedby=\"caption-attachment-180\" style=\"width: 640px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2014\/04\/Proto5TestSetup1.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-180\" alt=\"better day for testing\" src=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2014\/04\/Proto5TestSetup1.jpg\" width=\"640\" height=\"480\" srcset=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2014\/04\/Proto5TestSetup1.jpg 640w, http:\/\/pididu.com\/wordpress\/solarbike\/files\/2014\/04\/Proto5TestSetup1-300x225.jpg 300w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><figcaption id=\"caption-attachment-180\" class=\"wp-caption-text\">The next day was better, but still hazy with scattered clouds. Here is the test setup. Power connections are made by various means, including MC4 connectors on the solar panel, 1\/4&#8243; spade lugs, and wire nuts.<\/figcaption><\/figure>\n<figure id=\"attachment_181\" aria-describedby=\"caption-attachment-181\" style=\"width: 640px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2014\/04\/Proto5TestSetup2.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-181\" alt=\"full view of proto5 test\" src=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2014\/04\/Proto5TestSetup2.jpg\" width=\"640\" height=\"480\" srcset=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2014\/04\/Proto5TestSetup2.jpg 640w, http:\/\/pididu.com\/wordpress\/solarbike\/files\/2014\/04\/Proto5TestSetup2-300x225.jpg 300w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><figcaption id=\"caption-attachment-181\" class=\"wp-caption-text\">This is a more comprehensive view of the test. My Hantek 6022BE oscilloscope is on the white chair, and the laptop driving it is on the mosaic chair. \u00a0If you look carefully, you can see that the bike is on a stand, with the rear (drive) wheel off the ground.<\/figcaption><\/figure>\n<figure id=\"attachment_183\" aria-describedby=\"caption-attachment-183\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2014\/04\/motor-start-and-run-2-sec-no-solar-boost.gif\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-183\" alt=\"Trace without solar boost\" src=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2014\/04\/motor-start-and-run-2-sec-no-solar-boost.gif\" width=\"810\" height=\"602\" \/><\/a><figcaption id=\"caption-attachment-183\" class=\"wp-caption-text\">Here is the battery voltage. \u00a0The motor is engaged for approximately 2 seconds. \u00a0When the motor initially starts, the voltage can plunge from about 26 volts down to 20 volts. \u00a0This surge doesn&#8217;t last long, just a little over 400 mS. \u00a0After that, the battery voltage returns to the pre-energized level, suggesting that the motor is drawing next to nothing in power. \u00a0There was no solar panel connected for this trace.<\/figcaption><\/figure>\n<figure id=\"attachment_182\" aria-describedby=\"caption-attachment-182\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2014\/04\/motor-start-and-run-2-sec-10-second-solar-boost.gif\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-182\" alt=\"Trace with solar boost\" src=\"http:\/\/pididu.com\/wordpress\/solarbike\/files\/2014\/04\/motor-start-and-run-2-sec-10-second-solar-boost.gif\" width=\"810\" height=\"602\" \/><\/a><figcaption id=\"caption-attachment-182\" class=\"wp-caption-text\">This trace has the same conditions as the previous one, except that if a drop in battery voltage is detected, within 100 mS, the relay turns on for a full 9 seconds, connecting the solar panel across the battery. \u00a0Note that the acceleration time is shorter with the solar panel assisting &#8211; only about 250 mS. \u00a0However, the motor still appears to be drawing negligible \u00a0power after the initial acceleration. \u00a0This is not surprising, as the rear wheel of the bike is off the ground, and it takes very little power to keep it spinning.  There is no change in battery voltage between before and after the initial surge, even though after the surge, the solar panel should be contributing. \u00a0My theory is that either the solar panel is very weak (unlikely, since I measured almost 8 amps of short circuit current), or the battery is very strong (likely).<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve had to do a lot of other things lately, so progress on the solar bike has been slow. \u00a0I&#8217;m realizing now that it would be beneficial to just start putting wheels on the panel and shake out the mechanical design. But I would also want to connect the panel electrically. \u00a0I wouldn&#8217;t want to &hellip; <a href=\"http:\/\/pididu.com\/wordpress\/solarbike\/prototype-5\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Prototype 5<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[8,4,9],"_links":{"self":[{"href":"http:\/\/pididu.com\/wordpress\/solarbike\/wp-json\/wp\/v2\/posts\/177"}],"collection":[{"href":"http:\/\/pididu.com\/wordpress\/solarbike\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/pididu.com\/wordpress\/solarbike\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/pididu.com\/wordpress\/solarbike\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/pididu.com\/wordpress\/solarbike\/wp-json\/wp\/v2\/comments?post=177"}],"version-history":[{"count":0,"href":"http:\/\/pididu.com\/wordpress\/solarbike\/wp-json\/wp\/v2\/posts\/177\/revisions"}],"wp:attachment":[{"href":"http:\/\/pididu.com\/wordpress\/solarbike\/wp-json\/wp\/v2\/media?parent=177"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/pididu.com\/wordpress\/solarbike\/wp-json\/wp\/v2\/categories?post=177"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/pididu.com\/wordpress\/solarbike\/wp-json\/wp\/v2\/tags?post=177"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}