0% found this document useful (0 votes)
84 views2 pages

Arduino Programming Questions

Uploaded by

Moni Ghunia
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
84 views2 pages

Arduino Programming Questions

Uploaded by

Moni Ghunia
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Arduino Programming Questions

1. Write a program to blink the built-in LED with a delay of 2 seconds.

2. Write a program to blink LEDs connected to pins 10, 11, 12, 13 alternately every 1 second.

3. Write a program to display a pattern on 4 LEDs:

- on, off, off, off

- off, on, off, off

- off, off, on, off

- off, off, off, on

- on, on, off, off

- off, on, on, off

- off, off, on, on

4. Write a program to control the LED blink speed using a potentiometer.

5. Write a program to turn on an LED only when a button is pressed.

6. Write a program to toggle LED state every time a button is pressed.

7. Write a program where the LED blinks faster when an object is detected by an IR sensor.

8. Write a program to turn on the LED when a motion is detected using a PIR sensor.

9. Write a program to gradually increase and decrease LED brightness using PWM.

10. Write a program to cycle LED blinking speed through 3 levels on each button press.

11. Write a program to beep the buzzer ON/OFF every 1 second.

12. Write a program where the buzzer beeps once for 100ms when a button is pressed.

13. Write a program where the buzzer turns on when an object is detected by an IR sensor.

14. Write a program where the buzzer beeps with increasing frequency using a potentiometer.

15. Write a program to create a siren effect using a buzzer and PWM.

16. Write a program to control both LED and buzzer with a button:
- When button is pressed, both turn ON for 1 second.

17. Write a program where the buzzer gives a 100ms beep and the LED toggles when the button is

pressed.

18. Write a program to control 4 LEDs using 4 separate buttons.

19. Write a program to turn ON the buzzer and LED when light level goes below a certain threshold

using an LDR.

20. Write a program where pressing one button starts LED blinking, and another stops it.

You might also like