tag:blogger.com,1999:blog-4062533658373691016.comments2023-01-07T04:39:36.693-06:00The Green JournalTamirhttp://www.blogger.com/profile/18223116012199898479noreply@blogger.comBlogger36125tag:blogger.com,1999:blog-4062533658373691016.post-210488392479711742016-07-23T15:38:56.731-05:002016-07-23T15:38:56.731-05:00you can log the sensor data with arduino data logg...you can log the sensor data with <a href="http://www.computeraidedautomation.com/Arduino-and-VB.NET-Serial-port-Data-logger" rel="nofollow">arduino data logger </a>adminhttps://www.blogger.com/profile/13681916367984715106noreply@blogger.comtag:blogger.com,1999:blog-4062533658373691016.post-89076936200319730612016-04-14T02:29:12.768-05:002016-04-14T02:29:12.768-05:00Thank you very much! This tip is useful as hell.Thank you very much! This tip is useful as hell.Metin Oktay Yılmazhttps://www.blogger.com/profile/12824107256252661510noreply@blogger.comtag:blogger.com,1999:blog-4062533658373691016.post-9229045224794191732015-12-29T20:33:09.675-06:002015-12-29T20:33:09.675-06:00It should. I was able to successfully wake the Ard...It should. I was able to successfully wake the Arduino from sleep using XBee commands, so I would think that Bluetooth is similar enough to work.<br /><br />The whole purpose of sleep mode is to conserve power. But if you program to wake on serial, then it will sleep as long as there is no serial communication. I would approach your coding as the following: Once the wireless device receives the signal to wake, it will wake the Arduino...do whatever it needs to do, transmit again, and then sleep again.<br /><br />Hope this helps!Tamirhttps://www.blogger.com/profile/18223116012199898479noreply@blogger.comtag:blogger.com,1999:blog-4062533658373691016.post-32152616487536657082015-12-23T03:07:41.790-06:002015-12-23T03:07:41.790-06:00Just a question, if the Arduino uses bluetooth as ...Just a question, if the Arduino uses bluetooth as a serial connection, and I set the Arduino to sleep, will it still provide enough power to the Bluetooth to wake it up via serial?Shahrin Shahrulzamanhttps://www.blogger.com/profile/10046353814121358826noreply@blogger.comtag:blogger.com,1999:blog-4062533658373691016.post-58072206838371878352014-04-04T20:23:56.802-05:002014-04-04T20:23:56.802-05:00yes but in the 'application events' here i...yes but in the 'application events' here is the link to the original code:<br />http://www.sourcecodester.com/tutorials/net/how-create-a-splash-screen-vbnet.htmlLe Monoclehttps://www.blogger.com/profile/02134836934812448647noreply@blogger.comtag:blogger.com,1999:blog-4062533658373691016.post-29024788912658258562014-02-07T08:03:54.719-06:002014-02-07T08:03:54.719-06:00Also, which documentation are you referring to? Yo...Also, which documentation are you referring to? You should use the chip manufacturer's manuals not Arduino.Tamirhttps://www.blogger.com/profile/18223116012199898479noreply@blogger.comtag:blogger.com,1999:blog-4062533658373691016.post-18409038963083529492014-02-07T08:02:10.669-06:002014-02-07T08:02:10.669-06:00As the post says, its anything with an Atmega 168/...As the post says, its anything with an Atmega 168/328p. I was using a Fio. I know this example works, because I used it many times. I dont post example code unless Ive tried it and used it in my projects. Tamirhttps://www.blogger.com/profile/18223116012199898479noreply@blogger.comtag:blogger.com,1999:blog-4062533658373691016.post-60343388493277284992014-02-07T01:09:14.663-06:002014-02-07T01:09:14.663-06:00Are you using the Arduino Due? Because I couldn...Are you using the Arduino Due? Because I couldn't get this to work for me. The documentation says you can't set an interrupt for HIGH as you have, except for in the Due. It has to be RISING or CHANGED. Then when you do that, the only power mode you can sleep in is IDLE, not PWRSAVE. Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4062533658373691016.post-1828533353171282172013-11-16T23:33:35.499-06:002013-11-16T23:33:35.499-06:00Interesting input on the delay bit. I hadnt though...Interesting input on the delay bit. I hadnt thought of that. Thanks for sharing!Tamirhttps://www.blogger.com/profile/18223116012199898479noreply@blogger.comtag:blogger.com,1999:blog-4062533658373691016.post-72338196574769524822013-11-16T23:31:59.910-06:002013-11-16T23:31:59.910-06:00Thanks for the offer, but I handled this issue mys...Thanks for the offer, but I handled this issue myself. I simply copyrighted the document with the copyright office, so its official now. Then I just went around emailing distributors/sellers with a cease and desist letter. Most big name stores pulled it from their websites immediately.Tamirhttps://www.blogger.com/profile/18223116012199898479noreply@blogger.comtag:blogger.com,1999:blog-4062533658373691016.post-2433867884229528602013-11-12T04:22:36.834-06:002013-11-12T04:22:36.834-06:00Hi Tamir, thanks for the very useful tutorial!
I&...Hi Tamir, thanks for the very useful tutorial!<br /><br />I've experienced an issue with the Serial.print before sleepNow(); and just figured out, it had no time to transfer the text. You might consider to give it a delay(30) before executing sleepNow(); just in order to properly Serial.print the text of choice.<br /><br />.<br />.<br />.<br /> Serial.println("Entering Sleep Mode");<br /> delay(30);<br /> sleepNow();<br />.<br />.<br />.<br />Smuhttps://www.blogger.com/profile/07404394806270246067noreply@blogger.comtag:blogger.com,1999:blog-4062533658373691016.post-27409586668770769402013-09-16T00:25:32.322-05:002013-09-16T00:25:32.322-05:00Hi, I just found your blog while I was looking for...Hi, I just found your blog while I was looking for some stuff to do with my raspberry pi. I am actually an Intellectual Property attorney. You can check out my blog at astronomyandlaw.com, or you can contact me directly using my phone number on the firms website http://www.usip.com/attorneys/NormanRVanTreeck.html. I can give you some assistance, but please remember, until there is an attorney/client agreement between us, I am NOT your attorney. Sorry for the disclaimer, but state bar rules apply.Anonymoushttps://www.blogger.com/profile/08122633138887132861noreply@blogger.comtag:blogger.com,1999:blog-4062533658373691016.post-30810590504069730672013-09-03T02:13:46.517-05:002013-09-03T02:13:46.517-05:00Hi for the error that I ask you earlier on I solve...Hi for the error that I ask you earlier on I solved it. So sorry to trouble you cause I forgotten to //remove the space between '<' and 'avr'.Anonymoushttps://www.blogger.com/profile/06759643011652589026noreply@blogger.comtag:blogger.com,1999:blog-4062533658373691016.post-13021711998408953682013-09-03T02:07:16.882-05:002013-09-03T02:07:16.882-05:00Hi I understand it already thank you so much! Howe...Hi I understand it already thank you so much! However I am getting error when verifying. Is it that the function cannot work with the arduino version that I have? Below is the error that I get.<br /><br />sleepmode.ino: In function 'void sleepNow()':<br />sleepmode:32: error: 'SLEEP_MODE_PWR_SAVE' was not declared in this scope<br />sleepmode:32: error: 'set_sleep_mode' was not declared in this scope<br />sleepmode:40: error: 'sleep_enable' was not declared in this scope<br />sleepmode:44: error: 'sleep_mode' was not declared in this scope<br />sleepmode:47: error: 'sleep_disable' was not declared in this scopeAnonymoushttps://www.blogger.com/profile/06759643011652589026noreply@blogger.comtag:blogger.com,1999:blog-4062533658373691016.post-11934021167810826552013-07-14T13:12:45.865-05:002013-07-14T13:12:45.865-05:00They are libraries that come with the Arduino soft...They are libraries that come with the Arduino software. Download the latest version of Arduino from www.arduino.cc and you will have them.Tamirhttps://www.blogger.com/profile/18223116012199898479noreply@blogger.comtag:blogger.com,1999:blog-4062533658373691016.post-33919723801820384882013-07-10T03:28:22.671-05:002013-07-10T03:28:22.671-05:00hi may I have the library for avr/interrupt, avr/p...hi may I have the library for avr/interrupt, avr/power, avr/sleep, avr/io because I could not find the link to download it from the web. if its possible could you zip the file? thank you and sorry for the trouble.Anonymoushttps://www.blogger.com/profile/07480433665819853599noreply@blogger.comtag:blogger.com,1999:blog-4062533658373691016.post-82069901712141847822013-03-25T09:08:29.286-05:002013-03-25T09:08:29.286-05:00I copied the 4 files on both system32 and windows....I copied the 4 files on both system32 and windows. but the error message still emerges... <br />anyway thanx for the direction.Unknownhttps://www.blogger.com/profile/00700674403459845513noreply@blogger.comtag:blogger.com,1999:blog-4062533658373691016.post-6591488034393851832013-01-31T12:54:03.295-06:002013-01-31T12:54:03.295-06:00Sorry I couldnt help with your project. Perhaps yo...Sorry I couldnt help with your project. Perhaps you can share what you did in your code and maybe I can see whats going on? Do you necessarily need the Fio? There are plenty of other uC's out there that are way less power hungry than the Atmega32u4 on the Fio.Tamirhttps://www.blogger.com/profile/18223116012199898479noreply@blogger.comtag:blogger.com,1999:blog-4062533658373691016.post-53286907300506121852013-01-31T09:33:42.618-06:002013-01-31T09:33:42.618-06:00Seems there was a problem with pin 13. Although I ...Seems there was a problem with pin 13. Although I did put it as input, the pull-up seems to make the LED draw a tiny amount of current, even making it glow, albeit very dim.<br /><br />Anyway, after I tested again (already used power down sleep), and now results are there isnt any difference between all 4 combinations (in/out and high/low).<br /><br />The 9V battery is only used in development/testing. For the real deal Ill be switching to 40AH 6V battery. The device must last several years at a calculated avg current of 1 mA....I also have no LIPO at my disposal atm.<br /><br />For now Ill keep the code in, perhaps I havent been in situations where the difference is more profound...currently at a stable 105 uA sleep power. Thanks anyways!JZuidemahttps://www.blogger.com/profile/12914737029601847201noreply@blogger.comtag:blogger.com,1999:blog-4062533658373691016.post-1020265594797091602013-01-30T09:07:10.053-06:002013-01-30T09:07:10.053-06:00It could be because you are using a 9V battery. Tr...It could be because you are using a 9V battery. Try using a 3.3V Li-Ion battery and then let me know. It could also be the use of The PWR SAVE mode. Try PWR DOWN to see if you save more power.Tamirhttps://www.blogger.com/profile/18223116012199898479noreply@blogger.comtag:blogger.com,1999:blog-4062533658373691016.post-78319178924662879052013-01-30T03:06:01.645-06:002013-01-30T03:06:01.645-06:00I dont get the setting of the pins as input or out...I dont get the setting of the pins as input or outputs and pull-ups. Im trying to get a FIO based app as energy efficient as possible.<br /><br />Besides pins, I do:<br />-power down sleep<br />-ADC disable<br />-AC disable<br />-BOD disable<br /><br />This gets me down to 108 uA, of which I assume the majority to be 'unsaveable' due to it being used by the voltage regulator (~100uA).<br /><br />When I add in your pin code (copy paste, input and pull-up), it goes up to 155 uA while sleeping. So I dont see how this is saving power, and different sources seem to disagree on the web. Any explanation?<br /><br />PS: only FIO board being used, no peripherals/sensors/XBEE. 9V battery poweredJZuidemahttps://www.blogger.com/profile/12914737029601847201noreply@blogger.comtag:blogger.com,1999:blog-4062533658373691016.post-34194350140538190882013-01-11T03:57:39.732-06:002013-01-11T03:57:39.732-06:00Thanks for giving such an impressive post. I found...Thanks for giving such an impressive post. I found scripts for putting together a tunnel, troubleshooting tips and videos that will teach concepts and demonstrate various VPN technologies with <a href="http://tunnelsup.com/tup/2012/11/30/xbee-s2-quick-reference-guide-cheat-sheet/" rel="nofollow">xbee examples</a>. It's very beneficial to understand XBee tutorial.Anonymoushttps://www.blogger.com/profile/00025201330413113348noreply@blogger.comtag:blogger.com,1999:blog-4062533658373691016.post-44297417021099917272013-01-02T06:29:49.229-06:002013-01-02T06:29:49.229-06:00Great article ESD protective bags. Hope to add ad...Great article ESD protective bags. Hope to add additional information from our site if possible:<br />http://www.corstat.com/esd-solutions/engineered-solutions-and-designs.html<br /><br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4062533658373691016.post-10179059007417499982012-10-16T22:34:10.588-05:002012-10-16T22:34:10.588-05:00It should be ' #include < avr/interrupt.h&#...It should be ' #include < avr/interrupt.h' > without quotes and spaces. Blogger reformatted how the code was supposed to display. I've fixed it now.Tamirhttps://www.blogger.com/profile/18223116012199898479noreply@blogger.comtag:blogger.com,1999:blog-4062533658373691016.post-55463704000413409732012-10-16T14:52:03.484-05:002012-10-16T14:52:03.484-05:00Thanks for commenting. Fyi, Pachube is now Cosm.Thanks for commenting. Fyi, <a href="https://pachube.com/" rel="nofollow">Pachube</a> is now <a href="https://cosm.com/" rel="nofollow">Cosm</a>.Tamirhttps://www.blogger.com/profile/18223116012199898479noreply@blogger.com