Atmega328p running at 8 mhz Inter Clock everything OK
Atmega328 running at 1 Mhz using DIV by 8 Getting 1 mhz Clock No works Serial.print funtions only get Garbage
Can Someone help me ?
Thanks in advance
Brunswick Gauss
p.d.
I am sorry for my bad english
Forgive me for Not to Say Hello
Is very poor my english languaje
But i can read a little bit
SPI Works
Delay Works
But Serial.print functios no works
I have conected nrf24L01 to Atmeg328P at 1 MHZ Clock and this works ok
I wanted to use 1 MHZ to save energy from the battery but 3.2 volts not is enough for nrf24L01
For serial it is best to use an external crystal so the timing is much more accurate. You can use a 16MHz crystal or resonator and divide by 8 with the fuse setting. You can then have accurate serial and the MCU will run as low as 1.8V.
You would use a regular crystal or resonator. Then set the fuse settings for low-power crystal oscillator. I recommend reading the ATmega328P data sheet. Google online fuse calculator and play with a fuse calculator to easily compute the values. Do some experimenting and measuring.
ahhh Ok I have understood but I made this test and I have got better results with internal Clock than external Clock, I have got more duration of batteries with External Clock, may be I made something wrong.
dmjlambert:
You would use a regular crystal or resonator. Then set the fuse settings for low-power crystal oscillator. I recommend reading the ATmega328P data sheet. Google online fuse calculator and play with a fuse calculator to easily compute the values. Do some experimenting and measuring.
I have madetestin And...I have got better result with Internal Clock
Using external Clock 16 Mhz the battery is during 168 Hours progresives
Using internal Clock 8 Mhz the baterry is during 336 Hours progresives
Now I am testing Internal Clock1 Mhz ( I am using DIV by 8 ) until now i have got 336 hours y there is still 48% of power.
Now I want to use Attiny85 becouse I want a small printed circuit, But I had not got that this works
I have problems using NRF24L01 and Attiny together
Brunwick
I send pictures about my tests
I dont Know if is fault to put pictures, if so, I will erase them.
If you're using something like the example you posted on the last page, there's no sleep modes or power management of any kind being used in that sketch. Further underclocking the microcontroller will have diminishing returns when you've got the nRF24 module in receive mode sucking about a dozen mA all the time.
Also, using the IDLE sleep mode when you don't need to do anything will eliminate a lot of the difference between the different clock speeds.