Hello, i have a problem with my arduino mega 2560.
First of all, i program my arduino to change one led randomly from 6 led's, every time i push a button.
When i power up my arduino with my pc (with the usb cable) it's working fine.
- That means my arduino it's waiting to push the button to change one of the 6 leds randomly.
The problem is:
When i power up my arduino with an external power supply (adaptor 9V,1500mA) it's working different.
- That means my arduino it's start changing leds randomly and don't stop, without pressing the button.
And if i try to push the button its change led but continue to changing leds randomly.
*In this project i have an external reset button. the button its doing reset the arduino when i push it. that means the leds turn off and wait to push a button to turn on randomly.
-sometimes it works sometimes don't. why this?
I need help.
The problem is with the adaptor? or with the arduino mega 2560?
How can i solve this problem?
Thank you,