Arduino Basics Challenges repository! 🚀 This project contains challenges designed to test and improve basic knowledge of Arduino programming and hardware.
-
Challenge #1 - Digital Read Switch
• Design the switch (with or without a pull-up resistor) • Control an LED state based on switch state • Switch pressed (HIGH) —> LED ON (High) • Switch released (LOW) —> LED OFF (Low) -
Challenge #2 - Digital Read Switch
Scenario 1: LED must be ON when the button is not pressed and should be OFF when the button is pressed Scenario 2: LED must be ON when the button is pressed, and stay ON for 5 seconds even when the button is released, after that the LED should be OFF Scenario 3: Press the button to turn ON the LED and press it again to turn OFF the LED (toggle) -
Challege #3 - Digital Read Switch Add one more button connected to Pin 3, use Pull Up or Pull Down resistor if necessary. Let’s call this Button2 and the previous one as Button1 Add one LED as well Create a code that will do the following: Scenario 4: When Button1 is pressed, all LEDs will be ON and should stay ON even after Button1 is released. When Button2 is pressed and released, all LEDs should be OFF
-
Challenge #4 - Analog Read Potentiometer â—Ź Connect a potentiometer to the Arduino â—Ź Use the serial monitor to read the values as you turn the knob â—Ź Feel free to connect an actuator (LED) and see if you can use PWM principlesto create a dimmer
- Arduino board (e.g., Uno, Nano, Mega)
- USB cable
- Basic electronic components (LEDs, resistors, buttons, potentiometers, etc.)
- Arduino IDE installed on your computer
- Clone this repository:
git clone https://github.com/your-username/arduino-basics-challenges.git
- Connect the pins with digital and analog pins o Arduino Board
Lauren [email protected] Vasili [email protected]