New answers tagged

0 votes

Powering LEDs with Arduino uno 5v

A good question, best asked as you did before frying something. My Arduino rule #1 A power supply the Arduino is NOT! Connect the ground of the LED power supply to the ground of the arduino. Then ...
user avatar
  • 1,416
0 votes
Accepted

How do I keep one function continued until a variable is completed?

You have a couple of issues in your code. Analog inputs are versatile and (most) can be used as digital inputs. You are declaring the LDR pin as a digital pin by pinmode(ldr, INPUT). Delete this line ...
user avatar
  • 3,042

Top 50 recent answers are included