Pages: [1]   Go Down
Author Topic: Standalone in low powerconsumtion  (Read 570 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I know, that not a new issue, but I searched all this day a solution to my problem : How low power atmega328 with a 32KHz crystal.

I would like to power the atmega328 in DIP at 2 V DC.

Soft : A simple hello world to strat...
Hard : A dip atmega328 // Arduino Uno

May it possible to do what I want ? Anybody can show me a step to step tutorial ?

Sincerly,

GM

PS : I try many website to burn the bootloader and to run in 8 MHz internal clock but anything work as I want.
Logged

0
Offline Offline
Faraday Member
**
Karma: 24
Posts: 3486
20 LEDs are enough
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Why do you want to use a 32 kHz crystal? Running with the internal 128kHz watchdog oscillator (if necessary with CKDIV set appropriately) will give you most probably longer runtimes.
Logged

Check out my experiments http://blog.blinkenlight.net

Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi !

Thank you for your answer.

Well, say like that , yes ! I would like to use my mcu with a low consumption mode (50 uA @ 1.8 V DC). So 128 KHz i ternal oscillator may a valuable things. How to use the 128 KHz in a stanalone mode ? I have already used my atmel mcu (328 DIP) with a 5 V battery.

Regards,
G
Logged

0
Offline Offline
Faraday Member
**
Karma: 24
Posts: 3486
20 LEDs are enough
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Step 0: Google around for avr fuses / tutorials and read the datasheet

Step 1: get hold of an ISP. I highly recommend the avrispmkii

Step 2: As soon as you have set the fuses to 128kHz WDT you will notice that you will not be able to connect to the controller anymore. This is because the ISP speed is to high. Thus lower the isp speed to 128/4 kHz = 32kHz. (BTW: not all ISPs support such slow speed, again a reason why I suggest the original). Do this BEFORE you change the fuses in order to be sure that your ISP will still be able to communicate with the controller.

Step 3:
    Option a) use AVRSTUDIO to set the fuses accordingly
    Option b) google for an avr fuse calculator, let it compute the fuses and use avrdude to set the fuses accordingly

Logged

Check out my experiments http://blog.blinkenlight.net

Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Step 0 : I use http://www.engbedded.com/fusecalc/.
I have a large choice of 128 KHz with  "6CK/14CK + 0ms" or "6CK/14CK + 4.1ms"... What doest i mean ?

Step 1 : I have already an abrduino uno. May it possible to use it as an ISP ?. Yes, I know that "Currently, you cannot use an Arduino Uno as an ISP programmer because the optiboot bootloader does not support this sketch. A revision for this is in progress. " according to http://arduino.cc/en/Tutorial/ArduinoISP.

Regards,

G

EDIT: I have a R3 bord...
« Last Edit: March 18, 2012, 08:09:10 am by gege089 » Logged

Switzerland
Offline Offline
Sr. Member
****
Karma: 6
Posts: 375
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This suggestion may not be suitable for your project, but it's an easier alternative for low power and low voltage operation:

"Mini FET shield" http://www.sparkfun.com/products/9627

This board takes any input from 0.3V to 5.5V and outputs 3.3V, which is sufficient to run a standard 8MHz Arduino such as this one:

"3.3V Pro Mini" http://www.sparkfun.com/products/9220

To save power you can put the Arduino into sleep mode.  The easiest way to do this is with the Narcoleptic library http://code.google.com/p/narcoleptic/.  This provides  a low-power delay function which can sleep the Arduino for any desired time.

With this combination you can attain a total current consumption well below 1mA.  Cutting the track from the voltage regulator's output on the ProMini (also disabling the power LED) can save even more power.

Running at 3.3V saves the bother of running at a non-standard CPU frequency, which would cause problems with sketch uploads, serial communication, delay timing etc.
Logged

Washington
Offline Offline
God Member
*****
Karma: 38
Posts: 790
Firefox & Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Step 0 : I use http://www.engbedded.com/fusecalc/.
I have a large choice of 128 KHz with  "6CK/14CK + 0ms" or "6CK/14CK + 4.1ms"... What doest i mean ?
The difference is only in startup delay. You should set it to +4ms or +64ms.
Quote
Step 1 : I have already an abrduino uno. May it possible to use it as an ISP ?. Yes, I know that "Currently, you cannot use an Arduino Uno as an ISP programmer because the optiboot bootloader does not support this sketch. A revision for this is in progress. " according to http://arduino.cc/en/Tutorial/ArduinoISP.
Yes. The page is incorrect.
This should provide sufficiently slow SPI with an Arduino ISP. http://pastebin.com/Aw5BD0zy
Logged

Avoid throwing electronics out as you or someone else might need them for parts or use.
Solid state rectifiers are the only REAL rectifiers.
Resistors for LEDS!

0
Offline Offline
Sr. Member
****
Karma: 2
Posts: 303
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ciao,

maybe You could find useful this post
http://jeelabs.org/2011/06/28/jeenode-with-a-32-khz-crystal/

JeeNode is an Arduino clone.

Ciao,
Marco.
Logged

Pages: [1]   Go Up
Jump to: