Hi Arduino folk! I have been using an ATMEGA328p-pu standalone with a crystal for sometime now. My resent plans have been to build a second remote for my TV just for fun but there is a problem! Some how I cannot get buttons to work to light up a LED (for testing).... I am using code that includes analogread is there some reason for this doesn't work? Can the standalone chip not support buttons or something? I am sorry if this is obvious or really stupid but I have been searching the internet for sometime now an couldn't find anything. Thank you :)
I am using code that includes analogread is there some reason for this doesn't work?
Why are you using analogRead for a button? It's normal to use digitalRead because a button is a digital device.
Can the standalone chip not support buttons or something?
Yes of course it can. Now let's see that schematic and sketch.
I managed to get it working! Thank you very much! It just turned out that I needed to switch a wire
spycatcher2k: ...move that blue wire to the pin on the left.
OMG you have psychic powers!