Door Sensor hangs up after some time (bootloader issue)
-
Hello,
I recently was testing different boatloaders for Door sensor. I use 2x AAA batteries for my test.
First one which caused the problem was : APM Optiboot internal 1MHz noBOD 9600baud
apm96.name=APM Optiboot internal 1MHz noBOD 9600baud apm96.upload.tool=avrdude apm96.upload.protocol=arduino apm96.upload.maximum_size=32256 apm96.upload.speed=9600 apm96.bootloader.tool=avrdude apm96.bootloader.low_fuses=0x62 apm96.bootloader.high_fuses=0xde apm96.bootloader.extended_fuses=0x07 apm96.bootloader.path=optiboot_v50 apm96.bootloader.file=atmega328_1a.hex apm96.bootloader.unlock_bits=0x3F apm96.bootloader.lock_bits=0x2F apm96.build.mcu=atmega328p apm96.build.f_cpu=1000000L apm96.build.core=arduino apm96.build.variant=standard
Then I changed to :- ATmega328 on a breadboard (8 MHz internal clock)
atmega328bb.name=ATmega328 on a breadboard (8 MHz internal clock) atmega328bb.upload.protocol=arduino atmega328bb.upload.maximum_size=30720 atmega328bb.upload.speed=57600 atmega328bb.bootloader.low_fuses=0xE2 atmega328bb.bootloader.high_fuses=0xDA atmega328bb.bootloader.extended_fuses=0x05 atmega328bb.bootloader.file=ATmegaBOOT_168_atmega328_pro_8MHz.hex atmega328bb.bootloader.unlock_bits=0x3F atmega328bb.bootloader.lock_bits=0x0F atmega328bb.build.mcu=atmega328p atmega328bb.build.f_cpu=8000000L atmega328bb.build.core=arduino:arduino atmega328bb.build.variant=arduino:standard atmega328bb.bootloader.tool=arduino:avrdude atmega328bb.upload.tool=arduino:avrdude
The first one has BOD at 1.8, and I read here in the forum that Atmega328p behaves strange when set to this value, although I read also that lots of people sees this a good practice to increase node life time.
Problem till now is solved when I used the second bootloader.
My question is:
- Did anyone face this issue ?
- Which bootloader fuses do you use for sleeping nodes ? WDT disabled ? No BOD ? or do you enable them ?
- What battery types do you use ?
Please share your experience.
Thanks.
-
Any updates here please ?