{"id":723,"date":"2014-03-21T12:00:46","date_gmt":"2014-03-21T12:00:46","guid":{"rendered":"http:\/\/192.168.3.4\/?p=723"},"modified":"2018-01-09T06:48:47","modified_gmt":"2018-01-09T14:48:47","slug":"an-answer-to-my-past-from-my-future","status":"publish","type":"post","link":"https:\/\/www.cloudacm.com\/?p=723","title":{"rendered":"An Answer To My Past From My Future"},"content":{"rendered":"<p>This is an email that I had written to Parallax when I was trying to redirect readings from a WattsUp Meter to a data logger.\u00a0 I had just started out with basic stamp programing a year before this.\u00a0 It&#8217;s suppose to be humor, but it sure would be helpful if this actually could work, especially come Lotto day!<\/p>\n<blockquote><p><em><b>From:<\/b> Patrick circa 2014<\/em><br \/>\n<em> <b>Sent:<\/b> Wednesday, March 19, 2014 5:27 PM<\/em><br \/>\n<em> <b>To:<\/b> Patrick circa 2010<\/em><br \/>\n<em> <b>Subject:<\/b> RE: BS2pe Data Logger Application<\/em><\/p>\n<p><em>Hi Patrick circa 2010-<\/em><\/p>\n<p><em>You will be me in 4 years.\u00a0 To answer your question, yes.\u00a0 But it isn\u2019t easy.<\/em><\/p>\n<p><em>This is what is going on\u2026<\/em><\/p>\n<p><em>The AVR is sending nibs of data on those 4 digital lines, DB4-DB7 to be exact.\u00a0 Each nib represents a lower or upper portion of a byte.\u00a0 The LCD gets instruction from the AVR and pieces them together.\u00a0 From there, the LCD can read the \u00a0byte value and determine what to do.\u00a0 There are 256 possible values for each byte.\u00a0 Some bytes initialize the LCD\u2026some clear the screen\u2026some choose the cursor position\u2026while others are the values to place on the screen.\u00a0 There\u2019s a lot going on and it happens really fucking fast.<\/em><\/p>\n<p><em>In order to do what you want to do, you\u2019ll need to program the BS2pe to listen to the data and control pins of the AVR.\u00a0 It will need to interpret the nibs and create bytes, just like the LCD.\u00a0 Next, you will need to program the BS2pe to take actions that match the output of the LCD.\u00a0 These would include, initialize, clear screen, set cursor position, write value, etc.\u00a0\u00a0 Finally, since you want to data log the values, you would need to program when to log values as they are buffered.\u00a0<\/em><\/p>\n<p><em>Can it be done, maybe.\u00a0 I\u2019m not sure if there\u2019s enough memory for the code to fit.\u00a0 I\u2019m thinking it\u2019s going to be fairly complex.\u00a0 It\u2019s a large amount of work to create this.\u00a0 The BS2pe is unlike the Prop and Arduino micro controllers, which you have yet to study, it doesn\u2019t benefit from libraries.\u00a0 You would be better off creating a library to that acts as a software LCD emulator.\u00a0 From there you could create lighter code.\u00a0<\/em><\/p>\n<p><em>What would you do in 4 years?\u00a0 I\u2019ll tell you.\u00a0 You would use a current sensor and take the readings from that to a micro controller and output the data as you please.\u00a0 Really, it\u2019s that easy.\u00a0 Forget about hacking into the WattsUp meter and trying to sniff values out of it.\u00a0 Your time would be better represented keeping that meter in factory condition and using your own sensor and processing device.\u00a0<\/em><\/p>\n<p><em>Keep your chin up kiddo, you\u2019ll do fine.<\/em><\/p>\n<p><em>-Patrick circa 2014<\/em><\/p>\n<p><em>&#8212;&#8211;Original Message&#8212;&#8211;<\/em><br \/>\n<em> <b>From:<\/b> Patrick circa 2010<\/em><br \/>\n<em> <b>Sent:<\/b> Friday, February 12, 2010 8:42 AM<\/em><br \/>\n<em> <b>To:<\/b> Support<\/em><br \/>\n<em> <b>Subject:<\/b> BS2pe Data Logger Application<\/em><\/p>\n<p><em>I have a question about the ability of the BS2pe to provide data logging from an external microcontroller.<\/em><\/p>\n<p><em>Currently, I have a AVR Microcontroller that outputs voltage reading to a LCD display.\u00a0 Here is a basic wiring example of that system. <\/em><\/p>\n<p><a href=\"http:\/\/192.168.3.4\/wp-content\/uploads\/2014\/03\/WattsUpMeter.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-724\" alt=\"WattsUpMeter\" src=\"http:\/\/192.168.3.4\/wp-content\/uploads\/2014\/03\/WattsUpMeter.png\" width=\"740\" height=\"456\" srcset=\"https:\/\/www.cloudacm.com\/wp-content\/uploads\/2014\/03\/WattsUpMeter.png 740w, https:\/\/www.cloudacm.com\/wp-content\/uploads\/2014\/03\/WattsUpMeter-300x184.png 300w\" sizes=\"auto, (max-width: 740px) 100vw, 740px\" \/><\/a><\/p>\n<p><em>Can the BS2pe replace the LCD display and store values from the AVR Microcontroller?\u00a0 Thank you for your time.<\/em><\/p>\n<p><em>-Patrick Gilfeather<\/em><\/p>\n<p><em>OrangeLine Solutions<\/em><\/p>\n<p><em>Seattle, WA<\/em><\/p>\n<p>&nbsp;<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>This is an email that I had written to Parallax when I was trying to redirect readings from a WattsUp Meter to a data logger.\u00a0 I had just started out with basic stamp programing a year before this.\u00a0 It&#8217;s suppose to be humor, but it sure would be helpful if this actually could work, especially come Lotto day! From: Patrick circa 2014 Sent: Wednesday, March 19, 2014 5:27 PM To: Patrick circa 2010 Subject: RE: BS2pe Data Logger Application Hi&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"https:\/\/www.cloudacm.com\/?p=723\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,3],"tags":[],"class_list":["post-723","post","type-post","status-publish","format-standard","hentry","category-bike-rides","category-rd"],"_links":{"self":[{"href":"https:\/\/www.cloudacm.com\/index.php?rest_route=\/wp\/v2\/posts\/723","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cloudacm.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cloudacm.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cloudacm.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cloudacm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=723"}],"version-history":[{"count":3,"href":"https:\/\/www.cloudacm.com\/index.php?rest_route=\/wp\/v2\/posts\/723\/revisions"}],"predecessor-version":[{"id":726,"href":"https:\/\/www.cloudacm.com\/index.php?rest_route=\/wp\/v2\/posts\/723\/revisions\/726"}],"wp:attachment":[{"href":"https:\/\/www.cloudacm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=723"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cloudacm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=723"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cloudacm.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=723"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}