Means I various with the light intensity. Hahahaha..
Explain why the light intensity of the LED will affected by the intensity of light o LDR. I suppose it to be either HIGH or LOW...no intermediate. But when I vary the light intensity, the LED light up abit and when totally <400, the LED is fully light up
Hey, according to this coding, this is a night lamp circuit. So I am curious about one thing. LDR is an analog sensor. So, the light intensity of the LED at pin 13 will change according to the light intensity received by the LDR. But then according to this coding, it is either a sharp 5V HIGH for the LED at pin 13 or a LOW for the LED. If the sensovalue is <150, which means dark ,so the LED will light up with 5V. But when I play with it, the light intensity of the LED is various with the LDR. So this make me do not understand fully about the coding @@ Can anyone clarify for me ?
I am still very blur about it. When burning bootloader, I have to change the setting..but when uploading code, Atmega 328 is the same as Atmega 328P ? So that is why the bootloader for atmega 328 lies ? Because the IDE recognise only Atmega328P bootloader ?
So recently i ordered a bunch of atmega chips (atmega328-pu as opposed to the atmega328p pico power series) as i dont need the extra power saving gains so i decided to save myself some money. However I had a heck of a time trying to burn the bootloader on them and it took me several hours to find the info i needed so i thought i would just archive the info for anyone looking for the same. If you have any tips or suggestions please add them as i am still quite new to all of this. The chips loaded in this process seem to work fine ...
Please note this is for the non picopower atmega328-pu chips signature = 0x1e 0x95 0x14 (1E 95 14) vs atmega328p-xx (1E 95 0F)
I tried to load the optiboot and the demillinauve bootloaders via the arduino ide v22 but all i could get was this message - Expected signature for ATMEGA328P is 1E 95 0F Double check chip, or use -F to override this ...
After much searching I found you need to modify the avrdude.conf file ( mac = arduino -show package contents - resources/java/hardware/tools/avr/etc )
Make a backup copy of this file in case something gets messed up.
Open the file with text edit and about 2/3 the way down under atmega 328 find " signature = 0x1e 0x95 0x0F; "
change the 0F to 14 save it and restart the arduino ide, you should now be able to bootload your atmega328-pu chips.
Make sure to change the 14 back to OF and restart when your done loading the bootloaders otherwise it will fail with - Expected signature for ATMEGA328P is 1E 95 14 Double check chip, or use -F to override this ...
I do not understand why I should change back the 14 to 0F ?? Since I am using atmega 328 instead of atmega 328P, so I change the setting and then why I need to change back to atmega 328P setting again since I am using atmega 328 ??
If I burn the bootloader version where I do not require the chip to use external crystal then I can eliminate the need of the 22pF cap and the external 16Mhz crystal ? Is it necessary to pull up the RESET pin to HIGH(5V) ??
Dear friends, I already programmed it to be like this. However, just now, I discovered something weird happened. Here is the story : will the atmega 328 spoiled accidentally ?? I programmed this birthday music cake. Then later on I press the button no sound is heard. And the speed I think increases. overall the code excuted faster. like for exaple I make the J blink for 1s, but then now it seems to be like blinking less than 1s..why ? Crystal problem ? I changed another chip then it is ok