GeekDoc 226 Posted February 7, 2011 Author Share Posted February 7, 2011 Recursion must be used with caution... Ten recursives consume minimally 60 bytes from stack space... Yes, I am aware of the risks. However, an int has, at most, five digits. There will only be one call and, at most, four recursive calls on the stack at any time. This change reduced my code size (so far) from 1900 bytes to 680 bytes; even with the recursion, I count it a net gain. I may make a small change to allow for negative integers but, for now, it's working fine in the context of my program. Quote Link to post Share on other sites
bluehash 1,581 Posted May 13, 2011 Share Posted May 13, 2011 Similar project on Hackaday: http://hackaday.com/2011/05/13/monitor- ... the-cheap/ Quote Link to post Share on other sites
GeekDoc 226 Posted May 14, 2011 Author Share Posted May 14, 2011 Similar project on Hackaday:http://hackaday.com/2011/05/13/monitor- ... the-cheap/ I saw that one and posted on his site. My plan was scrapped when I was asked to move out (by wife :cry: ). I did find a Black & Decker "Power Monitor" which does the same basic thing wirelessly. I bought one from a clearance site for about $25. I have the receiving unit mounted on a wall on the opposite end of the 6-unit apartment building, and it receives just fine. Shows current usage (about 400W ATM), total usage, and temperature at meter sensor. Now I just need to hack it so I can log usage to my computer! :twisted: Quote Link to post Share on other sites
bluehash 1,581 Posted March 7, 2012 Share Posted March 7, 2012 I know this is old. But: http://hackaday.com/2012/03/06/monitori ... l-display/ Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.