{"id":142,"date":"2012-08-01T10:57:25","date_gmt":"2012-08-01T01:27:25","guid":{"rendered":"http:\/\/davidmonro.net\/blog\/?p=142"},"modified":"2015-01-10T12:25:37","modified_gmt":"2015-01-10T12:25:37","slug":"finalized-currentcost-interface-for-rpi","status":"publish","type":"post","link":"https:\/\/blog.davidmonro.net\/index.php\/2012\/08\/01\/finalized-currentcost-interface-for-rpi\/","title":{"rendered":"Finalized currentcost interface for rPi"},"content":{"rendered":"<p>Having breadboarded it a couple of days ago, I&#8217;ve now finalized the serial interface between the Raspberry Pi and the Currentcost cc128, using some stripboard, dual header socket, CD4049, and a couple of bits of wire. Pretty straightforward; I removed a couple of pins from the header socket so I didn&#8217;t have to bridge from the outside of the socket back into the middle of the board, and made sure that all unused gates have their outputs floating and their inputs tied to <strong>something<\/strong> (in one case I&#8217;ve actually fed the input of a spare gate from the output fed to the rPi RX line; yes it will slightly increase the current consumption (as I&#8217;ve got an extra gate switching instead of staying static), but the effect will be tiny and it was easier than cutting the trace and fixing it all up with wires). The stripboard could have had the outer two rows of holes trimmed off but it doesn&#8217;t interfere with anything so I didn&#8217;t bother. The LEGO case has been improved now that I don&#8217;t have wires out the side (and has a transparent block near the LEDs on the rPi &#8211; works very well).<\/p>\n<figure style=\"width: 300px\" class=\"wp-caption alignnone\"><a title=\"Parts by davidmonro, on Flickr\" href=\"https:\/\/www.flickr.com\/photos\/davidmonro\/7687737184\/\"><img loading=\"lazy\" decoding=\"async\" src=\"shttp:\/\/farm8.staticflickr.com\/7133\/7687737184_80e5cd43b2.jpg\" alt=\"Parts\" width=\"300\" height=\"170\" \/><\/a><figcaption class=\"wp-caption-text\">Note the two missing pins in the header. There&#39;s a missing cut on the stripboard, and one cut in the wrong place.<\/figcaption><\/figure>\n<figure style=\"width: 300px\" class=\"wp-caption alignnone\"><a title=\"Top view by davidmonro, on Flickr\" href=\"https:\/\/www.flickr.com\/photos\/davidmonro\/7687738344\/\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/farm9.staticflickr.com\/8008\/7687738344_3bf84f6349.jpg\" alt=\"Top view\" width=\"300\" height=\"313\" \/><\/a><figcaption class=\"wp-caption-text\">Top view<\/figcaption><\/figure>\n<figure style=\"width: 300px\" class=\"wp-caption alignnone\"><a title=\"Bottom view by davidmonro, on Flickr\" href=\"https:\/\/www.flickr.com\/photos\/davidmonro\/7687739416\/\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/farm8.staticflickr.com\/7255\/7687739416_fe2b2b553c.jpg\" alt=\"Bottom view\" width=\"300\" height=\"281\" \/><\/a><figcaption class=\"wp-caption-text\">Bottom view, with missing cuts added and wrong cut bridged; yes my soldering is awful.<\/figcaption><\/figure>\n<figure style=\"width: 300px\" class=\"wp-caption alignnone\"><a title=\"In situ by davidmonro, on Flickr\" href=\"https:\/\/www.flickr.com\/photos\/davidmonro\/7687740606\/\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/farm9.staticflickr.com\/8016\/7687740606_256a15f71e.jpg\" alt=\"In situ\" width=\"300\" height=\"381\" \/><\/a><figcaption class=\"wp-caption-text\">With cc128 meter and rj45 connection<\/figcaption><\/figure>\n<figure style=\"width: 300px\" class=\"wp-caption alignnone\"><a title=\"Boxed and ready to go by davidmonro, on Flickr\" href=\"https:\/\/www.flickr.com\/photos\/davidmonro\/7687741604\/\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/farm8.staticflickr.com\/7109\/7687741604_c6ac36c71c.jpg\" alt=\"Boxed and ready to go\" width=\"300\" height=\"191\" \/><\/a><figcaption class=\"wp-caption-text\">Boxed and ready to go<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>Machine is now under the bed driving the (USB) bedroom speakers using <a href=\"https:\/\/github.com\/albertz\/shairport\/\">shairport<\/a> and feeding power data to my main server over MQTT.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Having breadboarded it a couple of days ago, I&#8217;ve now finalized the serial interface between the Raspberry Pi and the Currentcost cc128, using some stripboard, dual header socket, CD4049, and a couple of bits of wire. Pretty straightforward; I removed a couple of pins from the header socket so I didn&#8217;t have to bridge from [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,4,1],"tags":[],"class_list":["post-142","post","type-post","status-publish","format-standard","hentry","category-electronics","category-sensors","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.davidmonro.net\/index.php\/wp-json\/wp\/v2\/posts\/142","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.davidmonro.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.davidmonro.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.davidmonro.net\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.davidmonro.net\/index.php\/wp-json\/wp\/v2\/comments?post=142"}],"version-history":[{"count":1,"href":"https:\/\/blog.davidmonro.net\/index.php\/wp-json\/wp\/v2\/posts\/142\/revisions"}],"predecessor-version":[{"id":192,"href":"https:\/\/blog.davidmonro.net\/index.php\/wp-json\/wp\/v2\/posts\/142\/revisions\/192"}],"wp:attachment":[{"href":"https:\/\/blog.davidmonro.net\/index.php\/wp-json\/wp\/v2\/media?parent=142"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.davidmonro.net\/index.php\/wp-json\/wp\/v2\/categories?post=142"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.davidmonro.net\/index.php\/wp-json\/wp\/v2\/tags?post=142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}