this is helpful if you already have the nano on hand and don't plan to do other projects. however, if you want to run on battery power, getting the atmega chip itself seems like a better idea since that one can go into super deep sleep.
True! But, instead of getting the atmega328 from the Nano it would be easier using the attiny85 (or a newer like the attiny1604). Less components and same ultra low power consumption in sleep.
Just keep in mind that lowering the clock speed means your sample rating is also affected. You could run into the situation where your sample times are actually longer at lower clock speed therefore running longer than had you left the clock speed alone and for just a shorter period.
@@DIYTECHBROS I wish this video get more view as much , so that it can encourage you to do more videos . Never stop this kind of work . We need your guidance.
dear sir, i did exactly as you did on the video. but how i will wake up the arduino nano? im using a pir sensor for interrupt, but nothing happens! it doesnt wake up. any solution sir? thank you
Hi, I tried this skecth with Arduino UNO (not Arduino NANO). The results are quiet diffenrent. The consumption in sleep mode is just 15% less than running at full speed (16MHz). I think this should also work in UNO? Or am I wrong? (I do not have a NANO to try it
Great video, found a discussion on Arduino forum from 2016, this really fills in the gaps. Investigating idea of battery operated lock for hidden wall safe, want to see if I can do 2 factor, biometric lock and maybe some kind of hidden magnetic switch for power activation. Just started concept today and found all the pieces in the Arduino library. What a great ecosystem of stuff....! will check out reduced boot time video
Can you help me understand what you mean by destroy led than resistor? are you suggesting to either remove resistor or led? What battery you are suggesting to use? 3.7v ? if yes, then it doesnt work with VIN right?
On the "easier to destroy the LED than the resistor" question, he means, using a heat gun or soldering iron to remove the component is more likely to destroy the LED than the resistor due to the high heat. It's safer to remove the resistor if you ever decide to repurpose the board and reinstall the resistor.
Hi Sezer! The AMS1117 (5V) is, as you are saying, ment to convert down to 5V. But here we are manipulating the voltage to get a lower power consumption on the microcontroller (and a bit lower on the board as well). While we do value all comments, it is also important for our viewers that they are not just based on assumptions but on actual testing. Did you test this? I have no problems getting the needed power (amps) out of the 1117. And further more, as seen in the video, the Arduino also runs as expected.
@@DIYTECHBROS Ok I understand, it makes sense to lower power consumption but I just wanted to note that Vin= 5V won't work work at same clock as VCC=5V
@@DIYTECHBROS It makes no sense that involving MORE components (the AMS1117) make the arduino consume LESS power/current. And on your comment above you say that you manipulation the voltage but on the video (0:30) you are clearly stating that you are using 5 volt on the VIN pin (using the AMS1117).
You are correct, although they are not downclocking it -- they are just running at a lower voltage. When they power through the Vin pin, the actual voltage going to the uC is less than 5V. This is because the linear regulator requires a headroom between the input voltage and output voltage. Even LDO's (Low Drop Out regualators) have some headroom. Lower voltage naturally reduces power consumption in the uC, however, running the uC at 16MHz really needs 5V to have guaranteed reliability. If you reduce the clock speed, then this method is fine.
@@DIYTECHBROS sorry but thats bogus. If you want to have the atmega run on a lower voltage, say 3.3 volt then apply that directly to the chip and bypass/remove the voltage regulator on the board. A comparison between 5 volt on Vin and 5Volt on the 5 volt pin is just odd
thanks, how to wake up again if sleep mode is enabled? I'm using the RTC module and if I reverse the code can the arduino wake up at the time interval I want?
Hi. Thanks for the video! As a beginer, I would like to ask you some questions: 1 - It is possible to create an instruction that according to the inputs received, the clock of the processor changes up or down, without the necessity to reset it? 2 - What about the consumption of Nano + NRF2401 + Analog Joystick? 3 - Do you think that its possible to connect the configuration above in 2x 1/2AA lithium batteries? Thanks in advanced!
Hi Cristiam! Seems like you main question is about power consumption? IF you want to go beyond whats in this video, I would recommend having a look at the ATTINY85 (we have a video on how to program it). It will run on low voltage and lower the power consumtion!
DIY TECH BROS Thanks for your answer. My project consists in one base connected directly on the power supply and a remote station supplied by batteries that needs to wake up when the base send an “activate” signal to it, otherwise it must sleep for less power consumption. I checked about ATTNY85 as you suggested and I think that the Nano can be replaced by this. Thanks! But I read that the RF24 module itself consumes 12mA, so I’m afraid about my batteries... Other question, do you know some small module that has the processor and the radio communication integrated in one circuit?
@Cristiam Kechinski Did you find any solution to your problem? I am trying to make a "lock opener" which is contacted to a NFC / RFID scanner on the front of the door. The actual unlocking mechanism is handled by a stepper motor, which should be connected to smth like an Arduino. The issue now is that I also need to power a NRF2401 module and the Arduino itself by using batteries. The whole thing should last at least a couple of months, otherwise it would make no sense at all. I would really appreciate your help.
Are you serious saying that if you feed it on Vin (what voltage?) It consumes 12mA and on the 5 volt it consumes 18mA? Eventhough the x volt on the Vin has to go through a lineair regulator to get to 5 volts?? That seems very illogical unless you voltage you put on the Vin is too low
He probably fed 5V into Vin (instead of the required 7-12V), this sent about 4V to the processor which is why current consumption went down. As you point out, it'd be better to feed 4V into the 5V pin so you don't lose 20% of your power in the regulator, which is what he did.
Great video! It really helped me. I have a question, if you remove the voltage regulator, can you power the arduino the Arduino with two Li-Po batteries of 3,7V (getting 7,4V) by the VIN pin? Or it may burn?
Remove the regulator and your Vin is not connected to anything anymore. Should you put 7.4 volt (in worst case even 8.4 volt) directly on your chip it will go up in smoke
Hi! Thanks for your interesting videos! Can i ask you, how we can use Li-Po or Li-Ion battery to supplying an Arduino Nano? I can't find good information, about the best way to use 3.7V battery.
Sure, there are two options. Power it on the 5V pin with the battery. As it drops too low you might run into issues, but over all it is usually quiet reliable on lower voltages (until you reach a certain level). Alternatively, use a step up converter!
If I want to connect sensors to my Arduino and also want them to be low power, what would be the best way? Would it make sense to switch their power in off with a Mosfet or Transistor while the Arduino is in sleep Mode?
Hi Tim! Many sensors have a power down mode or a sleep mode. So if possible, that is often a good option. Otherwise a transistor is a good option, or MOSFET is the power consumption requires it!
This video made me smile! I'm trying to build a 4-button RF remote control with Atmega 32p-pu (Arduino uno) and I need it to last 6 months off of two 3V coin cells. This video MAKES THAT POSSIBLE! THAANK YOU!!! Ps: I have 1 million questions to ask you on that very project, I don't want to be a bother...But Can I email them to you?
On the sender, yes :-) There are 4 inputs that can be transmitted to the receiver (decoder) that in turn can be read by an Arduino. That way you can skip the Arduino on the sender (encoder). If you can skip the Arduino the on the receiving end is depending on what you are doing with the data. Best of luck, and just ask any questions if there are any problems!
@@DIYTECHBROS Basically in my project, I want to transmit the state of 4 separate buttons over a short distance (300cm tops). It will be a controller for a simple emergency vehicle siren system. At the receiver I will control the lights and sirens using relays depending if the button on the controller is on or off. I see simple RF remotes last 1 year +...I need mine to last that long. Can a HT12D and HT12E serve as transmitter and receiver in this project? Can I interface the HT12D with an nRF240L? Lol I just gave you a ton of work
Want to support us? Buy us a coffee ☕️ buymeacoffee.com/DIYTechBros
Late to the game but just what I needed for an ongoing project. Thanks for sharing 👍🏼
this is helpful if you already have the nano on hand and don't plan to do other projects. however, if you want to run on battery power, getting the atmega chip itself seems like a better idea since that one can go into super deep sleep.
True!
But, instead of getting the atmega328 from the Nano it would be easier using the attiny85 (or a newer like the attiny1604). Less components and same ultra low power consumption in sleep.
Just keep in mind that lowering the clock speed means your sample rating is also affected. You could run into the situation where your sample times are actually longer at lower clock speed therefore running longer than had you left the clock speed alone and for just a shorter period.
i SEE A GREAT SKILL OF UNDERSTANDING THE ARDUINO CONCEPT. lOOKING FOR MORE INSTRUCTIVE VIDEOS. THANK YOU FOR SHARING AND MAKING US BETTER
CLKPR = 0x80; CLKPR = 0x00; // Normal speed for 16 Mhz
Wow! great technique , never thought of it like that
Good work bruh , wondering why this video is not getting more views👏👍
Thanks! This is a video for experts - so kind of small niche ;-)
@@DIYTECHBROS I wish this video get more view as much , so that it can encourage you to do more videos . Never stop this kind of work . We need your guidance.
Great! Thank you!!! But if you lower the clock settings, how do you restore them on wake up so that you don't mess up Serial comms?
Hi, did you learn this topic?
@@oguzhanergin224 No. Not yet. (i.e the effect of lower cock speed upon Serial comms)
@@kychemclass5850 Thanks
This is exactly what I am looking for!!!
Great :-)
dear sir, i did exactly as you did on the video. but how i will wake up the arduino nano? im using a pir sensor for interrupt, but nothing happens! it doesnt wake up. any solution sir? thank you
Hi!
Two questions that will allow us to help.
1. How does the wiring look?
2. What does your code look like?
Hi, I tried this skecth with Arduino UNO (not Arduino NANO). The results are quiet diffenrent. The consumption in sleep mode is just 15% less than running at full speed (16MHz). I think this should also work in UNO? Or am I wrong? (I do not have a NANO to try it
Great video, found a discussion on Arduino forum from 2016, this really fills in the gaps. Investigating idea of battery operated lock for hidden wall safe, want to see if I can do 2 factor, biometric lock and maybe some kind of hidden magnetic switch for power activation. Just started concept today and found all the pieces in the Arduino library. What a great ecosystem of stuff....! will check out reduced boot time video
ohh... that sounds really exciting :-)
great video. quick question how would i wake it up using a touch sensor
Can you help me understand what you mean by destroy led than resistor? are you suggesting to either remove resistor or led? What battery you are suggesting to use? 3.7v ? if yes, then it doesnt work with VIN right?
On the "easier to destroy the LED than the resistor" question, he means, using a heat gun or soldering iron to remove the component is more likely to destroy the LED than the resistor due to the high heat. It's safer to remove the resistor if you ever decide to repurpose the board and reinstall the resistor.
if I put arduino uno into sleep mode does it keep variables values and continue the code instructions using interrupt ?
Vin is NOT 5V, it's 7V+ up to 12V.
You use Vin and have lower mA because you DOWNCLOCK it with a low voltage.
Hi Sezer!
The AMS1117 (5V) is, as you are saying, ment to convert down to 5V. But here we are manipulating the voltage to get a lower power consumption on the microcontroller (and a bit lower on the board as well). While we do value all comments, it is also important for our viewers that they are not just based on assumptions but on actual testing.
Did you test this?
I have no problems getting the needed power (amps) out of the 1117. And further more, as seen in the video, the Arduino also runs as expected.
@@DIYTECHBROS Ok I understand, it makes sense to lower power consumption but I just wanted to note that Vin= 5V won't work work at same clock as VCC=5V
@@DIYTECHBROS It makes no sense that involving MORE components (the AMS1117) make the arduino consume LESS power/current. And on your comment above you say that you manipulation the voltage but on the video (0:30) you are clearly stating that you are using 5 volt on the VIN pin (using the AMS1117).
You are correct, although they are not downclocking it -- they are just running at a lower voltage. When they power through the Vin pin, the actual voltage going to the uC is less than 5V. This is because the linear regulator requires a headroom between the input voltage and output voltage. Even LDO's (Low Drop Out regualators) have some headroom. Lower voltage naturally reduces power consumption in the uC, however, running the uC at 16MHz really needs 5V to have guaranteed reliability. If you reduce the clock speed, then this method is fine.
@@DIYTECHBROS sorry but thats bogus. If you want to have the atmega run on a lower voltage, say 3.3 volt then apply that directly to the chip and bypass/remove the voltage regulator on the board. A comparison between 5 volt on Vin and 5Volt on the 5 volt pin is just odd
thanks, how to wake up again if sleep mode is enabled? I'm using the RTC module and if I reverse the code can the arduino wake up at the time interval I want?
Hi. Thanks for the video! As a beginer, I would like to ask you some questions:
1 - It is possible to create an instruction that according to the inputs received, the clock of the processor changes up or down, without the necessity to reset it?
2 - What about the consumption of Nano + NRF2401 + Analog Joystick?
3 - Do you think that its possible to connect the configuration above in 2x 1/2AA lithium batteries?
Thanks in advanced!
Hi Cristiam! Seems like you main question is about power consumption? IF you want to go beyond whats in this video, I would recommend having a look at the ATTINY85 (we have a video on how to program it). It will run on low voltage and lower the power consumtion!
DIY TECH BROS Thanks for your answer. My project consists in one base connected directly on the power supply and a remote station supplied by batteries that needs to wake up when the base send an “activate” signal to it, otherwise it must sleep for less power consumption. I checked about ATTNY85 as you suggested and I think that the Nano can be replaced by this. Thanks! But I read that the RF24 module itself consumes 12mA, so I’m afraid about my batteries... Other question, do you know some small module that has the processor and the radio communication integrated in one circuit?
@Cristiam Kechinski Did you find any solution to your problem? I am trying to make a "lock opener" which is contacted to a NFC / RFID scanner on the front of the door. The actual unlocking mechanism is handled by a stepper motor, which should be connected to smth like an Arduino. The issue now is that I also need to power a NRF2401 module and the Arduino itself by using batteries. The whole thing should last at least a couple of months, otherwise it would make no sense at all. I would really appreciate your help.
Thank you for the vid, but i do wanna ask if i want to time it for it to wake up in 4 mins and half, how do i add the millisecond
@DIY TECH BROS, why you use RST pin? You don't use VIN pin.
Amazing man!
Thanks for this great video. I do have a question though. Can this process be done on any Arduino Nano of just for this model? Thanks.
Yes, it should be possible on all models.
Are you serious saying that if you feed it on Vin (what voltage?) It consumes 12mA and on the 5 volt it consumes 18mA? Eventhough the x volt on the Vin has to go through a lineair regulator to get to 5 volts?? That seems very illogical unless you voltage you put on the Vin is too low
He probably fed 5V into Vin (instead of the required 7-12V), this sent about 4V to the processor which is why current consumption went down. As you point out, it'd be better to feed 4V into the 5V pin so you don't lose 20% of your power in the regulator, which is what he did.
If in sleep mode can it wake up with an external button press.
Great video! It really helped me. I have a question, if you remove the voltage regulator, can you power the arduino the Arduino with two Li-Po batteries of 3,7V (getting 7,4V) by the VIN pin? Or it may burn?
use a voltage regulator
Remove the regulator and your Vin is not connected to anything anymore.
Should you put 7.4 volt (in worst case even 8.4 volt) directly on your chip it will go up in smoke
Hi! Thanks for your interesting videos!
Can i ask you, how we can use Li-Po or Li-Ion battery to supplying an Arduino Nano?
I can't find good information, about the best way to use 3.7V battery.
Sure, there are two options.
Power it on the 5V pin with the battery. As it drops too low you might run into issues, but over all it is usually quiet reliable on lower voltages (until you reach a certain level).
Alternatively, use a step up converter!
@@DIYTECHBROS Thank you very much! Really great channel! :)
Nice detail.
What temperature for the heat gun is "safe" for removing the resistor? I'm concerned about breaking nearby components.
just don´t touch them while removing the voltage regulator
Nice!
Thanks!
Perfect
how can i wake it up, when the arduino is in deep sleep mode?
Try the reset pin!
Thank you very much Tech Bros for such an informative tutorial........learned a lot.
That's great :-)
This works great if you never want the Nano to wake up again...
Very useful video. Thanks
why do you need remove voltage regulator for a sleep mode?
The regulator ITSELF uses a few milliamps without any current being output from it.
That's why.
This is great!!!
Too low power 0.3mA but no show led on for 1sec, and led off for 10sec?
Hi Andy! Not sure I fully understand your question? :-)
I think he would like to say "put the Arduino into sleep mode in 10 seconds and then wake it up and turn on the LED in 1 second, in each loop". 😁
Thanks Vu Anh Minh Le!
Muito bom, parabéns.
If I want to connect sensors to my Arduino and also want them to be low power, what would be the best way? Would it make sense to switch their power in off with a Mosfet or Transistor while the Arduino is in sleep Mode?
Hi Tim! Many sensors have a power down mode or a sleep mode. So if possible, that is often a good option. Otherwise a transistor is a good option, or MOSFET is the power consumption requires it!
@@DIYTECHBROS thank you very much 👍
This video made me smile! I'm trying to build a 4-button RF remote control with Atmega 32p-pu (Arduino uno) and I need it to last 6 months off of two 3V coin cells. This video MAKES THAT POSSIBLE! THAANK YOU!!!
Ps: I have 1 million questions to ask you on that very project, I don't want to be a bother...But Can I email them to you?
Perfekt :-)
One tip that can be an option for your project is the HT12D and HT12E RF modules!
@@DIYTECHBROS Woah. I just googled it... Can it replace atmega itself?
On the sender, yes :-) There are 4 inputs that can be transmitted to the receiver (decoder) that in turn can be read by an Arduino. That way you can skip the Arduino on the sender (encoder). If you can skip the Arduino the on the receiving end is depending on what you are doing with the data. Best of luck, and just ask any questions if there are any problems!
@@DIYTECHBROS Basically in my project, I want to transmit the state of 4 separate buttons over a short distance (300cm tops). It will be a controller for a simple emergency vehicle siren system. At the receiver I will control the lights and sirens using relays depending if the button on the controller is on or off.
I see simple RF remotes last 1 year +...I need mine to last that long. Can a HT12D and HT12E serve as transmitter and receiver in this project?
Can I interface the HT12D with an nRF240L?
Lol I just gave you a ton of work
You can also save power by reducing the time your Arduino spend restarting. Have a look at our other video: ua-cam.com/video/lsa5h2tVM9w/v-deo.html
On a side note: using higher value resistors and using active low instead of high will also increase battery life.